diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/resourcemanager.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx index 5b04868e52a1..9296c02a89d4 100644 --- a/xmlsecurity/source/dialogs/resourcemanager.cxx +++ b/xmlsecurity/source/dialogs/resourcemanager.cxx @@ -32,13 +32,10 @@ using namespace std; namespace XmlSec { - static ResMgr* pResMgr = nullptr; - - ResMgr* GetResMgr() + const std::locale& GetResLocale() { - if (!pResMgr) - pResMgr = ResMgr::CreateResMgr("xmlsec"); - return pResMgr; + static const std::locale loc = Translate::Create("xsc", Application::GetSettings().GetUILanguageTag()); + return loc; } const LocaleDataWrapper& GetLocaleData() |