Fix couple of bugs in i18n when source string contains non-ASCII characters.
This commit is contained in:
1 parent
5b624a7a99
commit
f01076cc6e
2 files changed
+20
-14
No files matched your search
@@ -52,6 +52,7 @@ CString CTranslation::Plural(const CString& sDomain, const CString& sContext,
|
||||
|
||||
const std::locale& CTranslation::LoadTranslation(const CString& sDomain) {
|
||||
CString sLanguage = m_sLanguageStack.empty() ? "" : m_sLanguageStack.back();
|
||||
if (sLanguage.empty()) sLanguage = "C";
|
||||
#ifdef HAVE_I18N
|
||||
// Not using built-in support for multiple domains in single std::locale
|
||||
// via overloaded call to .str() because we need to be able to reload
|
||||
|
||||
Reference in new issue
Block a user