diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-19 17:49:18 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-19 17:53:37 +0100 |
commit | 36e2f00bca174342ba1391e49c56c4602ec97394 (patch) | |
tree | 7c659d3ffbc8652d0bdea625b24f9c278a009cfb /sc/source/ui/dbgui | |
parent | 0746c95f260c0b722547e760c28cd0daecc8ceba (diff) |
use LanguageTag
Change-Id: I93bc72d3938775b4e7c599b0477a76ed0ce5d4ac
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 0955b8abda94..6c075bb76d83 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -30,7 +30,7 @@ #undef SC_DLLIMPLEMENTATION #include <vcl/msgbox.hxx> -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <svtools/collatorres.hxx> #include <unotools/collatorwrapper.hxx> #include <unotools/localedatawrapper.hxx> @@ -682,7 +682,7 @@ void ScTabPageSortOptions::Reset( const SfxItemSet& /* rArgSet */ ) aBtnHeader.SetText( aStrRowLabel ); } - LanguageType eLang = MsLangId::convertLocaleToLanguage( aSortData.aCollatorLocale ); + LanguageType eLang = LanguageTag( aSortData.aCollatorLocale ).getLanguageType( false); if ( eLang == LANGUAGE_DONTKNOW ) eLang = LANGUAGE_SYSTEM; aLbLanguage.SelectLanguage( eLang ); @@ -749,7 +749,7 @@ sal_Bool ScTabPageSortOptions::FillItemSet( SfxItemSet& rArgSet ) // get locale LanguageType eLang = aLbLanguage.GetSelectLanguage(); - aNewSortData.aCollatorLocale = MsLangId::convertLanguageToLocale( eLang, false ); + aNewSortData.aCollatorLocale = LanguageTag( eLang ).getLocale( false ); // get algorithm rtl::OUString sAlg; @@ -976,7 +976,7 @@ IMPL_LINK_NOARG(ScTabPageSortOptions, FillAlgorHdl) } else { - lang::Locale aLocale( MsLangId::convertLanguageToLocale( eLang )); + lang::Locale aLocale( LanguageTag( eLang ).getLocale()); uno::Sequence<rtl::OUString> aAlgos = pColWrap->listCollatorAlgorithms( aLocale ); long nCount = aAlgos.getLength(); |