Bär Halberkamp
b20cb7c413
wmlindent: Indent concatenated strings
2016-09-15 18:04:37 +02:00
Elvish_Hunter
59d815dcf1
wmllint: handle SPECIAL_NOTES_DEFENSE_CAP
...
Also silenced a wmllint warning that this commit throws on the Chocobone unit.
2016-09-14 21:35:41 +02:00
Elvish_Hunter
0efdd721e2
GUI.pyw: slightly modified layout of wmlxgettext tab
2016-09-14 21:31:08 +02:00
Elvish_Hunter
50bb0b5809
wml tools GUI: added wmlxgettext tab
2016-08-08 20:09:18 +02:00
Elvish_Hunter
ff781c5f72
wml tools GUI: added a new compound widget for use by the wmlxgettext tab
2016-08-08 18:39:17 +02:00
Elvish_Hunter
2a10f01fae
wml tools GUI: stop tooltips from reapparing when the associated widget is clicked
2016-08-08 18:36:57 +02:00
Elvish_Hunter
b17779f8a7
wml tools GUI: moved the add-ons directory detection code to a separate function
2016-08-08 18:33:15 +02:00
Elvish_Hunter
a534669682
wml tools GUI: reworked directory constants, and added a new one for wmlxgettext
2016-08-08 18:28:03 +02:00
Celtic Minstrel
b295aab4ba
Deprecate {MAGENTA_IS_THE_TEAM_COLOR}
...
The magenta colour is now the default flag_rgb colour if one is not specified.
2016-08-05 00:49:39 -04:00
Charles Dang
41145a783c
wmllint rules for 20b90a29fa
2016-06-30 18:29:50 +11:00
Elvish_Hunter
f07f893d34
Used argparse instead of optparse in TeamColorizer
2016-06-22 17:15:18 +02:00
Elvish_Hunter
1f3674dcf6
TeamColorizer: fix team_colors dict alignment
2016-06-22 17:15:18 +02:00
Elvish_Hunter
a53b6538ba
Added more color ranges to TeamColorizer
...
The new ranges coming from core are lightblue, brightgreen, brightorange and gold. Ranges coming from IftU and used in other UMCs as well are cyan, yellow and pink (which was already present, but with the wrong values).
2016-06-22 17:15:18 +02:00
Elvish_Hunter
dcad3b75f7
Converted extractbindings script to Python 3
2016-06-22 17:15:18 +02:00
Elvish_Hunter
879ec2dd28
Make the extractbindings script working again
2016-06-22 17:15:18 +02:00
Elvish_Hunter
bcede3d52c
campaign2wiki: explicitly save output file as UTF-8
2016-06-22 17:15:18 +02:00
Elvish_Hunter
0807990ae1
Converted terrain2wiki script to Python 3
2016-06-22 17:15:18 +02:00
Elvish_Hunter
fccd419429
Fixed terrain2wiki script not working with certain comments
...
The script errored if a comment not starting at the start of the line was found in the cfg file.
2016-06-22 17:15:18 +02:00
Elvish_Hunter
d80c80a50f
campaign2wiki: minor syntax cleanup
2016-06-22 17:15:18 +02:00
Elvish_Hunter
6ebe88492d
Converted campaign2wiki script to Python 3
2016-06-22 17:15:18 +02:00
Elvish_Hunter
ad5b92392c
Fixed campaign2wiki script not working with the new difficulty syntax
2016-06-22 17:15:18 +02:00
Elvish_Hunter
0b48b779c0
Converted about_cfg_to_wiki script to Python 3
2016-06-22 17:15:18 +02:00
Elvish_Hunter
e4a0eaf52e
TeamColorizer: replaced sys.stderr.write() with print(file=sys.stderr)
2016-06-22 17:15:18 +02:00
Elvish_Hunter
3607f8c004
Make TeamColorizer script run on Python 3
2016-06-22 17:15:18 +02:00
Elvish_Hunter
d7b2fad190
wmllint: fix unknown IDs in [generator] tag
2016-06-12 12:12:07 +02:00
Elvish_Hunter
85f1869e56
wmllint: fix unknown IDs in OptionWML tags
2016-06-12 12:12:07 +02:00
Elvish_Hunter
270809c68c
GUI.pyw: fix an error that seems to happen only on Python 3.5
...
When closing down the program, this error message appeared: 'TypeError: catching classes that do not inherit from BaseException is not allowed'. It seems to depend on Tkinter's PhotoImage object being destroyed after the root windows's destroy() method is called.
2016-06-12 12:12:07 +02:00
Elvish_Hunter
ee12780360
wmllint: handle new name generator syntax
2016-06-12 12:12:07 +02:00
Ignacio R. Morelle
e86fea358a
units.w.o: Use https where applicable
2016-06-12 00:20:54 -04:00
Elvish_Hunter
2b3d54d5f4
wmllint: handle HelpWML markup correctly while spellchecking
...
This fixes bug #22780 , as well as several false positives when checking the /data/core/editor/help.cfg file.
2016-06-10 12:01:15 +02:00
sigurdfdragon
a199eec22e
wmllint: add missing instructions for "#wmllint: skip-side".
...
Thanks to Elvish_Hunter for telling me what it supposed to do.
2016-06-07 16:35:01 -04:00
aquileia
809e61db88
Python scripts: Unify encoding magic comments
2016-05-03 22:12:19 +02:00
Elvish_Hunter
2c5763216b
wmllint: added female_text to the translatable keys
...
Also removed a few wmllint directives that I placed to handle female_text.
2016-03-24 20:43:17 +01:00
Elvish_Hunter
dcee0e1805
wmllint: added male_message and female_message to translatable keys
2016-03-24 20:26:44 +01:00
Elvish_Hunter
15777e35e0
wmllint: added rule to handle removal of small portraits
2016-03-24 20:26:44 +01:00
Bruno Macabeus
74b72bb846
Added attributes of the [ai]
...
Added the optional parameter "limit-max(number)"
2016-03-22 11:05:58 +01:00
Bruno Macabeus
58e8bc7246
Added almost the attributes of the [side]
...
Added the optional parameter "limit-lower(number)"
Improved the optional parameter "need-file-in(dir)"
2016-03-22 11:05:58 +01:00
Bruno Macabeus
a0c882b02d
Added the optional parameter "need-file-in(dir)", to check if the file exists
2016-03-22 11:05:58 +01:00
Bruno Macabeus
71b4d75f15
Fixbug: Not correctly checked if using the optional parameters 'limit(a,b)' and 'list' simultaneously
2016-03-22 11:05:58 +01:00
Bruno Macabeus
426abfd46e
Added check "FORBIDDEN" for element
2016-03-22 11:05:58 +01:00
Bruno Macabeus
5e5128680c
Fixbug commit f1006f1adc
: I forgot to take the case to send a file, not a directory
2016-03-22 11:05:58 +01:00
Bruno Macabeus
42d4ae9109
Added the optional parameter "limit(\d+,\d+)", to specify the range of the value's attribute
...
Added, partly, toplevel [terrain_type] tag
2016-03-22 11:05:57 +01:00
Bruno Macabeus
98833e2b5b
Added optional parameter "optional-translatable" to some rare cases
2016-03-22 11:05:57 +01:00
Bruno Macabeus
a2f8d93785
Added some comments to organize
2016-03-22 11:05:57 +01:00
Bruno Macabeus
a6fec89753
If you specify a directory, will scan all files from directory.
...
Now can use environment variables.
2016-03-22 11:05:57 +01:00
Bruno Macabeus
128fc64f60
Return message is now more readable
2016-03-22 11:05:57 +01:00
Bruno Macabeus
b9f1ff84be
Update to Python3: using print function
2016-03-22 11:05:56 +01:00
Bruno Macabeus
67e79f7563
I forgot to translate two comments
2016-03-22 11:05:56 +01:00
Bruno Macabeus
2eeac0248c
Created the optional parameter "list"
...
Other minor improvements and updates in wmlvalidator
2016-03-22 11:05:56 +01:00
Bruno Macabeus
aeb2dc65c1
It is not necessary to define default values to datatypes, they will be caught the schema.cfg file
2016-03-22 11:05:56 +01:00