summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-17 03:30:11 +0100
committerEike Rathke <erack@redhat.com>2012-11-17 03:30:17 +0100
commitc90231291b5fa033ec3b079427c522177083a585 (patch)
tree5f9cc9e1862eebf09acb886fbb58f9100eb9d04e /forms
parent08bece4ae2c1a10276f91c149b3e065d4da67806 (diff)
use LanguageTag
Change-Id: Ie3079b1acde5cc98e0cffb37e3ff696aac8fe5f2
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormattedField.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index aabe3592bc93..91faaa6c01e4 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -43,7 +43,7 @@
#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
#include <tools/wintypes.hxx>
-#include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
#include <rtl/textenc.h>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/util/NumberFormat.hpp>
@@ -150,7 +150,7 @@ Reference< XNumberFormatsSupplier > StandardFormatsSupplier::get( const Referenc
// get the Office's locale
const Locale& rSysLocale = SvtSysLocale().GetLocaleData().getLocale();
// translate
- eSysLanguage = MsLangId::convertLocaleToLanguage( rSysLocale );
+ eSysLanguage = LanguageTag( rSysLocale ).getLanguageType( false);
}
StandardFormatsSupplier* pSupplier = new StandardFormatsSupplier( _rxORB, eSysLanguage );
@@ -856,7 +856,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream)
if (isA(aLocale, static_cast<Locale*>(NULL)))
{
Locale* pLocale = (Locale*)aLocale.getValue();
- eFormatLanguage = MsLangId::convertLocaleToLanguage( *pLocale );
+ eFormatLanguage = LanguageTag( *pLocale ).getLanguageType( false);
}
}
@@ -940,7 +940,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr
if (xFormats.is())
{
- Locale aDescriptionLanguage( MsLangId::convertLanguageToLocale(eDescriptionLanguage));
+ Locale aDescriptionLanguage( LanguageTag(eDescriptionLanguage).getLocale());
nKey = xFormats->queryKey(sFormatDescription, aDescriptionLanguage, sal_False);
if (nKey == (sal_Int32)-1)