summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-03-14 17:52:24 +0100
committerEike Rathke <erack@redhat.com>2017-03-14 17:54:09 +0100
commitbe37bbdc4902933e45869537eb33eefa7fc1cc81 (patch)
tree23a3e799a2687b915a68a99fb6b1f532f607700f /cui
parent78608b2e3594f81d7d1c5843820e8bd1c054dacc (diff)
use SvxLanguageBoxBase::SetLanguageList()
... to benefit from whatever replacements and tweaks known. Change-Id: Ic19400bc4664fcdd5d7b8e5bf07c2dfacdb5e18f
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index ae6f6eaef8d3..9b3e0e580892 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -368,19 +368,8 @@ void SvxNumberFormatTabPage::Init_Impl()
// initialize language ListBox
+ m_pLbLanguage->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false);
m_pLbLanguage->InsertLanguage( LANGUAGE_SYSTEM );
- /* TODO: any reason we're doing a manual init here instead of using
- * SvxLanguageBoxBase::SetLanguageList( SvxLanguageListFlags::ONLY_KNOWN, ...)? */
- // Don't list ambiguous locales where we won't be able to convert the
- // LanguageType back to an identical Language_Country name and therefore
- // couldn't load the i18n LocaleData. Show DebugMsg in non-PRODUCT version.
- css::uno::Sequence< sal_uInt16 > xLang = LocaleDataWrapper::getInstalledLanguageTypes();
- sal_Int32 nCount = xLang.getLength();
- for ( sal_Int32 i=0; i<nCount; i++ )
- {
- if (!MsLangId::isLegacy( xLang[i]))
- m_pLbLanguage->InsertLanguage( xLang[i] );
- }
}
VclPtr<SfxTabPage> SvxNumberFormatTabPage::Create( vcl::Window* pParent,