From 4189b715999bf9ebb0cd04a0c610a7b514e28d1b Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 4 Aug 2014 14:05:37 +0200 Subject: suppress legacy locales, fdo#44112 related With MsLangId::isLegacy() locales can be suppressed in language lists and are not offered unless actually used at the current position of the document. Language attribution now handles adding a language/locale to the list on the fly. For example, Serbian (Latin or Cyrillic) for "Serbia and Montenegro" are legacy locales, the confederation doesn't exist anymore. A further candidate would be pap-AN as the Netherlands Antilles ceased to exist, see fdo#44112. Suppressing "Serbian Cyrillic (Serbia and Montenegro)" also has the nice benefit of narrowing the language list box width a little ... Change-Id: Id05cce328622465016901524b759369c18bc4dbd --- svx/source/dialog/langbox.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'svx') diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 44aeecbc083c..2eea8f6952b7 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -267,6 +267,7 @@ void SvxLanguageBoxBase::SetLanguageList( sal_Int16 nLangList, if ( nLangType != LANGUAGE_DONTKNOW && nLangType != LANGUAGE_SYSTEM && nLangType != LANGUAGE_NONE && + !MsLangId::isLegacy( nLangType) && (MsLangId::getSubLanguage( nLangType) != 0 || (nLangList & LANG_LIST_ALSO_PRIMARY_ONLY)) && ((nLangList & LANG_LIST_ALL) != 0 || -- cgit v1.2.3