aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/i18n
diff options
context:
space:
mode:
authorMike FABIAN <mike.fabian@basyskom.de>2010-10-13 17:57:45 +0200
committerMike FABIAN <mike.fabian@basyskom.de>2010-10-14 18:48:35 +0200
commit92d79498846f5b4a844555d7e378f4cb0c1eced2 (patch)
treeb67042f606c42bb775d735ec84aca11245b74faa /src/corelib/i18n
parent5eb47b434461ec7a762f192e10c842cbce05de89 (diff)
Changes: use @ as well as a delimiter when searching for translations
RevBy: Berthold Krevert Details: Without using @ as well as a delimiter, for the locale “de@collation=phonebook” only de@collation=phonebook{,.qm} would be found but if this does not exist de{,.qm} would not be tried as a fallback. Similar for “zh_CN@collation=pinyin”: if zh_CN@collation=pinyin{,.qm} is not found, the next fallback should be zh_CN{,.qm}. Without using @ as a delimiter the next fallback would be zh{,.qm} already.
Diffstat (limited to 'src/corelib/i18n')
-rw-r--r--src/corelib/i18n/mlocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/i18n/mlocale.cpp b/src/corelib/i18n/mlocale.cpp
index 7c1c18af..94889b2c 100644
--- a/src/corelib/i18n/mlocale.cpp
+++ b/src/corelib/i18n/mlocale.cpp
@@ -209,7 +209,7 @@ bool MTranslationCatalog::loadWith(MLocale *mlocale, MLocale::Category category)
return true;
}
else {
- QString delims("_.");
+ QString delims("_.@");
QString engineeringEnglishName = fname;
fname += '_' + mlocale->categoryName(category);
for (;;) {