summaryrefslogtreecommitdiff
path: root/i18nlangtag/qa
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-06-05 19:08:42 +0200
committerEike Rathke <erack@redhat.com>2019-06-05 23:06:15 +0200
commitc4f9b1cae7e9400b9aa4bc085ee39371c3b67485 (patch)
treecdc107519f26220ddd90ba9407bb519d26648214 /i18nlangtag/qa
parent058c54d540950426751dcb4a00f2488e6375e05a (diff)
Related: tdf#125404 alias cmn-CN to zh-CN, cmn-TW to zh-TW
Map 'cmn' Mandarin Chinese with associated country for Simplified and Traditional to the technically used 'zh' macrolanguage code. Change-Id: Ifb8a31e728bbf828f13145513bc56a51684ea134 Reviewed-on: https://gerrit.libreoffice.org/73563 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'i18nlangtag/qa')
-rw-r--r--i18nlangtag/qa/cppunit/test_languagetag.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index 595fd92370e7..925d1615473a 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -742,6 +742,8 @@ bool checkMapping( const OUString& rStr1, const OUString& rStr2 )
if (rStr1 == "en-GB-oed" ) return rStr2 == "en-GB-oxendict";
if (rStr1 == "es-ES_tradnl") return rStr2 == "es-ES-u-co-trad";
if (rStr1 == "sd-IN" ) return rStr2 == "sd-Deva-IN";
+ if (rStr1 == "cmn-CN" ) return rStr2 == "zh-CN";
+ if (rStr1 == "cmn-TW" ) return rStr2 == "zh-TW";
return rStr1 == rStr2;
}