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 /dbaccess | |
parent | 37f5b864014e9ad17a561b77ea9f6141650e92ad (diff) |
some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSet.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/core/api/SingleSelectQueryComposer.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/app/AppView.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/control/ColumnControlWindow.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/DExport.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableDesignView.cxx | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 1042d84531bc..04c531e4bbb7 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -1714,7 +1714,7 @@ void ORowSet::impl_initializeColumnSettings_nothrow( const Reference< XPropertyS bHaveAnyColumnSetting = true; } if ( !nFormatKey && m_xNumberFormatTypes.is() ) - nFormatKey = ::dbtools::getDefaultNumberFormat( _rxTemplateColumn, m_xNumberFormatTypes, SvtSysLocale().GetLocaleData().getLocale() ); + nFormatKey = ::dbtools::getDefaultNumberFormat( _rxTemplateColumn, m_xNumberFormatTypes, SvtSysLocale().GetLanguageTag().getLocale() ); _rxRowSetColumn->setPropertyValue( PROPERTY_NUMBERFORMAT, makeAny( nFormatKey ) ); } catch(Exception&) @@ -1809,7 +1809,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi } // get the locale - Locale aLocale = SvtSysLocale().GetLocaleData().getLocale(); + Locale aLocale = SvtSysLocale().GetLanguageTag().getLocale(); // get the numberformatTypes OSL_ENSURE(m_xActiveConnection.is(),"No ActiveConnection"); @@ -2746,7 +2746,7 @@ ORowSetClone::ORowSetClone( const ::comphelper::ComponentContext& _rContext, ORo ::std::vector< ::rtl::OUString> aNames; ::rtl::OUString aDescription; - Locale aLocale = SvtSysLocale().GetLocaleData().getLocale(); + Locale aLocale = SvtSysLocale().GetLanguageTag().getLocale(); if ( rParent.m_pColumns ) { diff --git a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx index e078e1e28c4c..837836d311f9 100644 --- a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx +++ b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx @@ -256,7 +256,7 @@ OSingleSelectQueryComposer::OSingleSelectQueryComposer(const Reference< XNameAcc m_aCurrentColumns.resize(4); - m_aLocale = SvtSysLocale().GetLocaleData().getLocale(); + m_aLocale = SvtSysLocale().GetLanguageTag().getLocale(); m_xNumberFormatsSupplier = dbtools::getNumberFormats( m_xConnection, sal_True, m_aContext.getLegacyServiceFactory() ); Reference< XLocaleData4 > xLocaleData( LocaleData::create(m_aContext.getUNOContext()) ); LocaleDataItem aData = xLocaleData->getLocaleItem(m_aLocale); diff --git a/dbaccess/source/ui/app/AppView.cxx b/dbaccess/source/ui/app/AppView.cxx index 3e3469d7ce11..a57b03dd30d9 100644 --- a/dbaccess/source/ui/app/AppView.cxx +++ b/dbaccess/source/ui/app/AppView.cxx @@ -212,7 +212,7 @@ OApplicationView::OApplicationView( Window* pParent try { - m_aLocale = SvtSysLocale().GetLocaleData().getLocale(); + m_aLocale = SvtSysLocale().GetLanguageTag().getLocale(); } catch(Exception&) { diff --git a/dbaccess/source/ui/control/ColumnControlWindow.cxx b/dbaccess/source/ui/control/ColumnControlWindow.cxx index ca661bceaa08..2c12e84d07ba 100644 --- a/dbaccess/source/ui/control/ColumnControlWindow.cxx +++ b/dbaccess/source/ui/control/ColumnControlWindow.cxx @@ -50,7 +50,7 @@ OColumnControlWindow::OColumnControlWindow(Window* pParent DBG_CTOR(OColumnControlWindow,NULL); setRightAligned(); - m_aLocale = SvtSysLocale().GetLocaleData().getLocale(); + m_aLocale = SvtSysLocale().GetLanguageTag().getLocale(); } // ----------------------------------------------------------------------------- OColumnControlWindow::~OColumnControlWindow() diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx index 09092f23d22d..eb3a755d7115 100644 --- a/dbaccess/source/ui/misc/DExport.cxx +++ b/dbaccess/source/ui/misc/DExport.cxx @@ -135,7 +135,7 @@ ODatabaseExport::ODatabaseExport(sal_Int32 nRows, try { SvtSysLocale aSysLocale; - m_aLocale = aSysLocale.GetLocaleData().getLocale(); + m_aLocale = aSysLocale.GetLanguageTag().getLocale(); } catch(Exception&) { @@ -177,7 +177,7 @@ ODatabaseExport::ODatabaseExport(const SharedConnection& _rxConnection, try { SvtSysLocale aSysLocale; - m_aLocale = aSysLocale.GetLocaleData().getLocale(); + m_aLocale = aSysLocale.GetLanguageTag().getLocale(); } catch(Exception&) { diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index e414c9cebf59..ab1db7fae207 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -142,7 +142,7 @@ ODatabaseImportExport::ODatabaseImportExport( const ::dbtools::SharedConnection& try { SvtSysLocale aSysLocale; - m_aLocale = aSysLocale.GetLocaleData().getLocale(); + m_aLocale = aSysLocale.GetLanguageTag().getLocale(); } catch(Exception&) { @@ -260,7 +260,7 @@ void ODatabaseImportExport::impl_initFromDescriptor( const ODataAccessDescriptor try { SvtSysLocale aSysLocale; - m_aLocale = aSysLocale.GetLocaleData().getLocale(); + m_aLocale = aSysLocale.GetLanguageTag().getLocale(); } catch(Exception&) { diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 13446b2d9c53..cf4fc38d123e 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2514,7 +2514,7 @@ OQueryDesignView::OQueryDesignView( OQueryContainerWindow* _pParent, try { SvtSysLocale aSysLocale; - m_aLocale = aSysLocale.GetLocaleData().getLocale(); + m_aLocale = aSysLocale.GetLanguageTag().getLocale(); m_sDecimalSep = aSysLocale.GetLocaleData().getNumDecimalSep(); } catch(Exception&) diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx index f6b3124c4e1e..499d2149c594 100644 --- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx +++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx @@ -198,7 +198,7 @@ OTableDesignView::OTableDesignView( Window* pParent, try { - m_aLocale = SvtSysLocale().GetLocaleData().getLocale(); + m_aLocale = SvtSysLocale().GetLanguageTag().getLocale(); } catch(Exception&) { |