From e9183c87f00317ef3a5c2c8212144885ba5f3153 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 5 Jun 2011 09:18:08 +0000 Subject: [PATCH] cmake: do not compile removed pot files i18n: forgot generate_pot.sh in previous commit git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4711 96395faa-99c1-11dd-bbfe-3dabce05a288 --- generate_pot.sh | 40 ++++++++++++++++++++-------------------- locales/CMakeLists.txt | 4 ---- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/generate_pot.sh b/generate_pot.sh index 35fe9ed65f..39278916b6 100644 --- a/generate_pot.sh +++ b/generate_pot.sh @@ -66,20 +66,20 @@ TER_KEY2=pxLt TER_KEY3=pxEt echo "Generate $MAIN_POT" -xgettext --keyword=$MAIN_KEY1 --keyword=$MAIN_KEY2 $GENERAL_OPTION $input_files --output=$MAIN_POT +xgettext --keyword=$MAIN_KEY1 --keyword=$MAIN_KEY2 --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 --keyword=$TER_KEY1 --keyword=$TER_KEY2 $GENERAL_OPTION $input_files --output=$MAIN_POT sed --in-place $MAIN_POT --expression=s/charset=CHARSET/charset=UTF-8/ -echo "Generate $DEV_POT" -xgettext --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 $GENERAL_OPTION $input_files --output=$DEV_POT -sed --in-place $DEV_POT --expression=s/charset=CHARSET/charset=UTF-8/ +# echo "Generate $DEV_POT" +# xgettext --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 $GENERAL_OPTION $input_files --output=$DEV_POT +# sed --in-place $DEV_POT --expression=s/charset=CHARSET/charset=UTF-8/ echo "Generate $ICO_POT" -xgettext --keyword=$ICO_KEY1 $GENERAL_OPTION $input_files --output=$ICO_POT +xgettext --keyword=$ICO_KEY1 --keyword=$TER_KEY3 $GENERAL_OPTION $input_files --output=$ICO_POT sed --in-place $ICO_POT --expression=s/charset=CHARSET/charset=UTF-8/ -echo "Generate $TER_POT" -xgettext --keyword=$TER_KEY1 --keyword=$TER_KEY2 --keyword=$TER_KEY3 $GENERAL_OPTION $input_files --output=$TER_POT -sed --in-place $TER_POT --expression=s/charset=CHARSET/charset=UTF-8/ +# echo "Generate $TER_POT" +# xgettext --keyword=$TER_KEY1 --keyword=$TER_KEY2 --keyword=$TER_KEY3 $GENERAL_OPTION $input_files --output=$TER_POT +# sed --in-place $TER_POT --expression=s/charset=CHARSET/charset=UTF-8/ ###################################################################### # Add poedit metadata @@ -94,9 +94,9 @@ sed --in-place $TER_POT --expression=s/charset=CHARSET/charset=UTF-8/ # Normally "...Content-Transfer-Encoding..." is the end of the header. Use it as anchor to place poedit metadata after COMMON_META="\"X-Poedit-SourceCharset: utf-8\\\n\"\n\"X-Poedit-Basepath: trunk\\\\\\\\\\\n\"\n\"X-Poedit-SearchPath-0: pcsx2\\\n\"\n\"X-Poedit-SearchPath-1: common\\\n\"" sed --in-place $MAIN_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${MAIN_KEY1};${MAIN_KEY2}\\\n\"\n${COMMON_META}"/ -sed --in-place $DEV_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${DEV_KEY1};${DEV_KEY2}\\\n\"\n${COMMON_META}"/ sed --in-place $ICO_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${ICO_KEY1}\\\n\"\n${COMMON_META}"/ -sed --in-place $TER_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${TER_KEY1};${TER_KEY2};${TER_KEY3}\\\n\"\n${COMMON_META}"/ +# sed --in-place $DEV_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${DEV_KEY1};${DEV_KEY2}\\\n\"\n${COMMON_META}"/ +# sed --in-place $TER_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${TER_KEY1};${TER_KEY2};${TER_KEY3}\\\n\"\n${COMMON_META}"/ ###################################################################### # Automatically align the .po to the new pot file @@ -107,11 +107,11 @@ do msgmerge --update $po_file $MAIN_POT done -echo "Update pcsx2_Devel.po files" -for po_file in `find ./locales -iname pcsx2_Devel.po` -do - msgmerge --update $po_file $DEV_POT -done +# echo "Update pcsx2_Devel.po files" +# for po_file in `find ./locales -iname pcsx2_Devel.po` +# do +# msgmerge --update $po_file $DEV_POT +# done echo "Update pcsx2_Iconized.po files" for po_file in `find ./locales -iname pcsx2_Iconized.po` @@ -119,11 +119,11 @@ do msgmerge --update $po_file $ICO_POT done -echo "Update pcsx2_Tertiary.po files" -for po_file in `find ./locales -iname pcsx2_Tertiary.po` -do - msgmerge --update $po_file $TER_POT -done +# echo "Update pcsx2_Tertiary.po files" +# for po_file in `find ./locales -iname pcsx2_Tertiary.po` +# do +# msgmerge --update $po_file $TER_POT +# done ###################################################################### # Automatically compile po into mo file diff --git a/locales/CMakeLists.txt b/locales/CMakeLists.txt index 1841036ec5..41dbf56b16 100644 --- a/locales/CMakeLists.txt +++ b/locales/CMakeLists.txt @@ -8,15 +8,11 @@ endif(NOT TOP_CMAKE_WAS_SOURCED) if (GETTEXT_FOUND) include(Translation) - file (GLOB_RECURSE PO_DEV_FILES ${PROJECT_SOURCE_DIR}}/locales pcsx2_Devel.po) file (GLOB_RECURSE PO_ICO_FILES ${PROJECT_SOURCE_DIR}}/locales pcsx2_Iconized.po) file (GLOB_RECURSE PO_MAIN_FILES ${PROJECT_SOURCE_DIR}/locales pcsx2_Main.po) - file (GLOB_RECURSE PO_TER_FILES ${PROJECT_SOURCE_DIR}}/locales pcsx2_Tertiary.po) # Macro to compile po file and install them - GETTEXT_CREATE_TRANSLATIONS_PCSX2(${PROJECT_SOURCE_DIR}/locales/templates/pcsx2_Devel.pot ALL ${PO_DEV_FILES}) GETTEXT_CREATE_TRANSLATIONS_PCSX2(${PROJECT_SOURCE_DIR}/locales/templates/pcsx2_Iconized.pot ALL ${PO_ICO_FILES}) GETTEXT_CREATE_TRANSLATIONS_PCSX2(${PROJECT_SOURCE_DIR}/locales/templates/pcsx2_Main.pot ALL ${PO_MAIN_FILES}) - GETTEXT_CREATE_TRANSLATIONS_PCSX2(${PROJECT_SOURCE_DIR}/locales/templates/pcsx2_Tertiary.pot ALL ${PO_TER_FILES}) endif (GETTEXT_FOUND)