From d0c45f36b1b96a259b1386f27f582f6a0b2db63e Mon Sep 17 00:00:00 2001 From: BearOso Date: Thu, 24 Aug 2023 11:15:52 -0500 Subject: [PATCH] Gtk: Update translation misc. --- gtk/CMakeLists.txt | 2 +- gtk/po/TRANSLATING.txt | 2 +- gtk/po/updatepot.sh | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 gtk/po/updatepot.sh 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 -