Static naming of po file

The po file should not be named c55 if we're in ∆. But since it is not
exposed at installation time, we don't actually need its name to be
based on the project name at all, so just call it minetest.po
This commit is contained in:
Giuseppe Bilotta 2011-07-22 09:58:02 +02:00
parent d386f02893
commit e61b2f99c1
4 changed files with 5 additions and 5 deletions

View File

@ -305,7 +305,7 @@ if (USE_GETTEXT)
COMMENT "mo-update [${LOCALE}]: Creating locale directory.")
set(MO_FILE_PATH "${MO_BUILD_PATH}/${PROJECT_NAME}.mo")
set(PO_FILE_PATH "${GETTEXT_PO_PATH}/${LOCALE}/minetest-c55.po")
set(PO_FILE_PATH "${GETTEXT_PO_PATH}/${LOCALE}/minetest.po")
add_custom_command(
OUTPUT ${MO_FILE_PATH}

View File

@ -1,5 +1,5 @@
#! /bin/bash
xgettext -n -o minetest-c55.pot ./src/*.cpp ./src/*.h
msgmerge -U ./po/de/minetest-c55.po minetest-c55.pot
msgmerge -U ./po/fr/minetest-c55.po minetest-c55.pot
rm minetest-c55.pot
xgettext -n -o minetest.pot ./src/*.cpp ./src/*.h
msgmerge -U ./po/de/minetest.po minetest.pot
msgmerge -U ./po/fr/minetest.po minetest.pot
rm minetest.pot