summaryrefslogtreecommitdiff
path: root/desktop/source/app
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-29 14:07:33 +0100
committerEike Rathke <erack@redhat.com>2013-03-29 14:09:01 +0100
commit5be14df2444d9fcc3518c5f54872c87b924e3e98 (patch)
tree5a0b3b4b588469e9ff012c3a3328bdb224843160 /desktop/source/app
parentba4df3dd31ee9b2ced2a9119ecfd263e95de5ee6 (diff)
ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
Diffstat (limited to 'desktop/source/app')
-rw-r--r--desktop/source/app/app.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index e9301bf6f9ec..3eb4ab10305b 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -340,9 +340,7 @@ ResMgr* Desktop::GetDesktopResManager()
OUString aUILocaleString = LanguageSelection::getLanguageString();
LanguageTag aLanguageTag( aUILocaleString);
//! ResMgr may modify the Locale for fallback!
- ::com::sun::star::lang::Locale aLocale( aLanguageTag.getLocale());
- Desktop::pResMgr = ResMgr::SearchCreateResMgr( "dkt", aLocale);
- aLanguageTag.reset( aLocale);
+ Desktop::pResMgr = ResMgr::SearchCreateResMgr( "dkt", aLanguageTag);
AllSettings as = GetSettings();
as.SetUILanguageTag(aLanguageTag);
SetSettings(as);
@@ -1495,7 +1493,7 @@ int Desktop::Main()
}
// create title string
- ::com::sun::star::lang::Locale aLocale;
+ LanguageTag aLocale( LANGUAGE_SYSTEM);
ResMgr* pLabelResMgr = ResMgr::SearchCreateResMgr( "ofa", aLocale );
String aTitle = pLabelResMgr ? String( ResId( RID_APPTITLE, *pLabelResMgr ) ) : String();
delete pLabelResMgr;