From bc821136fdf2c82c1877c8ae0e607bcbe784dab1 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 23 Aug 2010 19:45:14 +0000 Subject: i18n: Add support for context in translations. This change means there can now be different translations for the same english string depending on the context. It is based on gettext msgctxt feature. There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in the source code when we want to add a context to the message. For the moment I have added contexts to only one message ("None") so that I could test the changes. Context could be added also to get shorter translations when GUI is in 1x mode. I have also added back the fuzzy option to msmerge since it is useful when adding contexts to populate the translations for the new contexts. svn-id: r52308 --- po/scummvm.pot | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'po/scummvm.pot') diff --git a/po/scummvm.pot b/po/scummvm.pot index 1581129399..95473cbacd 100644 --- a/po/scummvm.pot +++ b/po/scummvm.pot @@ -8,10 +8,11 @@ msgid "" msgstr "" "Project-Id-Version: ScummVM 1.2.0svn\n" "Report-Msgid-Bugs-To: scummvm-devel@lists.sf.net\n" -"POT-Creation-Date: 2010-08-19 13:30+0300\n" +"POT-Creation-Date: 2010-08-23 20:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" @@ -217,12 +218,11 @@ msgid "Specifies where your savegames are put" msgstr "" #: gui/launcher.cpp:289 gui/launcher.cpp:369 gui/launcher.cpp:418 -#: gui/options.cpp:230 gui/options.cpp:399 gui/options.cpp:497 -#: gui/options.cpp:555 gui/options.cpp:733 gui/options.cpp:957 -#: gui/options.cpp:960 gui/options.cpp:964 gui/options.cpp:1054 -#: gui/options.cpp:1060 gui/options.cpp:1066 gui/options.cpp:1074 -#: gui/options.cpp:1098 gui/options.cpp:1102 gui/options.cpp:1108 -#: gui/options.cpp:1115 gui/options.cpp:1214 +#: gui/options.cpp:957 gui/options.cpp:960 gui/options.cpp:964 +#: gui/options.cpp:1054 gui/options.cpp:1060 gui/options.cpp:1066 +#: gui/options.cpp:1074 gui/options.cpp:1098 gui/options.cpp:1102 +#: gui/options.cpp:1108 gui/options.cpp:1115 gui/options.cpp:1214 +msgctxt "path" msgid "None" msgstr "" @@ -454,6 +454,12 @@ msgstr "" msgid "48 kHz" msgstr "" +#: gui/options.cpp:230 gui/options.cpp:399 gui/options.cpp:497 +#: gui/options.cpp:555 gui/options.cpp:733 +msgctxt "soundfont" +msgid "None" +msgstr "" + #: gui/options.cpp:632 msgid "Graphics mode:" msgstr "" -- cgit v1.2.3