diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-17 00:16:14 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-17 00:16:20 +0100 |
commit | 0ef605d9abc0639875c4e0757d2250bbe847bccb (patch) | |
tree | bab6aa87c49f55f39fd165a0d359f078ccdcfb35 /connectivity | |
parent | 8efe5ff8a0fcaa01cafbb156e9b20dc34c4c97d4 (diff) |
use LanguageTag
Change-Id: I75839c1b4a0ddfa9ed5c4f44124c7eabf4005717
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/formattedcolumnvalue.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/commontools/formattedcolumnvalue.cxx b/connectivity/source/commontools/formattedcolumnvalue.cxx index 3298764be85b..2a34ca29ef2d 100644 --- a/connectivity/source/commontools/formattedcolumnvalue.cxx +++ b/connectivity/source/commontools/formattedcolumnvalue.cxx @@ -31,6 +31,7 @@ #include <tools/diagnose_ex.h> #include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <comphelper/numbers.hxx> #include <comphelper/componentcontext.hxx> #include <unotools/sharedunocomponent.hxx> @@ -164,8 +165,7 @@ namespace dbtools if ( !bHaveFieldFormat ) { // fall back to a format key as indicated by the field type - Locale aSystemLocale; - MsLangId::convertLanguageToLocale( MsLangId::getSystemLanguage(), aSystemLocale ); + Locale aSystemLocale( LanguageTag( MsLangId::getSystemLanguage() ).getLocale() ); Reference< XNumberFormatTypes > xNumTypes( xNumberFormatsSupp->getNumberFormats(), UNO_QUERY_THROW ); _rData.m_nFormatKey = getDefaultNumberFormat( _rxColumn, xNumTypes, aSystemLocale ); } |