summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-16 00:54:14 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-16 12:24:54 +0200
commit3729f11336c21a4273c18da9bf2891c69a9489be (patch)
treedf57af61bf0b5a09ec4d16b0e3454a1e63c8cf4d /unotools
parent255c9d1b60280a28e855be837ec23dbd3673b9f1 (diff)
Swiss Standard German: replace 'ß' in German translation with 'ss'
In this branch, for iOS only. Change-Id: I2af12394648ddad352f24c71581be0f9bf5e3d70
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/resmgr.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx
index 4159cc670f81..ad75a3ed612f 100644
--- a/unotools/source/i18n/resmgr.cxx
+++ b/unotools/source/i18n/resmgr.cxx
@@ -200,7 +200,15 @@ namespace Translate
//otherwise translate it
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;