diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-23 23:06:10 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-23 23:09:16 +0100 |
commit | af60316514f3ae3d4c475819bf86f2af837171e3 (patch) | |
tree | ccfbd673bd4a53047a04dad6457d09c7eea1566c /sc/source | |
parent | 37f5b864014e9ad17a561b77ea9f6141650e92ad (diff) |
some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/global.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/globalx.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 7 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 4 |
4 files changed, 6 insertions, 9 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index 3b6e40ceed73..4d314ce1098a 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -1174,7 +1174,7 @@ IntlWrapper* ScGlobal::GetScIntlWrapper() { if ( !pScIntlWrapper ) { - pScIntlWrapper = new IntlWrapper( ::comphelper::getProcessServiceFactory(), *GetLocale() ); + pScIntlWrapper = new IntlWrapper( ::comphelper::getProcessServiceFactory(), LanguageTag( *GetLocale()) ); } return pScIntlWrapper; } diff --git a/sc/source/core/data/globalx.cxx b/sc/source/core/data/globalx.cxx index 5c00e72d893f..c081f1c4818a 100644 --- a/sc/source/core/data/globalx.cxx +++ b/sc/source/core/data/globalx.cxx @@ -153,7 +153,7 @@ String ScGlobal::GetOrdinalSuffix( sal_Int32 nNumber) try { uno::Sequence< rtl::OUString > aSuffixes = xOrdinalSuffix->getOrdinalSuffix( nNumber, - ScGlobal::pLocaleData->getLocale()); + ScGlobal::pLocaleData->getLanguageTag().getLocale()); if ( aSuffixes.getLength() > 0 ) return aSuffixes[0]; else diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 9771136c5512..026486233e42 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -211,12 +211,9 @@ bool ScCompiler::IsEnglishSymbol( const String& rName ) void ScCompiler::InitCharClassEnglish() { - ::com::sun::star::lang::Locale aLocale( - OUString( RTL_CONSTASCII_USTRINGPARAM( "en")), - OUString( RTL_CONSTASCII_USTRINGPARAM( "US")), - OUString()); + ::com::sun::star::lang::Locale aLocale( "en", "US", ""); pCharClassEnglish = new CharClass( - ::comphelper::getProcessComponentContext(), aLocale); + ::comphelper::getProcessComponentContext(), LanguageTag( aLocale)); } diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index b16dba405d84..8f5a24e5cd90 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -2301,7 +2301,7 @@ void ScXMLImport::ExamineDefaultStyle() else { LocaleDataWrapper aLocaleData( comphelper::getComponentContext(pDoc->GetServiceManager()), - LanguageTag( nFormatLang ).getLocale() ); + LanguageTag( nFormatLang ) ); aDecSep = aLocaleData.getNumDecimalSep(); } @@ -2520,7 +2520,7 @@ sal_Int32 ScXMLImport::SetCurrencySymbol(const sal_Int32 nKey, const rtl::OUStri { { ScXMLImport::MutexGuard aGuard(*this); - LocaleDataWrapper aLocaleData( comphelper::getComponentContext(GetDocument()->GetServiceManager()), aLocale ); + LocaleDataWrapper aLocaleData( comphelper::getComponentContext(GetDocument()->GetServiceManager()), LanguageTag( aLocale) ); rtl::OUStringBuffer aBuffer(15); aBuffer.appendAscii("#"); aBuffer.append( aLocaleData.getNumThousandSep() ); |