Commit graph

80 commits

Author SHA1 Message Date
Tahsin Jahin Khalid
24ee61b2d3
WML tools GUI app: updated copyright (#8327)
String Change to update to year 2024
2024-02-27 11:37:03 +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
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
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
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
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
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
bc38ece82f GUI.pyw: update constant for the 1.17 series 2021-10-08 22:03:12 +02:00
Elvish_Hunter
1da7675c81 GUI.pyw: fixed compatibility with Python 3.9
Fixes #5719.
2021-04-18 21:52:05 +02:00
Elvish_Hunter
f13ad9f5b9 GUI.pyw: allow terminating the running script
Fixes #3485
2018-10-25 23:08:59 +02:00
Celtic Minstrel
42c48d1483 Move wmlxgettext to the data/tools directory so that it's automatically included in official packages
(cherry-picked from commit 59e78e5565)
2018-10-07 03:24:58 +00:00
galegosimpatico
5b5442b1af Bump program version.
(cherry-picked from commit bbd83f17ed)
2018-10-07 03:20:08 +00:00
Celtic Minstrel
ec207923e4 GUI.pyw: Fix wmlxgettext run failing if the output file already exists
(cherry-picked from commit 5795892649)
2018-10-07 03:20:02 +00:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11: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
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
aquileia
809e61db88 Python scripts: Unify encoding magic comments 2016-05-03 22:12:19 +02:00
Charles Dang
ff7128f8dc GUI.pyw: New years copyright update 2016-03-04 00:47:46 +11:00
Ignacio R. Morelle
ba8da92135 Restore executable bit on the WML tools GUI frontend 2015-10-30 02:43:35 -03:00
Elvish_Hunter
e07de1bf48 GUI.pyw: fixed regexps not being handled correctly on non Windows systems
This fix relies on the fact that argparse doesn't require the equal sign any more.
2015-10-20 15:02:32 +02:00
Elvish_Hunter
1a0d04d7b2 GUI.pyw: fixed a bug that caused the output to not be printed on Windows 2015-10-20 15:02:32 +02:00
Elvish_Hunter
21a6bc5831 Converted GUI.pyw to Python 3 2015-09-24 11:40:14 +02:00
Elvish_Hunter
ef559d0ffd GUI.pyw: allow binding tooltips to tagged elements of widgets 2015-09-12 21:49:02 +02:00
Charles Dang
4f078f26ef GUI.pyw: small label tweaks 2015-09-10 21:55:43 +11:00
Elvish_Hunter
2e574252cb GUI.pyw: added more tooltips 2015-09-07 20:55:09 +02:00
Elvish_Hunter
814d9d1478 GUI.pyw: allow changing tooltip text at runtime 2015-09-07 20:55:09 +02:00
Elvish_Hunter
3cbbede271 GUI.pyw: use specific tooltip font 2015-09-07 20:55:09 +02:00
Elvish_Hunter
cb3c5b9c45 GUI.pyw: focus doesn't follow the mouse any more
Done as per shadowm's suggestion.
2015-09-03 10:06:14 +02:00
Elvish_Hunter
dce1e7bdc1 GUI.pyw: added tooltips, finally! 2015-09-02 19:52:46 +02:00
Elvish_Hunter
b23e93a823 GUI.pyw: added exit confirmation dialog 2015-08-31 23:12:06 +02:00
Charles Dang
f07c67ec3e Improvement to the bundled GUI.py icon 2015-08-18 07:36:04 +11:00
Elvish_Hunter
5fd31c88a5 wml tools GUI: added a window icon 2015-08-17 17:02:00 +02:00
Elvish_Hunter
499866323b GUI.pyw: fixed an obscure bug triggered by Unicode literals 2015-08-04 10:07:59 +02:00
Elvish_Hunter
e2063ee024 GUI.pyw: use 'with' statement instead of open() and close() 2015-07-28 12:05:05 +02:00
Elvish_Hunter
ccc2ea9319 GUI.pyw: remove some duplicated code 2015-07-28 11:41:58 +02:00
Elvish_Hunter
76f1e4bf3c wml tools GUI: added support for *BSD systems 2015-07-21 11:00:59 +02:00
Elvish_Hunter
f501b39a2a wml tools GUI: fixed the text box ignoring mouse clicks on Mac OS 2015-02-26 15:04:08 +01:00
Elvish_Hunter
57cde075b8 wml tools GUI: fixed bindings for Entry, Spinbox and Text widgets on Mac OS 2015-02-26 14:58:26 +01:00
Elvish_Hunter
205673d607 wml tools GUI: fixed shortcuts being reported as Ctrl+key instead of Command+key on Mac OS
The actual bindings will be fixed in the next commit.
2015-02-26 14:49:18 +01:00
Elvish_Hunter
0b14c1ae50 wml tools GUI: updated copyright notice 2015-02-18 11:27:03 +01:00
Elvish_Hunter
b337e13070 wml tools GUI: exclude the double endline at the end of the file when exporting as text 2015-02-10 11:18:49 +01:00
Elvish_Hunter
63cac8ec70 wml tools GUI: the Ctrl+A accelerator (select all) finally works 2015-02-10 11:14:41 +01:00
Elvish_Hunter
3f3e0ce5f6 wml tools GUI: handle the case in which a user selects the core directory or one of it subdirectories in the add-on selection box 2015-02-10 10:59:02 +01:00