2608 Commits

Author SHA1 Message Date
Elvish_Hunter
1693c0e0eb GUI.pyw: add a 'cancel' button to avoid running the tools on the core directory
Fixes #7728.
2023-08-16 23:06:37 +02:00
Gunter Labes
76246291cd
Simplify campaign rank display 2023-08-11 21:41:42 +02:00
Gunter Labes
d5c76f7cc5
Use DATA variable consistently 2023-08-11 21:00:20 +02:00
Gunter Labes
73f2a6e90a
Update key bindings extraction 2023-08-11 20:56:13 +02:00
Gunter Labes
e863350260
Allow specifying the destination for the macro reference 2023-08-11 18:38:27 +02:00
Gunter Labes
81c31c40c5
Update jquery and tablesorter 2023-08-05 20:07:49 +02:00
Gunter Labes
26ec459cb0
Revert "wmllitnt: add two missing corrections (#7765)"
This reverts commit 915d9c5aba334b5dfb05e810a9a0ec671d951d2b since it just adds redundant replacements.
2023-07-19 11:24:28 +02:00
Pentarctagon
1bf5b2b1fb 1.17.19+dev 2023-07-15 22:25:39 -05:00
Pentarctagon
8ccf7ee3f6 1.17.19 2023-07-15 22:24:10 -05:00
Tahsin Jahin Khalid
915d9c5aba
wmllitnt: add two missing corrections (#7765) 2023-07-12 22:59:43 +02:00
Slayer95
4892963072
Refactor collection of #po, #po-override comments (#7574) 2023-07-12 22:47:26 +02:00
Severin Glöckner
72935c7c03 wmllint: conversion rules for moved sprites 2023-06-27 12:58:20 +02:00
Tahsin Jahin Khalid
6a0df44c00
wmllint: add new conversion rule for the Elvish Fighter image path 2023-06-20 14:22:50 +02:00
Pentarctagon
1be31358dc 1.17.18+dev 2023-06-17 23:49:13 -05:00
Pentarctagon
5ccd1507c9 1.17.18 2023-06-17 23:45:14 -05:00
Ivo Julca
100b409b68 i18n: Make GUI.pyw translatable
- POT file with textdomain `wesnoth-tools`
- Uses xgettext with flag --language=Python
2023-06-14 09:58:56 +02:00
Ivo Julca
4d2cb1ce7f Build: Update scripts for .pot, .po files to support Python files
- Rewrites some of the commands to use Python.
- Also implements wmlxgettext --force-po, similar to xgettext.
2023-06-14 09:58:56 +02:00
Slayer95
81014cc0c2
Update wmllint calls to parse_macroref (#7662)
Fixup for #7561.
2023-05-30 18:03:20 +02:00
Ivo Julca
d4f16cd75b wmlunits: Use safe charset for image paths 2023-05-25 10:35:57 +02:00
Ivo Julca
71ff0cfabc wmlunits: Normalize file paths consistently 2023-05-25 10:35:57 +02:00
Ivo Julca
89f819661c wmlunits: Add path2url function for cross-platform path handling 2023-05-25 10:35:57 +02:00
Ivo Julca
5136c45b3e wmlunits: Correctly get Wesnoth paths in Windows 2023-05-25 10:35:57 +02:00
Slayer95
be991e027d
wmlxgettext: Support extracting all textdomains at once (#7624)
* wmlxgettext: Support extracting all textdomains at once

- -o now expects a folder.
- --domain is now treated as an optional filter.

* wmltools/gui/wmlxgettext: Update input handling

- Fix --initialdomain
- Textdomain is no longer mandatory.
- Accept output dir rather than output file.
2023-05-24 22:08:18 +02:00
Pentarctagon
00171d6cb9 1.17.17+dev 2023-05-20 22:09:27 -05:00
Pentarctagon
1c8f405838 1.17.17 2023-05-20 22:08:32 -05:00
Slayer95
20d443bfcb
wmlunits: Refactor HTML postprocess step (#7609)
Cleaner and faster.
2023-05-18 00:21:06 +02:00
Slayer95
0620822ab2
wmlxgettext: Improve parser resiliency for malformed files (#7625)
* wmlxgettext: Improve parser resiliency for malformed files

- WML files with no translatable strings will no longer
crash the script on unbalanced tags (but translatable will).
- .cfg files belonging to man(1) will no longer crash the script.

* Remove stray quotes from textdomain declarations

These are not recognized by the wmlxgettext parser.
2023-05-17 21:40:36 +02:00
Slayer95
36ed4641cd
wmlxgettext: Error out on unused #po, #po-override directives (#7573)
* wmlxgettext: Error out on unused #po, #po-override directives

* wmlxgettext: Ignore out of domain #po, #po-override comments

* wmlxgettext: Properly clear pending #po, #po-override on textdomain switch

* Fix misplaced #po comments in DiD, SoF, TSG, Editor

Some of these ugly relocations can be reverted in or after #7570.
2023-05-08 00:08:21 +02:00
Slayer95
03ab458ce0
wmlunits: Include nested dependencies in -L for -B to process (#7603) 2023-05-07 23:57:10 +02:00
Slayer95
eded720ee2
Refactor TeamColorizer into a Python library (#7604)
* Refactor TeamColorizer into a Python library

* Use TeamColorizer as library
2023-05-07 23:54:18 +02:00
alberic89
2cb0d97696
wesnoth_addon_manager: require at least TLS v1.2 (#7591) 2023-05-06 00:12:17 +02:00
Slayer95
1ce11239ed
wmlunits: Fixup for fa76e77 (#7595)
Added missing colons to with statements
2023-05-05 23:55:40 +02:00
Slayer95
5eaed1b744
wmlunits: Specify error as class in html reports (#7581) 2023-05-05 21:05:09 +02:00
Slayer95
fa76e775ac
wmlunits: Handle code paths for missing attributes (#7580) 2023-05-05 18:45:12 +02:00
Slayer95
2413e2f366
Improvements to wmltools3 (#7561)
* wmltools3: Make the CrossRef class iterable

Removes generator() method.

* wmltools3: Check for warn level on lack of wmlscope: set export

* wmltools3: Support passing a list of file paths to initialize CrossRef

* wmltools3: Track lineno_end for Reference

* wmltools3: Track default values for macro optional parameters

optional_args is no longer a list, but a dict.

* wmltools3: Track macro bodies as Reference.body

* wmltools3: Register quoted macro arguments verbatim

* wmltools3: Improve parse_macroref

- Support parsing nested macro calls.
- Remove excessive need of parens around macro calls/arguments.
- Support escaping quotes.
- Other compliance improvements.
2023-05-01 17:08:30 +02:00
Pentarctagon
a45ca3f771 1.17.16+dev 2023-04-22 22:35:35 -05:00
Pentarctagon
9909f5910d 1.17.16 2023-04-22 22:34:20 -05:00
Pentarctagon
d67ab41a39 1.17.15+dev 2023-04-15 20:04:03 -05:00
Pentarctagon
f27b4f1bfc 1.17.15 2023-04-15 20:03:24 -05:00
Elvish_Hunter
242a9874c8 wesnoth_addon_manager: removed unused --color switch 2023-04-07 22:03:56 +02:00
Elvish_Hunter
f0413a1172 wesnoth_addon_manager: exit gracefully when removing a non-existing add-on 2023-03-21 23:21:09 +01:00
Pentarctagon
baf5d105a6 1.17.14+dev 2023-03-18 21:49:52 -05:00
Pentarctagon
f4ac9e03de 1.17.14 2023-03-18 21:48:59 -05:00
Elvish_Hunter
b41bb0249f wesnoth_addon_manager: added --version flag 2023-03-17 11:00:02 +01:00
Elvish_Hunter
390f21c872 wesnoth_addon_manager: added new --terms flag (prints the server upload terms) 2023-03-17 10:52:20 +01:00
Elvish_Hunter
becf628198 wesnoth_addon_manager: added IPv6 support 2023-03-12 10:16:01 +01:00
Elvish_Hunter
7e67bc5d08 wesnoth_addon_manager: added SSL/TLS support 2023-03-11 19:55:58 +01:00
Gunter Labes
13f87fdebb
Ignore lines with a " before the first = as well 2023-03-10 15:10:29 +01:00
Gunter Labes
5e45184480
Remove bogus single quote handling 2023-03-10 15:08:35 +01:00
Elvish_Hunter
c78cc7a2b0 wmlindent: don't begin string concatenation if the line is commented out
Fixes a bug reported by Toranks.
2023-03-10 10:51:29 +01:00