Commit graph

2674 commits

Author SHA1 Message Date
pentarctagon
ce9874868d 1.17.24 2023-12-16 21:10:37 -06:00
Gunter Labes
1d0638b048
Use a single dot for the extension 2023-11-28 13:40:13 +01:00
Gunter Labes
05b4db8ce3
Create and remove symlinks instead of moving addons back and forth 2023-11-27 20:55:35 +01:00
Gunter Labes
0d3c00b13b
Remove outdated and not that useful test 2023-11-27 19:40:04 +01:00
Gunter Labes
2ae0f67d34
Include themes dir to support add-ons using mainline theme macros 2023-11-24 21:13:24 +01:00
pentarctagon
9559b07292 1.17.23+dev 2023-11-20 11:32:41 -06:00
pentarctagon
eda0ed3e16 1.17.23 2023-11-20 11:31:45 -06:00
Elvish_Hunter
47fec1e90f GUI.pyw: increased starting window size to 1024x600 2023-11-10 21:02:52 +01:00
Wedge009
559aacbf65
wmltools GUI review (#7971)
* Run auto-format

* Avoid broad exception handling.

* Remove unnecessary reference to self.

* Tidy imports.

* Remove redundant brackets.

* Narrow exception handling on unrecognised locale.

* Simplify command construction.

* Simplify command construction.

* Avoid shadowing.

* Spelling corrections.

* Reviewed argument parsing:
* Average user probably won't know that ISO 15897 refers to POSIX locale names.
* 'default' probably isn't an accurate description of the entered locale so change to 'user'.
* Remove the hard-coded usage text - the default usage string from the arguments list is sufficient.

* Use title case for menus as per UI style guide.

* Avoid abbreviation for UI text and add translation notes.

* Reviewed text for the tabs representing options for each tool.

Also removed forced new-lines, which I think are unnecessary.

* Consolidate strings to allow for translation sharing.

* Add translation note

* Use title case for titles.

* End sentences with full-stop.

* Title case for titles, translation note, full-stop.

* Abbreviated error message sufficient - consistent with other error messages.

* Clarify file vs file name.

* The translations directory is referenced regardless of whether the user has specified a locale or not, so put the check for the translation directory outside the user-input condition.

* The function isn't just for the user-specified locale, it steps back to the system locale if no user-input is given for the language.

* Clarified the reason for the code duplication in the set-up for system locale.

* Use en_US for commentary.

* Treat 'normal mode' as just one string.

* Replace empty place-holder with numbered indexes to work around gettext limitation.

* Correct typography.
2023-11-10 11:55:22 -06:00
Elvish_Hunter
cdd05db833 GUI.pyw: added basic support for the ttkthemes library 2023-11-10 16:59:28 +01:00
pentarctagon
00f70f2c54 1.17.22+dev 2023-10-16 23:31:31 -05:00
pentarctagon
fec4f1771d 1.17.22 2023-10-16 23:29:23 -05:00
pentarctagon
bad53d2120 1.17.21+dev 2023-09-16 22:43:09 -05:00
pentarctagon
56a6c8284c 1.17.21 2023-09-16 22:42:30 -05:00
Pentarctagon
e90db4a276 1.17.20+dev 2023-08-19 21:05:00 -05:00
Pentarctagon
347745f19c 1.17.20 2023-08-19 21:04:11 -05:00
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 915d9c5aba 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