Commit graph

51 commits

Author SHA1 Message Date
Pentarctagon
a64ed84a48 Explicitly use python3 in translations.
Ubuntu 20.04 no longer has the python link or python2 by default.
2020-11-10 11:43:36 +03:00
Celtic Minstrel
1f4f1a366f Move wmlxgettext to the data/tools directory so that it's automatically included in official packages 2018-09-08 18:06:26 -04: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
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
Gregory A Lundberg
5d7f268b59 Partially revert 321c350
Accidental revert of PR 2212 (whose commit is completely gone).
2017-11-20 10:52:06 -06:00
David Seifert
0e57d0840a Use GNUInstallDirs to specify directories
* GNUInstallDirs is the only Kitware-supported
  way to change the default directories. Most
  distributions have hooks for changing these
  directories, which makes integrating wesnoth
  easier and more consistent with the rest of
  the CMake ecosystem.
* Make build system perfectly out-of-source
  compatible. The build system should never
  touch files in the source tree.
2017-11-20 07:44:46 +02:00
Celtic Minstrel
f26fbe9aba Prevent gettext from checking format strings, since we don't use the printf family of functions 2017-05-29 22:50:35 -04:00
Nils Kneuper
f12bf3345f add wesnoth-sota to CMake list (allow compilation + pot-update) 2017-03-23 19:30:25 +01:00
aquileia
e1021b0ff6 po: Update cmake to use '-o' for output
The new Python wmlxgettext doesn't use UTF-8 for stdout
2016-05-03 21:30:30 +02:00
Espreon
3f20785d02 Split all of the AI-related strings (except for the AI controller's) into a new 'wesnoth-ai' textdomain. Includes a pot-update for 'wesnoth' as a side effect. 2013-05-22 22:19:43 -04:00
Mark de Wever
b29345492e When merging pot files use --previous.
Untested, Ivanovic please test whether it really works.
2011-03-27 22:05:48 +00:00
Nils Kneuper
dfd9b70697 try to use the same checks in the old makefiles for the po4a domains...
...as used by scons. (makefiles are probably not used anymore)

add the checks to the cmake mo stuff, too
2011-03-20 15:34:34 +00:00
Mark de Wever
68b92330dc Don't clean pot-update files.
Avoids deleting the pot files and the POTFILES.in.
2011-01-16 10:31:34 +00:00
Mark de Wever
14ad071a40 Polish the pot-update cmake target. 2011-01-16 10:31:31 +00:00
Mark de Wever
6554bc6897 Remove the cmake dummy target update-po4a.
The command did nothing at all.
2011-01-16 10:31:28 +00:00
Mark de Wever
2b9ddcea2c Formatting cleanup of cmake files. 2011-01-16 10:31:25 +00:00
Mark de Wever
4e4f42d60c Remove an unused cmake file. 2011-01-16 10:31:22 +00:00
Mark de Wever
4997fe436c Use the global LINUGAS instead of local LANGUAGES.
The LINGUAS used are a global thing, so it makes more sense to use
them, the LANGUAGES was used for testing, but since things seem stable
now use the proper way.
2011-01-08 11:44:32 +00:00
Mark de Wever
14db2d8b01 Move pot-update dependencies in a separate file.
This allows to move the po4a update tools in the same file and keep the
dependencies better together.
2011-01-02 18:50:00 +00:00
Nils Kneuper
2f8d25ca7e create textdomain wesnoth-help (part1)
so far only the stuff in po/ is done, what has to be done next is add
the textdomain to the respective file and run a pot-update

the current po files are based on the files from the textdomain
'wesnoth' since this is where the strings currently reside, after the
pot-update only the relevant strings will be left
2010-12-22 11:34:44 +00:00
Nils Kneuper
8d20b1bca7 import the Dead Water translations from wescamp...
...(using http://svn.berlios.de/viewcvs/wescamp-i18n/branches/1.8/Dead_Water/)
2010-04-06 19:42:18 +00:00
Nils Kneuper
3e944bedcd patch by Mordante to extract strings marked with VGETTEXT...
...and not just with vgettext
2010-03-14 17:43:06 +00:00
Mark de Wever
87d012e7ab Renamed the cmake foo2 targets to foo. 2009-10-19 18:24:33 +00:00
Mark de Wever
71d9b8a349 Let po-update2-xx update all domains.
Ivanovic discovered it didn't update the manual and manpages.
2009-10-13 20:48:42 +00:00
Mark de Wever
9359184556 Improve po-update to avoid nop updates.
The last change caused a lot of files be updated with the only change
the pot-update header. In the Wesnoth wiki there was a hint to use
msgattrib to cleanup the changes poedit makes. Using this on the file
seems to give the wanted output, proper files and no "dummy" updates.

Ivanovic please test this change.
2009-10-11 07:08:49 +00:00
Nils Kneuper
9415dd1cc1 read langcodes from LINGUAS file instead of hardcoded ones in build system 2009-09-26 11:32:09 +00:00
Nils Kneuper
a844d18f78 add vietnamese in the list of langs to work on in the cmake recipe
@ mordante: it would be *great* if the content of LINGUAS was used for this set!
2009-09-23 19:59:26 +00:00
Mark de Wever
0049016ded Fix the linewrapping when updating a po file.
It seems when updating a po file it's not automatically line wrapped.
Use the same trick as autotools by writing to a temp file and move that
to the original.
2009-09-16 19:41:31 +00:00
Nils Kneuper
b6988b50bd add wesnoth-dm to cmake recipe...
...(was working for most things, but not for make install...)
2009-07-28 10:32:39 +00:00
Mark de Wever
efc75a7d39 Add a bug entry to the pot files for cmake. 2009-07-14 19:23:57 +00:00
Mark de Wever
4a65d01607 Remove some old cmake translation targets. 2009-06-15 17:46:08 +00:00
Mark de Wever
e111adb9b8 Add po update targets per language.
This is needed for maintenance and thus are the targets only available
if the maintenance target is enabled.
2009-06-12 17:45:04 +00:00
Mark de Wever
c3cf4d1dc7 Add mo update targets per language.
This is needed for maintenance and thus are the targets only available
if the maintenance target is enabled.
2009-06-12 17:44:58 +00:00
Mark de Wever
e80dd12059 Entirely switch to the new mo-update.
Stikonas discovered the old way was still there, also added a proper
install target for the new code.
2009-06-05 17:44:38 +00:00
Mark de Wever
4342bfebf6 Add more verbose info to the mo generation.
This is added upon Ivanovic's request and since the output looks
horrible it's only enabled if ENABLE_POT_UPDATE_TARGET is enabled.
2009-05-23 13:42:26 +00:00
Nils Kneuper
5076f1796f change textdomain from wesnoth-Delfadors_Memoirs to wesnoth-dm
add wesnoth-dm to CMake build system
2009-04-10 17:28:10 +00:00
Mark de Wever
7d46f5111d Create the mo files out of tree.
With this change it's possible to use the translations without
installing and using dummy-locales. The next step is to convert the
dummy locales to use these translations and removing the old gmo
targets.
2009-03-31 21:34:49 +00:00
Mark de Wever
a77c757235 Add new experimental version of the pot-update. 2009-03-27 20:05:52 +00:00
Mark de Wever
c5d68984ef Made the update-po4a target unconditionally again.
Stikonas reported problems with this change, can't reproduce it here but
reverted, since it doesn't break for me.
2009-03-27 19:10:45 +00:00
Nils Kneuper
103e0bbb5e remove manual and manpages from the list of packages for the moment,
...the update-po4a target makes some problems...
2009-03-27 10:35:21 +00:00
Mark de Wever
1e808b7edd Add a special target for pot-updates. 2009-03-21 07:47:46 +00:00
Nils Kneuper
06959dc774 some *tiny* improvements to cmake script:
* reorder stuff for manual to only add targets when those can be
   built (due to po4a stuff)

 * break textdomain list into "one per line" and add the wesnoth-test domain
2009-02-28 21:01:41 +00:00
Nils Kneuper
01c0ba38a8 restore UtBS since ESR is going to make it work as expected again... 2008-11-17 18:37:44 +00:00
Nils Kneuper
5d9a606873 step 3 of moving UtBS out of mainline 2008-11-16 19:26:14 +00:00
Fabian Müller
1a61c766a3 moved wesnoth-low in CMakeLists.txt to the right place. 2008-10-12 16:04:07 +00:00
Fabian Müller
5cd8075a11 added wesnoth-low to the CMakeLists.txt 2008-10-12 15:44:46 +00:00
Moritz Göbelbecker
12d1d7247d Add cmake support for manual generation/translation/installation
Add cmake support for manpage installation

Workaround for a bug in cmake 2.4.7
2008-05-12 23:00:16 +00:00
Moritz Göbelbecker
e9c10d50e4 Add translation support for manual and manpages (update-po4a)
Keep the list of languages only in po/LINGUAS (the old files remain
for now for compatibility)
2008-05-09 19:12:21 +00:00
Moritz Göbelbecker
7419a6726d Add per-language targets for po-generation: update-po-domain-LANG
Fix gettext detection

Fix out of source build
2008-05-05 18:52:11 +00:00