summaryrefslogtreecommitdiff
path: root/i18nlangtag/source/isolang/mslangid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18nlangtag/source/isolang/mslangid.cxx')
-rw-r--r--i18nlangtag/source/isolang/mslangid.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx
index 6bb92bbeba0d..7f6c42f5353e 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -473,6 +473,22 @@ bool MsLangId::isNonLatinWestern( LanguageType nLang )
// static
+bool MsLangId::isLegacy( LanguageType nLang )
+{
+ switch (nLang)
+ {
+ case LANGUAGE_SERBIAN_CYRILLIC_SAM:
+ case LANGUAGE_SERBIAN_LATIN_SAM:
+ /* TODO: activate once dictionary was renamed from pap-AN to
+ * pap-CW, or the pap-CW one supports also pap-AN, see fdo#44112 */
+ //case LANGUAGE_PAPIAMENTU:
+ return true;
+ }
+ return false;
+}
+
+
+// static
LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang, bool /*bUserInterfaceSelection*/ )
{
switch (nLang)