summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-10-29 20:31:41 +0100
committerMichael Stahl <michael.stahl@cib.de>2019-10-30 11:30:50 +0100
commit808730fe60c5f59496e006af9f9bb7091a195756 (patch)
treecacc48b12fa3fa0e256e69c49be813ef2ab05252 /i18nutil
parentc74c72464573f519e08f1e7826bced247b329d29 (diff)
Prepare for builds against ICU 64
ICU 64 adds new scripts and Unicode blocks from Unicode 12 that need to be handled. This adds 9 new resource strings that will show up for translators, but are not really necessary to be translated; unless a distribution actually builds against ICU 64 they won't be displayed and even then only in very rare circumstances (in Special Characters for fonts containing the glyphs of these new Unicode blocks, unlikely). TDF builds will not be affected as they are built against internal ICU 63. Change-Id: I3cfdf6d2a4c6a56deb72ef837175ad48b1f521b5 Reviewed-on: https://gerrit.libreoffice.org/81714 Tested-by: Jenkins Reviewed-by: Sophie Gautier <gautier.sophie@gmail.com> Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/unicode.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index 7e0c425368be..ad3305aa0fca 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -749,6 +749,20 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript)
sRet = "sog";
break;
#endif
+#if (U_ICU_VERSION_MAJOR_NUM >= 64)
+ case USCRIPT_ELYMAIC:
+ sRet = "arc-Elym";
+ break;
+ case USCRIPT_NYIAKENG_PUACHUE_HMONG:
+ sRet = "hmn-Hmnp"; // macrolanguage code
+ break;
+ case USCRIPT_NANDINAGARI:
+ sRet = "sa-Nand";
+ break;
+ case USCRIPT_WANCHO:
+ sRet = "nnp-Wcho";
+ break;
+#endif
}
return sRet;
}