summaryrefslogtreecommitdiffstats
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-08-21 12:05:05 +0200
committerEike Rathke <erack@redhat.com>2021-08-21 14:38:35 +0200
commitbae2fbfd341b2cb5e5053c7977176f68b5d658dd (patch)
tree7b0ac0711fb6f53c1bdf9795673587c1afd44a4b /i18nlangtag
parenttdf#95495 writerfilter: clear obsolete hack (diff)
downloadcore-bae2fbfd341b2cb5e5053c7977176f68b5d658dd.tar.gz
core-bae2fbfd341b2cb5e5053c7977176f68b5d658dd.zip
Resolves: tdf#143946 Add Klingon, tlhIngan Hol {tlh} 0x06AC to language list
Change-Id: Icf7452b2aef3ecae8ccdbcd4a66ab8b121a8120c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120814 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/qa/cppunit/test_languagetag.cxx1
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index 8f76fb58d6f1..4b9a462f59fb 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -69,7 +69,6 @@ void TestLanguageTag::testAllTags()
CPPUNIT_ASSERT_EQUAL( OUString("tlh"), aLocale.Language );
CPPUNIT_ASSERT( aLocale.Country.isEmpty() );
CPPUNIT_ASSERT( aLocale.Variant.isEmpty() );
- CPPUNIT_ASSERT( LanguageTag::isOnTheFlyID( klingon.getLanguageType()) );
CPPUNIT_ASSERT( klingon.isValidBcp47() );
CPPUNIT_ASSERT( klingon.isIsoLocale() );
CPPUNIT_ASSERT( klingon.isIsoODF() );
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index cb1d5956d6ea..eea9592d907c 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -693,6 +693,7 @@ IsoLanguageCountryEntry const aImplIsoLangEntries[] =
{ LANGUAGE_USER_BRIBRI, "bzd", "CR", k0 },
{ LANGUAGE_USER_ENGLISH_DENMARK, "en", "DK", k0 },
{ LANGUAGE_USER_SESOTHO_LESOTHO, "st", "LS", k0 },
+ { LANGUAGE_USER_KLINGON, "tlh", "" , k0 },
{ LANGUAGE_MULTIPLE, "mul", "" , k0 }, // multiple languages, many languages are used
{ LANGUAGE_UNDETERMINED, "und", "" , k0 }, // undetermined language, language cannot be identified
{ LANGUAGE_NONE, "zxx", "" , k0 }, // added to ISO 639-2 on 2006-01-11: Used to declare the absence of linguistic information
@@ -1183,6 +1184,7 @@ css::lang::Locale MsLangId::Conversion::lookupFallbackLocale(
LANGUAGE_USER_INTERLINGUE,
LANGUAGE_USER_LOJBAN,
LANGUAGE_KASHMIRI,
+ LANGUAGE_USER_KLINGON,
LANGUAGE_USER_KEYID,
// And the special codes without country.
LANGUAGE_MULTIPLE,