aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorThierry Crozat2010-07-31 15:46:43 +0000
committerThierry Crozat2010-07-31 15:46:43 +0000
commit1c6b339bbc2f9ee0624f7777e5950417a66a3286 (patch)
tree6ac38a5997bca3ec26bd831388cfac2f532ea54e /gui/options.cpp
parent5ea840283934938110f21fc04e3071b94c076765 (diff)
downloadscummvm-rg350-1c6b339bbc2f9ee0624f7777e5950417a66a3286.tar.gz
scummvm-rg350-1c6b339bbc2f9ee0624f7777e5950417a66a3286.tar.bz2
scummvm-rg350-1c6b339bbc2f9ee0624f7777e5950417a66a3286.zip
i18n: use user friendly language names in GUI
The GUI now uses the content of the Language field from the po file header if it is present and not empty for the language selection PopupWidget. If not present it uses the file name as before (e.g. ru_RU). Also update all the translation template and all the translation files. svn-id: r51542
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index d3bda228a7..072b20b393 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -1001,7 +1001,7 @@ GlobalOptionsDialog::GlobalOptionsDialog()
#endif // USE_DETECTLANG
_guiLanguagePopUp->appendEntry(_("English"), Common::kTranslationBuiltinId);
_guiLanguagePopUp->appendEntry("", 0);
- Common::TLangArray languages = TransMan.getSupportedLanguages();
+ Common::TLangArray languages = TransMan.getSupportedLanguageNames();
Common::TLangArray::iterator lang = languages.begin();
while (lang != languages.end()) {
_guiLanguagePopUp->appendEntry(lang->name, lang->id);