From 5be14df2444d9fcc3518c5f54872c87b924e3e98 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 29 Mar 2013 14:07:33 +0100 Subject: ResMgr with LanguageTag Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0 --- cui/source/dialogs/insdlg.cxx | 3 +-- cui/source/dialogs/pastedlg.cxx | 3 +-- cui/source/factory/cuiresmgr.cxx | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'cui/source') diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index bca33d8f9e02..8d2091d3fa03 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -70,8 +70,7 @@ using namespace ::com::sun::star::ui::dialogs; static String impl_getSvtResString( sal_uInt32 nId ) { String aRet; - com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); - ResMgr* pMgr = ResMgr::CreateResMgr( "svt", aLocale ); + ResMgr* pMgr = ResMgr::CreateResMgr( "svt", Application::GetSettings().GetUILanguageTag() ); if( pMgr ) { aRet = String( ResId( nId, *pMgr ) ); diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index 43c6e6eefdbe..a2997915bbe8 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -199,8 +199,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, if( !aTypeName.Len() && !aSourceName.Len() ) { - com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); - ResMgr* pMgr = ResMgr::CreateResMgr( "svt", aLocale ); + ResMgr* pMgr = ResMgr::CreateResMgr( "svt", Application::GetSettings().GetUILanguageTag() ); // global resource from svtools (former so3 resource) if( pMgr ) aSourceName = String( ResId( STR_UNKNOWN_SOURCE, *pMgr ) ); diff --git a/cui/source/factory/cuiresmgr.cxx b/cui/source/factory/cuiresmgr.cxx index cd882e2a7eaa..318ce4dcf46d 100644 --- a/cui/source/factory/cuiresmgr.cxx +++ b/cui/source/factory/cuiresmgr.cxx @@ -28,7 +28,7 @@ ResMgr* CuiResMgr::GetResMgr() if ( !pResMgr ) { - pResMgr = ResMgr::CreateResMgr("cui", Application::GetSettings().GetUILanguageTag().getLocale()); + pResMgr = ResMgr::CreateResMgr("cui", Application::GetSettings().GetUILanguageTag()); } return pResMgr; -- cgit v1.2.3