2521 Commits

Author SHA1 Message Date
mattsc
ce9ba142bc Add new AI aspect allow_ally_villages 2022-06-22 08:00:50 -07:00
Elvish_Hunter
f1fb3a73a8 wmlunits: used os.path.join() to build paths instead of string concatenation 2022-06-21 18:29:57 +02:00
Elvish_Hunter
b1c6029917 wmlunits: used shutil.move() instead of calling mv as a subprocess
This also means moving files in a more pythonic way and removing two functions (bash and shell) which aren't used anywhere else.
2022-06-20 23:24:47 +02:00
Pentarctagon
5857964d61
1.17.5+dev. 2022-06-19 09:07:13 -05:00
Pentarctagon
f6cfad7b50
1.17.5. 2022-06-19 09:07:13 -05:00
Elvish_Hunter
d16557bae1 wmlscope: used an enumerator instead of strings in scan_for_definitions() state checks 2022-06-18 19:06:07 +02:00
Elvish_Hunter
cfbad6b81c wmlscope: avoid crashing on non-UTF8 files 2022-06-18 19:06:07 +02:00
Celtic Minstrel
473c6e468e
Fix wmlindent quote detection (#6764)
* wmlindent: Fix parsing quotes in comments

* Remove unnecessary wmlindent ignores

* Run wmlindent
2022-06-18 09:37:55 +02:00
Elvish_Hunter
8b8f99e65a wmllint: fixed translation marks not being removed from values when checking if a string is empty 2022-05-28 22:03:25 +02:00
Elvish_Hunter
f7859ad104 wmllint: automatically remove {SOUND:SLOW} and {SOUND:POISON} lines
Part of point 5 of issue #6403
2022-05-17 23:57:08 +02:00
Pentarctagon
9753b9538d
1.17.4+dev 2022-05-15 09:43:37 -05:00
Pentarctagon
712a7c96be
1.17.4 2022-05-15 09:42:25 -05:00
Tahsin Jahin Khalid
4c42228c52
wmllint: add Giant Stoat -> Frost Stoat monster ID change (#6694) 2022-05-14 23:24:03 +02:00
Elvish_Hunter
62ef86e2bd wmllint: updated mainline campaigns tuple 2022-05-06 20:53:22 +02:00
Elvish_Hunter
52da1fa774 wmllint: replaced gif with webp in two regexps 2022-05-01 11:24:28 +02:00
Pentarctagon
9469f8af63 Update wmllint. 2022-04-30 14:23:32 -05:00
Elvish_Hunter
f65e434428 wmllint: finish removing support for the old special notes system
The magic comments 'notecheck off', 'notecheck on' and 'match <ability> with <note>' no longer have any effect.
2022-04-26 11:19:43 +02:00
Elvish_Hunter
2c993867cf wmllint: removed --stringfreeze command line flag
This flag was supposed to disable repair attempts for newlines in messages, however it never did so, even when the non-standard word wrap check was still available. Instead, it just disabled repair attempts for double spaces after sentence ends.
2022-04-25 23:05:39 +02:00
Pentarctagon
073d4111b2
1.17.3+dev 2022-04-16 19:35:46 -05:00
Pentarctagon
4a6ba74ea8
1.17.3 2022-04-16 19:34:19 -05:00
Elvish_Hunter
c2ece934bd wmlindent: refactored indentation level handling code 2022-04-01 22:53:44 +02:00
Steve Cotton
5c07604c01 wmlxgettext: add a --no-sort-by-file option
Some users of wmlxgettext have scripts that already provide the file list in
a deterministic order, and the sorting added in 3761faf925 was choosing a
different order to the one desired.

(cherry picked from commit 904bb9bfb82c391d20e89dfbaacc1e71749dc3d9)
2022-03-28 10:36:12 +02:00
Pentarctagon
3f41d911f2
1.17.2+dev. 2022-03-20 12:03:51 -05:00
Pentarctagon
7ce603e565
1.17.2. 2022-03-20 12:02:51 -05:00
Elvish_Hunter
e1553e8c52 wmllint: added conversion rule for maps/background.png to WebP 2022-03-15 22:47:17 +01:00
Elvish_Hunter
9e98be3676 wmlscope: recognize webp images 2022-03-15 18:35:46 +01:00
Elvish_Hunter
21bd75c12f wmlscope: allow reporting deprecated macro calls 2022-03-01 10:12:15 +01:00
Pentarctagon
3c742717cc
1.17.1+dev. 2022-02-20 11:32:16 -06:00
Pentarctagon
437bf5a9ec
1.17.1. 2022-02-20 11:32:14 -06:00
Alexander Lacson
518becac59 [wmltools] Fix Docstrings
docstrings of the keyboardinterrupt handler.
2022-02-16 12:12:37 +01:00
Alexander Lacson
24098cb54a wmlxgettext and wmlindent change exit code
For keyboard interrupt change exit code from 0 to 1.
2022-02-16 12:12:37 +01:00
Elvish_Hunter
528ea56424 wmllint and wmlindent: avoid crashing on non-UTF8 files
Fixes #2091
2022-02-16 10:59:05 +01:00
Elvish_Hunter
cde990a9a0 wmllint: handle deprecated [unit] placement= values 2022-02-16 10:53:29 +01:00
Gunter Labes
9f87a2a9e6
Remove ancient check
No `letter` attribute for terrain since more than a decade.
2022-02-15 20:15:30 +01:00
Gunter Labes
8f4331f9d2
Remove condition improperly added in 49318f6
The intention was to check for strings with only spaces but the test checked for
spaces at the start of the string. Neither seems useful.
2022-02-15 20:00:00 +01:00
Gunter Labes
e8e5387069 Improve empty value checks 2022-02-15 19:49:30 +01:00
Gunter Labes
ef2205aa62 Fix comment handling if the value is empty (fixes #6514) 2022-02-15 19:49:30 +01:00
Iris Morelle
3c3e0c28f7
wam: Add the 1.17.x campaignd to port list 2022-02-14 23:00:56 -03:00
Pentarctagon
7e61c66ac1
1.17.0+dev. 2022-01-16 12:25:05 -06:00
Pentarctagon
a7cf1fe714
1.17.0. 2022-01-16 12:24:01 -06:00
Elvish_Hunter
bcab977c03 Removed some duplicated images used by the obsolete unit_box theme 2022-01-14 22:15:55 +01:00
Elvish_Hunter
1fa069aeb7 Fixed some wmlscope warnings 2022-01-13 21:20:48 +01:00
Elvish_Hunter
6227507af7 wmllint: fixed a typo in a terrain code 2022-01-11 14:23:44 +01:00
Elvish_Hunter
5a50c03aaf wmllint: fixed Ggf -> Gg^Emf and Qv -> Mv terrain conversions 2022-01-10 21:02:20 +01:00
Elvish_Hunter
33fbc5252a wmllint: added support for unit levels and types in recruitment pattern checks 2021-12-27 22:39:58 +01:00
Elvish_Hunter
b0d3097a62 Added --version flag to wmllint, wmlscope and wmlindent
Also made GUI.pyw report the version in the about dialog. Fixes #6346
2021-12-26 22:10:44 +01:00
Elvish_Hunter
77eed10a09 wmlunits: fixed an error on [female] tags without image= key 2021-12-06 17:52:25 +01:00
Elvish_Hunter
1b65d08c37 wmlunits: fixed a deprecation warning 2021-12-06 17:49:53 +01:00
Elvish_Hunter
912625be84 wmllint: automatically remove {MAGENTA_IS_THE_TEAM_COLOR} 2021-12-03 11:47:48 +01:00
Steve Cotton
3761faf925 wmlxgettext: sort-by-filename before processing files
Add a sort inside wmlxgettext so that the order of filenames on the command
line doesn't affect the output. The sort is run unconditionally, because I
don't see a usecase for not enabling it. For consistency with xgettext and
msgcat, if there was an option to enable it then it would be called
`--sort-by-file`.

The aim of this change is to reduce the number of changes in .po files caused
by a pot-update. When multiple comments refer to the same translatable string,
separate runs of pot-update could generate them in a random order. If I've
understood the root cause correctly, wmlxgettext itself was deterministic, but
the order of the files on wmlxgettext's command line was not deterministic.

For testing, I tried reversing the sort order; the resulting reordering hit
lines that commonly swap order during pot-updates.

This affects the ordering of the lines beginning `#.` that are generated from
`#po:` comments and also those auto-generated from `[message]speaker=`, etc.
2021-12-02 09:54:26 +01:00