Commit graph

41 commits

Author SHA1 Message Date
Gunter Labes
0fbe71cca8
Simplify pot generation
Use a standard sed invocation and avoid rewriting the file.
2024-08-05 21:49:23 +02:00
Gunter Labes
cf52b6bdd0 Fix mismatch between what gettext.w.o and wesnoth consider core textdomains
wesnoth-anl is pretty much an extraction of wesnoth-multiplayer which is core.
2024-04-09 21:10:27 +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
loonycyborg
41202b9bc5 Replace po4a-gettextize with po4a-updatepo
as recommended by error message in issue #7149
2023-05-22 14:01:47 +03:00
Iris Morelle
018a0ebd78
i18n: Add N_n() no-op macro to allow xgettext to extract plural forms
This is intended to allow xgettext to extract plural forms from the code
without actually altering the input. Basically, this is to _n() as N_()
is to _(), and doesn't actually call any gettext functions.
2021-09-17 07:17:34 -03:00
Pentarctagon
d4adce6c86 Explicitly use python3 in translations.
Ubuntu 20.04 no longer has the python link or python2 by default.
2020-05-03 22:46:19 -05:00
loonycyborg
0ab4ecbd8c scons: fix build failure on removal of campaigns due to old POTFILES.in 2020-01-06 15:02:20 +03:00
loonycyborg
c71d57adc2 Address issue #4268 2019-08-24 15:12:28 +03: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
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0
(cherry-picked from commit bc4d22dc72)
2018-10-07 03:23:36 +00:00
Victor Sergienko
c2a56b403e Hide minor translations (<80%) from language selection menu. (#2552)
@CelticMinstrel suggests we only use non-campaign textdomains without manpages.
2018-03-13 22:51:36 -04:00
Charles Dang
3a90f86674 Addressed more whitespace issues from #2613
[ci skip]
2018-03-12 03:48:59 +11:00
loonycyborg
240d9d995d pot-update and regenerate doc files 2018-02-04 19:46:58 +03:00
loonycyborg
83c5b5c5b3 Fix incorrect port of os.path.walk to os.walk 2018-02-04 19:46:45 +03:00
loonycyborg
a180e09bb6 Made build with scons 3.0.0 work fixing issue #2093 2017-10-11 16:36:20 +03:00
Alexander van Gessel
6cffb03012 Update po sconscript too 2017-09-21 15:38:38 +02:00
Celtic Minstrel
b7aea011f9 Add VNGETTEXT macro to complement the VGETTEXT macro 2017-04-15 23:36:57 -04:00
Celtic Minstrel
6bf76d940b Include header files in pot-updates
It would probably be better to avoid using translatable strings in headers,
but certain people keep doing so anyway, so this is more future-proof.
2017-03-16 17:21:55 -04:00
loonycyborg
c66572ef62 Commit wmlxgettext2, Nobun's python3 reimplementation of wmlxgettext 2016-04-30 19:01:31 +03:00
loonycyborg
059f329b3d scons: add missing --keyword arg to xgettext invocation 2016-03-05 04:56:24 +03:00
loonycyborg
fccb00b92d scons: massage {wml,cpp}.pot files with msgcat instead of just moving them 2016-03-05 04:43:50 +03:00
Sergey Popov
cb4da595eb scons: made po4a use utf8 for man pages. 2011-11-16 10:11:36 +00:00
Sergey Popov
bbf5cc114e Made collections python module required only for 'pot-update' scons target. 2010-03-28 20:36:24 +00:00
Sergey Popov
4187ce6e8f Tweak extensions of intermediate .pot files 2010-01-27 01:27:05 +00:00
Sergey Popov
a420ff3c39 Made scons generate POTFILES.in 2010-01-27 01:27:00 +00:00
Jordà Polo
3dd513b9e6 Add new translation to RACV and reinitialize Valencian translation 2008-10-11 16:36:31 +00:00
Sergey Popov
5e546ac2ea Reflect the removal of editor manpage in po/SConscript. 2008-10-07 15:02:58 +00:00
Sergey Popov
f4699cb764 Ensure that xgettext creates a file using --force-po option instead of touch. 2008-08-28 09:47:37 +00:00
Sergey Popov
8973b185f4 Fixed scons pot-update failing if (wml)xgettext doesn't produce a file. 2008-08-27 10:03:34 +00:00
Sergey Popov
c06c5c7d90 Implemented remove-potcdate hack from autotools in scons. 2008-06-21 11:50:18 +00:00
Sergey Popov
7bc432775d SCons recipe: invoke po4a tools directly. 2008-05-31 20:08:31 +00:00
Sergey Popov
6660a387ad SCons recipe: added support for initializing message catalogs. 2008-05-13 22:23:46 +00:00
Sergey Popov
7332864c1e SCons recipe:
- Made pot-update update manpages and manual pots.

- Made update-po print statistics.
2008-05-12 11:03:00 +00:00
Sergey Popov
c37a6f0944 SCons recipe:
- fixed regex in po/SConscript to work on windows.

- No longer pass -O2 -ansi on windows.
2008-05-10 12:02:55 +00:00
Sergey Popov
b77e5e62ec Made scons recipe use po/LINGUAS. 2008-05-09 19:53:36 +00:00
Sergey Popov
5d22ac90a4 Refactored po/SConscript. 2008-05-09 09:51:35 +00:00
Sergey Popov
1d83dc025a Implemented MsgMerge builder method. 2008-05-08 18:30:37 +00:00
Sergey Popov
6a559fe1e5 Added gettext tool. 2008-05-08 16:11:57 +00:00
Sergey Popov
694d043832 Fixed Move invocations that were failing with scons 0.98.3 2008-05-04 16:23:54 +00:00
Sergey Popov
f968eb3f3b Simplified pot-update code. 2008-04-18 15:04:07 +00:00
Sergey Popov
29add1b955 Moved translation stuff to po/SConscript. 2008-04-17 17:36:50 +00:00