2695 Commits

Author SHA1 Message Date
pentarctagon
e7a7960cee 1.19.10+dev 2025-03-16 23:30:13 -05:00
pentarctagon
8266a078ea 1.19.10 2025-03-16 23:29:07 -05:00
Elvish_Hunter
8dc12cfea2 GUI.pyw: use the Windows API to detect the user's language
Fixes #9972.
2025-03-15 16:53:34 +01:00
pentarctagon
4b9e271a08 1.19.9+dev 2025-02-17 16:14:03 -06:00
pentarctagon
219fa494ca 1.19.9 2025-02-17 16:12:35 -06:00
pentarctagon
ca0f7a0a17 other copyright updates 2025-02-17 13:17:59 -06:00
Dalas121
6765db5431
DM -> TDG translations cleanup (#9779)
Various minor changes to tools to better-support the addition of TDG.
2025-02-09 07:48:36 -06:00
pentarctagon
29d949ba4b 1.19.8+dev 2025-01-19 11:55:40 -06:00
pentarctagon
11523799e8 1.19.8 2025-01-19 11:53:14 -06:00
Severin Glöckner
071da35a6a wmllint: more precise rule
More precise rule to not match units in Ageless.
2025-01-18 02:07:22 +01:00
Elvish_Hunter
2583d9ae80 Fixed a flag description in wmllint and GUI.pyw
The description for the -m flag now correctly says 'warn' instead of 'don't warn'.
2024-12-31 15:07:15 +01:00
pentarctagon
f7dc6ebaeb 1.19.7+dev 2024-12-18 16:58:02 -06:00
pentarctagon
4a689a687d 1.19.7 2024-12-18 16:57:02 -06:00
Gunter Labes
01908e9274
Reject image URI with unsupported type 2024-12-04 11:15:48 +01:00
pentarctagon
7183553e23 1.19.6+dev 2024-11-26 12:17:36 -06:00
pentarctagon
99469ba31d 1.19.6 2024-11-26 12:16:03 -06:00
Gunter Labes
8c8bff7ffb
Fix expected/actual mixup in warning messages 2024-11-17 17:39:09 +01:00
pentarctagon
fd426b5b9b 1.19.5+dev 2024-10-21 12:13:11 -05:00
pentarctagon
383ba03664 1.19.5 2024-10-21 12:10:10 -05:00
Descacharrado
52e132648d
Highlight reachable hexes instead of darkening unreachable hexes (#9292) 2024-10-17 23:23:53 -04:00
Gunter Labes
1689f5ed17
Add entry for theme type
Also reordered the types to match src/addon/validation.hpp.
2024-10-11 17:08:29 +02:00
pentarctagon
ea8cdf9282 1.19.4+dev 2024-09-17 21:22:35 -05:00
pentarctagon
ff9c4461ae 1.19.4 2024-09-17 21:21:55 -05:00
Gunter Labes
45558f52ee
Use correct wesnoth option 2024-09-09 16:22:01 +02:00
Gunter Labes
0bb7395804
Make sure stdout encoding is UTF-8 2024-08-19 08:51:05 +02:00
pentarctagon
04fe19bf6c 1.19.3+dev 2024-08-18 23:24:17 -05:00
pentarctagon
e865a5fd61 1.19.2 2024-08-18 23:22:05 -05:00
Eric Gallager
4915f3be86 wmlscope: fix format of magic comment in documentation
It's not just `prune`, but rather `wmlscope: prune`
2024-08-18 10:56:50 +02:00
pentarctagon
aba0abeb79 1.19.2+dev 2024-07-21 22:40:10 -05:00
pentarctagon
7cf3a8d853 1.19.2 2024-07-21 22:38:25 -05:00
Subhraman Sarkar
4c1b1ebe20 reduce hardcoded extensions in python files, only instance at wmltool3.py 2024-07-05 09:05:26 +05:30
Steve Cotton
c930a7e476 Delete the wmltools3.Translation class
Appears to be unused, and is still Python2 code. To be Python3, these
lines need to change:

- f = file(fn)
+ f = open(fn, encoding="utf-8")

- gettext = f.read().decode("utf8")
+ gettext = f.read()

Even knowing how to make it work, it still doesn't seem useful to keep.

wmlunits uses html_output.Translation, but that's not this class. It's
a wrapper around Python's standard gettext library, in html_output.py.
2024-07-04 16:37:39 +02:00
Steve Cotton
91f59a794b wmltools3: fix regexp compatibility with Python 3.12 2024-07-02 19:42:13 +02:00
pentarctagon
1712b357c2 1.19.1+dev 2024-06-17 10:50:57 -05:00
pentarctagon
6189964a77 1.19.1 2024-06-17 10:49:01 -05:00
Gunter Labes
6d6bb8dc0c
Update generator calls since the method was removed in 2413e2f 2024-06-16 21:51:16 +02:00
Gunter Labes
28a8959854 Fix "span" regex
This disallows matching "0-11-2" and "1," for example. It also avoids an exponential backtracking issue which could make this regex very slow.
2024-06-12 19:52:50 +02:00
Severin Glöckner
c2fbb745f7 terrain2wiki tool: link to images on stable 1.18 branch 2024-06-08 21:18:03 +02:00
Severin Glöckner
564c96a7e9 terrain2wiki tool: python 3.12 compatibility 2024-06-08 20:56:21 +02:00
Gunter Labes
f2d22d6364
Fix indentation 2024-06-04 23:15:49 +02:00
Gunter Labes
f4e8635723 Implement table sorting without tablesorter.js
This allows getting rid of a bunch of dependencies for minimal own code.
2024-06-03 17:08:33 +02:00
pentarctagon
279c7daa33 1.19.0+dev 2024-05-26 15:16:01 -05:00
pentarctagon
d39e42b672 1.19.0 2024-05-26 15:13:59 -05:00
Wedge009
73cc52b506 wmlxgettext: Remove unused WmlDefineState class disabled-as-comment/string and resolve #8867 (Python 3.12 highlighting invalid escape sequence in string with SyntaxError). 2024-05-21 14:55:09 +02:00
Steve Cotton
6f95b062cb wmlxgettext: Fix "fix invalid escape sequence"
The original code was probably meant to strip trailing whitespace, which
turned out to be a bug when 4be9aa85849010e93a9a3b0f0701d0630e7b9368
fixed the buggy regexp so that it started working. That has now been
removed.

Fixed handling of multiline plural strings, which was broken too.

One feature has been left unimplemented, and will cause wmlxgettext to error
out. For "long bracketed" strings, Lua allows the contents to start with a
newline, which is automatically stripped from the resulting string. Trying to
understand the original purpose lead me to this feature of Lua strings which we
don't use in Wesnoth; and I finally concluded that, if someone wants to use
that feature, it can be their problem to implement it.

This fixes commit 4be9aa85849010e93a9a3b0f0701d0630e7b9368.

(cherry picked from commit e4239634e5094410478fa6b1d91df3be4ddf1caf)
2024-04-02 16:12:23 +02:00
Toom
4be9aa8584 fix invalid escape sequence 2024-03-24 21:33:47 +01:00
Gunter Labes
01db35ae56
Add the 1.19.x campaignd to port list 2024-03-22 22:30:22 +01:00
Iris Morelle
642828b375
wesmere: Bump CSS version 2024-03-21 18:38:49 -03:00
Iris Morelle
df147dab9c
wesmere: Use the correct version of jQuery 2024-03-21 18:38:07 -03:00
Iris Morelle
14dda3ea1b
wesmere: Remove Google Fonts requirement 2024-03-21 18:36:12 -03:00