tdf#126282 add English (Sri Lanka) [en-LK] 0xA409 to language list

Change-Id: I2b02498684c952f9a6bf8f6bc17a3355c3607aac
Reviewed-on: https://gerrit.libreoffice.org/76807
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
This commit is contained in:
Eike Rathke
2019-08-01 16:25:43 +02:00
parent 555729bc49
commit bfa0a2ee27
3 changed files with 4 additions and 1 deletions

View File

@@ -678,6 +678,7 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
{ LANGUAGE_USER_NARO, "nhr", "BW", k0 },
{ LANGUAGE_USER_ILOKO, "ilo", "PH", k0 },
{ LANGUAGE_USER_ENGLISH_ZAMBIA, "en", "ZM", k0 },
{ LANGUAGE_USER_ENGLISH_SRI_LANKA, "en", "LK", 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

View File

@@ -750,6 +750,7 @@ namespace o3tl
#define LANGUAGE_USER_NARO LanguageType(0x06A2)
#define LANGUAGE_USER_ILOKO LanguageType(0x06A3)
#define LANGUAGE_USER_ENGLISH_ZAMBIA LanguageType(0xA009) /* makeLangID( 0x28, getPrimaryLanguage( LANGUAGE_ENGLISH_UK)) */
#define LANGUAGE_USER_ENGLISH_SRI_LANKA LanguageType(0xA409) /* makeLangID( 0x29, getPrimaryLanguage( LANGUAGE_ENGLISH_UK)) */
/* XXX Add new user defined LCIDs ^^^ there.

View File

@@ -417,7 +417,8 @@ const std::pair<const char*, LanguageType> STR_ARR_SVT_LANGUAGE_TABLE[] =
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "Juǀhoan") , LANGUAGE_USER_JUHOAN },
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "Naro") , LANGUAGE_USER_NARO },
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "Iloko") , LANGUAGE_USER_ILOKO },
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "English (Zambia)") , LANGUAGE_USER_ENGLISH_ZAMBIA }
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "English (Zambia)") , LANGUAGE_USER_ENGLISH_ZAMBIA },
{ NC_("STR_ARR_SVT_LANGUAGE_TABLE", "English (Sri Lanka)") , LANGUAGE_USER_ENGLISH_SRI_LANKA }
};
#endif