Kaydet (Commit) de303700 authored tarafından Andras Timar's avatar Andras Timar

Always load res of LibO UI locale, not system deflocale fdo#43475

üst 75b85b12
...@@ -44,7 +44,7 @@ ResMgr* FwlResId::GetResManager() ...@@ -44,7 +44,7 @@ ResMgr* FwlResId::GetResManager()
if ( !pResMgr ) if ( !pResMgr )
{ {
SolarMutexGuard aSolarGuard; SolarMutexGuard aSolarGuard;
pResMgr = ResMgr::CreateResMgr("fwe"); pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILocale());
} }
return pResMgr; return pResMgr;
......
...@@ -44,7 +44,7 @@ ResMgr* FwkResId::GetResManager() ...@@ -44,7 +44,7 @@ ResMgr* FwkResId::GetResManager()
if ( !pResMgr ) if ( !pResMgr )
{ {
SolarMutexGuard aSolarGuard; SolarMutexGuard aSolarGuard;
pResMgr = ResMgr::CreateResMgr("fwe"); pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILocale());
} }
return pResMgr; return pResMgr;
......
...@@ -226,7 +226,7 @@ ControlMenuController::~ControlMenuController() ...@@ -226,7 +226,7 @@ ControlMenuController::~ControlMenuController()
// private function // private function
void ControlMenuController::updateImagesPopupMenu( PopupMenu* pPopupMenu ) void ControlMenuController::updateImagesPopupMenu( PopupMenu* pPopupMenu )
{ {
ResMgr* pResMgr = ResMgr::CreateResMgr("svx"); ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILocale());
ResId aResId( RID_SVXIMGLIST_FMEXPL, *pResMgr ); ResId aResId( RID_SVXIMGLIST_FMEXPL, *pResMgr );
aResId.SetRT( RSC_IMAGELIST ); aResId.SetRT( RSC_IMAGELIST );
...@@ -375,7 +375,7 @@ void ControlMenuController::impl_setPopupMenu() ...@@ -375,7 +375,7 @@ void ControlMenuController::impl_setPopupMenu()
{ {
if ( m_pResPopupMenu == 0 ) if ( m_pResPopupMenu == 0 )
{ {
ResMgr* pResMgr = ResMgr::CreateResMgr("svx"); ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILocale());
if ( pResMgr ) if ( pResMgr )
{ {
ResId aResId( RID_FMSHELL_CONVERSIONMENU, *pResMgr ); ResId aResId( RID_FMSHELL_CONVERSIONMENU, *pResMgr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment