summaryrefslogtreecommitdiff
path: root/i18nlangtag/source/isolang/isolang.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2023-01-06 18:53:11 +0100
committerEike Rathke <erack@redhat.com>2023-01-07 02:20:26 +0000
commit54d25b36c0bf3dcc715f2098ad658bb113e868ec (patch)
tree60ce22bc58d7bc89f8825b7fa54fd1624bc49cac /i18nlangtag/source/isolang/isolang.cxx
parent5a1ddc1a92a7883597ab7d825408a1f0adc2ec6e (diff)
Related: tdf#152781 Pin some known on-the-fly langtags to user-defined LCIDs
These are pulled in by either our own bundled extension dictionaries (es-*, ca-*), or hunspell dictionary (en-AG), but have no language listbox entry (and don't need one until someone insists) thus are generated. So if selected and in case stored in binary MS file formats ensure a stable back-and-forth conversion. The on-the-fly 0x7e1, 0x7e2, ... are generated arbitrarily in order as encountered. Change-Id: I0dc72bf1301b26d5b82e1b271c58fc77c82eea0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145161 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'i18nlangtag/source/isolang/isolang.cxx')
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index 2bd6b5e5e229..d64b00f0694a 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -343,7 +343,9 @@ IsoLanguageCountryEntry const aImplIsoLangEntries[] =
{ LANGUAGE_SINDHI, "sd", "IN", kSAME }, // Devanagari script
{ LANGUAGE_BELARUSIAN, "be", "BY", k0 },
{ LANGUAGE_CATALAN, "ca", "ES", k0 }, // Spain (default)
- { LANGUAGE_CATALAN, "ca", "AD", k0 }, // Andorra
+ { LANGUAGE_USER_CATALAN_ANDORRA, "ca", "AD", k0 },
+ { LANGUAGE_USER_CATALAN_FRANCE, "ca", "FR", k0 },
+ { LANGUAGE_USER_CATALAN_ITALY, "ca", "IT", k0 },
//LANGUAGE_CATALAN_VALENCIAN ca-ES-valencia Bcp47CountryEntry takes precedence
{ LANGUAGE_CATALAN_VALENCIAN, "ca", "XV", kSAME }, // XV: ISO 3166 user-assigned; old workaround for UI localization only, in case it escaped to document content
{ LANGUAGE_CATALAN_VALENCIAN, "qcv", "ES", kSAME }, // qcv: ISO 639-3 reserved-for-local-use; old UI localization quirk only, in case it escaped to document content
@@ -674,6 +676,9 @@ IsoLanguageCountryEntry const aImplIsoLangEntries[] =
{ LANGUAGE_USER_ENGLISH_ISRAEL, "en", "IL", k0 },
{ LANGUAGE_USER_PENNSYLVANIA_DUTCH, "pdc", "US", k0 },
{ LANGUAGE_USER_PORTUGUESE_MOZAMBIQUE, "pt", "MZ", k0 },
+ { LANGUAGE_USER_SPANISH_EQUATORIAL_GUINEA, "es", "GQ", k0 },
+ { LANGUAGE_USER_SPANISH_PHILIPPINES, "es", "PH", k0 },
+ { LANGUAGE_USER_ENGLISH_ANTIGUA_BARBUDA,"en", "AG", k0 },
// Add new languages ^^^ there.
{ LANGUAGE_MULTIPLE, "mul", "" , k0 }, // multiple languages, many languages are used
{ LANGUAGE_UNDETERMINED, "und", "" , k0 }, // undetermined language, language cannot be identified