Kaydet (Commit) a92cae04 authored tarafından Eike Rathke's avatar Eike Rathke

use LanguageTag

Change-Id: I1279cf9266b90a8c0936788824ca277b6dd40a6c
üst 4d79f55e
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#include <svtools/colorcfg.hxx> #include <svtools/colorcfg.hxx>
#include <unotools/syslocale.hxx> #include <unotools/syslocale.hxx>
#include <unotools/datetime.hxx> #include <unotools/datetime.hxx>
#include <i18npool/mslangid.hxx> #include <i18npool/languagetag.hxx>
#include <vcl/button.hxx> #include <vcl/button.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
//================================================================== //==================================================================
...@@ -262,7 +262,7 @@ namespace pcr ...@@ -262,7 +262,7 @@ namespace pcr
// determine a default format // determine a default format
Locale aSysLocale = SvtSysLocale().GetLocaleData().getLocale(); Locale aSysLocale = SvtSysLocale().GetLocaleData().getLocale();
LanguageType eSysLanguage = MsLangId::convertLocaleToLanguage( aSysLocale ); LanguageType eSysLanguage = LanguageTag( aSysLocale ).getLanguageType( false);
getTypedControlWindow()->SetFormatter( getTypedControlWindow()->StandardFormatter() ); getTypedControlWindow()->SetFormatter( getTypedControlWindow()->StandardFormatter() );
SvNumberFormatter* pFormatter = getTypedControlWindow()->GetFormatter(); SvNumberFormatter* pFormatter = getTypedControlWindow()->GetFormatter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment