Kaydet (Commit) 3729f113 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Swiss Standard German: replace 'ß' in German translation with 'ss'

In this branch, for iOS only.

Change-Id: I2af12394648ddad352f24c71581be0f9bf5e3d70
üst 255c9d1b
...@@ -200,7 +200,15 @@ namespace Translate ...@@ -200,7 +200,15 @@ namespace Translate
//otherwise translate it //otherwise translate it
const std::string ret = boost::locale::pgettext(sContext.getStr(), pId, loc); const std::string ret = boost::locale::pgettext(sContext.getStr(), pId, loc);
return ExpandVariables(createFromUtf8(ret.data(), ret.size())); OUString result(ExpandVariables(createFromUtf8(ret.data(), ret.size())));
#ifdef IOS
// If it is de-CH, change sharp s to double s.
if (std::use_facet<boost::locale::info>(loc).country() == "CH" &&
std::use_facet<boost::locale::info>(loc).language() == "de")
result = result.replaceAll(OUString::fromUtf8("\xC3\x9F"), "ss");
#endif
return result;
} }
static ResHookProc pImplResHookProc = nullptr; static ResHookProc pImplResHookProc = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment