diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-03 19:18:21 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-03 20:35:41 +0200 |
commit | 5f4f3ddfec61ee5d99b3c491b108a7b08de8eabf (patch) | |
tree | 4c04746c531e874234d7b454dc055c83a048a5fd /cui | |
parent | 06fcf0f065f8ec9c0d3b26588bd6171f373d8c74 (diff) |
was convertIsoStringToLanguage(), use convertToLanguageTypeWithFallback()
Change-Id: Iaa3d2d2dbe06eec91f1c4f2609cc1e3f5f7bbb7b
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 1510a16d6207..55d76b525568 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1045,7 +1045,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSe LanguageType aLang = LANGUAGE_DONTKNOW; for (sal_IntPtr i=0; i<seqInstalledLanguages.getLength(); i++) { - aLang = LanguageTag::convertToLanguageType(seqInstalledLanguages[i]); + aLang = LanguageTag::convertToLanguageTypeWithFallback(seqInstalledLanguages[i]); if (aLang != LANGUAGE_DONTKNOW) { //sal_uInt16 p = m_pUserInterfaceLB->InsertLanguage(aLang); @@ -1245,7 +1245,7 @@ sal_Bool OfaLanguagesTabPage::FillItemSet( SfxItemSet& rSet ) OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString(); LanguageType eOldLocale = (!sLang.isEmpty() ? - LanguageTag::convertToLanguageType( sLang ) : LANGUAGE_SYSTEM); + LanguageTag::convertToLanguageTypeWithFallback( sLang ) : LANGUAGE_SYSTEM); LanguageType eNewLocale = m_pLocaleSettingLB->GetSelectLanguage(); if ( eOldLocale != eNewLocale ) { @@ -1407,7 +1407,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet& rSet ) { OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString(); if ( !sLang.isEmpty() ) - m_pLocaleSettingLB->SelectLanguage(LanguageTag::convertToLanguageType(sLang)); + m_pLocaleSettingLB->SelectLanguage(LanguageTag::convertToLanguageTypeWithFallback(sLang)); else m_pLocaleSettingLB->SelectLanguage( LANGUAGE_USER_SYSTEM_CONFIG ); sal_Bool bReadonly = pLangConfig->aSysLocaleOptions.IsReadOnly(SvtSysLocaleOptions::E_LOCALE); |