[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - unotools/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 19 16:16:57 UTC 2019
unotools/source/i18n/resmgr.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit d5036afc69b45985fcacb0bb48eae3fe9242ceeb
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Nov 16 00:54:14 2018 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Sep 19 18:16:14 2019 +0200
Swiss Standard German: replace 'ß' in German translation with 'ss'
In this branch, for iOS only.
Change-Id: I2af12394648ddad352f24c71581be0f9bf5e3d70
Reviewed-on: https://gerrit.libreoffice.org/79134
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx
index 8d4fcb5eac33..7649e94abe4c 100644
--- a/unotools/source/i18n/resmgr.cxx
+++ b/unotools/source/i18n/resmgr.cxx
@@ -243,7 +243,15 @@ namespace Translate
//otherwise translate it
const std::string ret = boost::locale::npgettext(aContextIdId[0].getStr(), aContextIdId[1].getStr(), aContextIdId[2].getStr(), n, 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;
More information about the Libreoffice-commits
mailing list