summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-22 10:55:05 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-22 12:40:29 +0200
commitd78e5e7329bc56255288c32193504ca97dbf15db (patch)
treef2cb3273f12dbd865edf4390961b83e349e42429 /cmake
parente61b2f99c14c307ae317a5aaba151cd0070c313d (diff)
downloadminetest-d78e5e7329bc56255288c32193504ca97dbf15db.tar.gz
minetest-d78e5e7329bc56255288c32193504ca97dbf15db.tar.bz2
minetest-d78e5e7329bc56255288c32193504ca97dbf15db.zip
updatepo cmake rule
Get rid of the system-specific updatelocales.sh and introduce an updatepo cmake rule. po files are also updated before creating the mo files, and we now keep the .pot file (in the po/en directory). To stabilize the po file creation, file contents are sorted by source filename. Update po files in the process.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindGettextLib.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake
index 31b261539..b99fd33b8 100644
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -16,6 +16,21 @@ FIND_PROGRAM(GETTEXT_MSGFMT
PATHS "${CUSTOM_GETTEXT_PATH}/bin"
DOC "path to msgfmt")
+FIND_PROGRAM(GETTEXT_MSGMERGE
+ NAMES msgmerge
+ PATHS "${CUSTOM_GETTEXT_PATH}/bin"
+ DOC "path to msgmerge")
+
+FIND_PROGRAM(GETTEXT_MSGEN
+ NAMES msgen
+ PATHS "${CUSTOM_GETTEXT_PATH}/bin"
+ DOC "path to msgen")
+
+FIND_PROGRAM(GETTEXT_EXTRACT
+ NAMES xgettext
+ PATHS "${CUSTOM_GETTEXT_PATH}/bin"
+ DOC "path to xgettext")
+
# modern Linux, as well as Mac, seem to not need require special linking
# they do not because gettext is part of glibc
# TODO check the requirements on other BSDs and older Linux