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.popull/1/head
parent
0ec749317c
commit
8f2409a1b4
|
@ -305,7 +305,7 @@ if (USE_GETTEXT)
|
||||||
COMMENT "mo-update [${LOCALE}]: Creating locale directory.")
|
COMMENT "mo-update [${LOCALE}]: Creating locale directory.")
|
||||||
|
|
||||||
set(MO_FILE_PATH "${MO_BUILD_PATH}/${PROJECT_NAME}.mo")
|
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(
|
add_custom_command(
|
||||||
OUTPUT ${MO_FILE_PATH}
|
OUTPUT ${MO_FILE_PATH}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
xgettext -n -o minetest-c55.pot ./src/*.cpp ./src/*.h
|
xgettext -n -o minetest.pot ./src/*.cpp ./src/*.h
|
||||||
msgmerge -U ./po/de/minetest-c55.po minetest-c55.pot
|
msgmerge -U ./po/de/minetest.po minetest.pot
|
||||||
msgmerge -U ./po/fr/minetest-c55.po minetest-c55.pot
|
msgmerge -U ./po/fr/minetest.po minetest.pot
|
||||||
rm minetest-c55.pot
|
rm minetest.pot
|
||||||
|
|
Loading…
Reference in New Issue