diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt index ce428bec..01d011ee 100644 --- a/gtk/CMakeLists.txt +++ b/gtk/CMakeLists.txt @@ -49,7 +49,7 @@ include(CheckIncludeFile) include(FindGettext) foreach(lang es fr_FR ja pt_BR ru sr@latin uk zh_CN) - GETTEXT_PROCESS_PO_FILES(${lang} ALL "share/locale/" PO_FILES po/${lang}.po) + GETTEXT_PROCESS_PO_FILES(${lang} ALL PO_FILES po/${lang}.po) install(FILES ${CMAKE_BINARY_DIR}/${lang}.gmo DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES RENAME snes9x-gtk.mo diff --git a/gtk/po/TRANSLATING.txt b/gtk/po/TRANSLATING.txt index ce6cde9b..ebc98c92 100644 --- a/gtk/po/TRANSLATING.txt +++ b/gtk/po/TRANSLATING.txt @@ -1,7 +1,7 @@ To add a new language or update the existing ones: Generate the template file: -Change to the gtk directory and run 'xgettext -f po/POTFILES.in -o po/snes9x-gtk.pot' +Run the shell script "updatepot.sh" or change to the gtk directory and run 'xgettext -f po/POTFILES.in -o po/snes9x-gtk.pot -kmaybegettext'. This will update the snes9x-gtk.pot file in this directory with the latest strings. Use the program 'poedit' to use this template and create a new translation or merge the template's new strings into an existing .po file. diff --git a/gtk/po/updatepot.sh b/gtk/po/updatepot.sh new file mode 100755 index 00000000..5d7ea75e --- /dev/null +++ b/gtk/po/updatepot.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cd $(dirname "${0}")/.. +xgettext -f po/POTFILES.in -o po/snes9x-gtk.pot -kmaybegettext +cd -