summaryrefslogtreecommitdiffstats
path: root/svtools/source/misc
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 /svtools/source/misc
parentlol, rtl::OString("dbu").getStr() (diff)
downloadcore-5be14df2444d9fcc3518c5f54872c87b924e3e98.tar.gz
core-5be14df2444d9fcc3518c5f54872c87b924e3e98.zip
ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/ehdl.cxx9
-rw-r--r--svtools/source/misc/svtresid.cxx4
2 files changed, 5 insertions, 8 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index 89d43c2fa916..c94ea3a2cce6 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -151,8 +151,7 @@ SfxErrorHandler::SfxErrorHandler(sal_uInt16 nIdP, sal_uLong lStartP, sal_uLong l
RegisterDisplay(&aWndFunc);
if( ! pMgr )
{
- com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale();
- pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", aLocale );
+ pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", Application::GetSettings().GetUILanguageTag() );
}
}
@@ -278,8 +277,7 @@ sal_Bool SfxErrorHandler::GetClassString(sal_uLong lClassId, String &rStr) const
{
sal_Bool bRet = sal_False;
- com::sun::star::lang::Locale aLocale( Application::GetSettings().GetUILanguageTag().getLocale() );
- ResMgr* pResMgr = ResMgr::CreateResMgr("ofa", aLocale );
+ ResMgr* pResMgr = ResMgr::CreateResMgr("ofa", Application::GetSettings().GetUILanguageTag() );
if( pResMgr )
{
ResId aId(RID_ERRHDL, *pResMgr );
@@ -407,8 +405,7 @@ sal_Bool SfxErrorContext::GetString(sal_uLong nErrId, OUString &rStr)
ResMgr* pFreeMgr = NULL;
if( ! pMgr )
{
- com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale();
- pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", aLocale );
+ pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", Application::GetSettings().GetUILanguageTag() );
}
if( pMgr )
{
diff --git a/svtools/source/misc/svtresid.cxx b/svtools/source/misc/svtresid.cxx
index 33ca09fe1095..5efc4474a4e6 100644
--- a/svtools/source/misc/svtresid.cxx
+++ b/svtools/source/misc/svtresid.cxx
@@ -25,7 +25,7 @@ static ResMgr* pMgr=NULL;
namespace
{
- ResMgr* getResMgr(const ::com::sun::star::lang::Locale aLocale)
+ ResMgr* getResMgr(const LanguageTag& aLocale)
{
if (!pMgr)
pMgr = ResMgr::CreateResMgr("svt", aLocale );
@@ -34,7 +34,7 @@ namespace
ResMgr* getResMgr()
{
- return getResMgr(Application::GetSettings().GetUILanguageTag().getLocale());
+ return getResMgr(Application::GetSettings().GetUILanguageTag());
}
}