[Libreoffice-commits] .: extensions/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 16 18:10:34 PST 2012


 extensions/source/propctrlr/standardcontrol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a92cae04ddf608948617843d8f992e9743421a7f
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Nov 17 03:10:04 2012 +0100

    use LanguageTag
    
    Change-Id: I1279cf9266b90a8c0936788824ca277b6dd40a6c

diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 2927129..8d57aeb 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -41,7 +41,7 @@
 #include <svtools/colorcfg.hxx>
 #include <unotools/syslocale.hxx>
 #include <unotools/datetime.hxx>
-#include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
 #include <vcl/button.hxx>
 #include <vcl/svapp.hxx>
 //==================================================================
@@ -262,7 +262,7 @@ namespace pcr
 
         // determine a default format
         Locale aSysLocale = SvtSysLocale().GetLocaleData().getLocale();
-        LanguageType eSysLanguage = MsLangId::convertLocaleToLanguage( aSysLocale );
+        LanguageType eSysLanguage = LanguageTag( aSysLocale ).getLanguageType( false);
 
         getTypedControlWindow()->SetFormatter( getTypedControlWindow()->StandardFormatter() );
         SvNumberFormatter* pFormatter = getTypedControlWindow()->GetFormatter();


More information about the Libreoffice-commits mailing list