From 101a79cc4d13a1f566c1b97c1329813eb7c61bcf Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 13 Dec 2017 19:17:48 +0100 Subject: lokdialog: Allow switching language of some of the ResMgr's. This way, it is possible to have all the strings translated in dialogs even when different users use different languages. [It was already possible to have different languages previously, but not everything in the dialog has switched - like the buttons at the bottom of the dialogs etc.] Change-Id: I29a5ae6d31a370eec60397884200b684ec1bf5b9 Reviewed-on: https://gerrit.libreoffice.org/46417 Reviewed-by: Michael Meeks Tested-by: Michael Meeks Reviewed-on: https://gerrit.libreoffice.org/46979 Tested-by: Jenkins --- xmlsecurity/inc/resourcemanager.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xmlsecurity/inc') diff --git a/xmlsecurity/inc/resourcemanager.hxx b/xmlsecurity/inc/resourcemanager.hxx index 3516bcfa0db4..d621c4bc7328 100644 --- a/xmlsecurity/inc/resourcemanager.hxx +++ b/xmlsecurity/inc/resourcemanager.hxx @@ -34,8 +34,6 @@ class LocaleDataWrapper; namespace XmlSec { - const std::locale& GetResLocale(); - const LocaleDataWrapper& GetLocaleData(); DateTime GetDateTime( const css::util::DateTime& _rDT ); OUString GetDateTimeString( const css::util::DateTime& _rDT ); @@ -53,7 +51,7 @@ namespace XmlSec inline OUString XsResId(const char* pId) { - return Translate::get(pId, XmlSec::GetResLocale()); + return Translate::get(pId, Translate::Create("xsc")); } #endif -- cgit