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 /sot | |
parent | prepend module local include (diff) | |
download | core-af60316514f3ae3d4c475819bf86f2af837171e3.tar.gz core-af60316514f3ae3d4c475819bf86f2af837171e3.zip |
some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
Diffstat (limited to 'sot')
-rw-r--r-- | sot/Library_sot.mk | 1 | ||||
-rw-r--r-- | sot/source/sdstor/stgelem.cxx | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sot/Library_sot.mk b/sot/Library_sot.mk index 36b4e19fbf61..dd0723cb70ea 100644 --- a/sot/Library_sot.mk +++ b/sot/Library_sot.mk @@ -47,6 +47,7 @@ $(eval $(call gb_Library_use_libraries,sot,\ cppu \ cppuhelper \ sal \ + i18nisolang1 \ tl \ ucbhelper \ utl \ diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx index d36eb2fd3de8..66734bcfc273 100644 --- a/sot/source/sdstor/stgelem.cxx +++ b/sot/source/sdstor/stgelem.cxx @@ -283,14 +283,7 @@ sal_Bool StgEntry::Init() static String ToUpperUnicode( const String & rStr ) { // I don't know the locale, so en_US is hopefully fine - /* - com.sun.star.lang.Locale aLocale; - aLocale.Language = OUString("en"); - aLocale.Country = OUString("US"); - */ - static rtl::OUString aEN("en"); - static rtl::OUString aUS("US"); - static CharClass aCC( com::sun::star::lang::Locale( aEN, aUS, rtl::OUString() ) ); + static CharClass aCC( LanguageTag( com::sun::star::lang::Locale( "en", "US", "" )) ); return aCC.uppercase( rStr ); } |