diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-21 18:34:53 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-21 18:35:53 +0100 |
commit | b8a467b70756b83c8aeb77f385ea1e368350d370 (patch) | |
tree | eb0c2a0f560899b634ef8598f9022f4af24f1427 /svl/source/config | |
parent | be677b568690415ff90e7937d7269d3b41b39c16 (diff) |
obtain LanguageTag from SvtSysLocale
Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb
Diffstat (limited to 'svl/source/config')
-rw-r--r-- | svl/source/config/ctloptions.cxx | 2 | ||||
-rw-r--r-- | svl/source/config/languageoptions.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx index 36d8df1a7507..9a4fcb1d2caa 100644 --- a/svl/source/config/ctloptions.cxx +++ b/svl/source/config/ctloptions.cxx @@ -293,7 +293,7 @@ void SvtCTLOptions_Impl::Load() ((eSystemLanguage != LANGUAGE_SYSTEM) && ( nWinScript & SCRIPTTYPE_COMPLEX ))) ) { m_bCTLFontEnabled = sal_True; - sal_uInt16 nLanguage = SvtSysLocale().GetLanguage(); + sal_uInt16 nLanguage = SvtSysLocale().GetLanguageTag().getLanguageType(); //enable sequence checking for the appropriate languages m_bCTLSequenceChecking = m_bCTLRestricted = m_bCTLTypeAndReplace = (MsLangId::needsSequenceChecking( nLanguage) || diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx index c73318c91658..cdf61e81f271 100644 --- a/svl/source/config/languageoptions.cxx +++ b/svl/source/config/languageoptions.cxx @@ -149,7 +149,7 @@ sal_uInt16 SvtLanguageOptions::GetScriptTypeOfLanguage( sal_uInt16 nLang ) if( LANGUAGE_DONTKNOW == nLang ) nLang = LANGUAGE_ENGLISH_US; else if( LANGUAGE_SYSTEM == nLang ) - nLang = SvtSysLocale().GetLanguage(); + nLang = SvtSysLocale().GetLanguageTag().getLanguageType(); sal_Int16 nScriptType = MsLangId::getScriptType( nLang ); sal_uInt16 nScript; |