From e61b2f99c14c307ae317a5aaba151cd0070c313d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 22 Jul 2011 09:58:02 +0200 Subject: [PATCH] Static naming of po file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- po/de/{minetest-c55.po => minetest.po} | 0 po/fr/{minetest-c55.po => minetest.po} | 0 src/CMakeLists.txt | 2 +- updatelocales.sh | 8 ++++---- 4 files changed, 5 insertions(+), 5 deletions(-) rename po/de/{minetest-c55.po => minetest.po} (100%) rename po/fr/{minetest-c55.po => minetest.po} (100%) diff --git a/po/de/minetest-c55.po b/po/de/minetest.po similarity index 100% rename from po/de/minetest-c55.po rename to po/de/minetest.po diff --git a/po/fr/minetest-c55.po b/po/fr/minetest.po similarity index 100% rename from po/fr/minetest-c55.po rename to po/fr/minetest.po diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4427a1380..61fb20680 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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} diff --git a/updatelocales.sh b/updatelocales.sh index e84145107..72ecd48d2 100755 --- a/updatelocales.sh +++ b/updatelocales.sh @@ -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 -- 2.25.1