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 --- svx/source/dialog/dialmgr.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/dialmgr.cxx b/svx/source/dialog/dialmgr.cxx index 870cd05f295f..cba8fbcc9e03 100644 --- a/svx/source/dialog/dialmgr.cxx +++ b/svx/source/dialog/dialmgr.cxx @@ -20,10 +20,9 @@ #include #include -const std::locale& SvxResLocale() +std::locale SvxResLocale() { - static std::locale loc = Translate::Create("svx"); - return loc; + return Translate::Create("svx"); } OUString SvxResId(const char* pId) -- cgit