summaryrefslogtreecommitdiff
path: root/accessibility/source/helper/accresmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/source/helper/accresmgr.cxx')
-rw-r--r--accessibility/source/helper/accresmgr.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/accessibility/source/helper/accresmgr.cxx b/accessibility/source/helper/accresmgr.cxx
index ca09872bc8c3..a7d57156df95 100644
--- a/accessibility/source/helper/accresmgr.cxx
+++ b/accessibility/source/helper/accresmgr.cxx
@@ -19,7 +19,7 @@
#include <helper/accresmgr.hxx>
-#include <tools/simplerm.hxx>
+#include <tools/resmgr.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
@@ -27,22 +27,19 @@ using namespace accessibility;
// TkResMgr
-
-SimpleResMgr* TkResMgr::m_pImpl = nullptr;
-
+std::locale* TkResMgr::m_pImpl = nullptr;
TkResMgr::EnsureDelete::~EnsureDelete()
{
delete TkResMgr::m_pImpl;
}
-
void TkResMgr::ensureImplExists()
{
if (m_pImpl)
return;
- m_pImpl = SimpleResMgr::Create("acc", Application::GetSettings().GetUILanguageTag() );
+ m_pImpl = new std::locale(Translate::Create("acc", Application::GetSettings().GetUILanguageTag()));
if (m_pImpl)
{
@@ -51,17 +48,15 @@ void TkResMgr::ensureImplExists()
}
}
-
-OUString TkResMgr::loadString( sal_uInt16 nResId )
+OUString TkResMgr::loadString(const char *pResId)
{
OUString sReturn;
ensureImplExists();
- if ( m_pImpl )
- sReturn = m_pImpl->ReadString( nResId );
+ if (m_pImpl)
+ sReturn = Translate::get(pResId, *m_pImpl);
return sReturn;
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */