mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix couple of bugs in i18n when source string contains non-ASCII characters.
This commit is contained in:
@@ -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