diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-13 19:17:48 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-12-22 22:39:39 +0100 |
commit | 101a79cc4d13a1f566c1b97c1329813eb7c61bcf (patch) | |
tree | 31bba77cc8656d6882992ea753917adc787241a9 /extensions | |
parent | a5fe3117e1877fa0bfb55f1cf22cf9394b3f0795 (diff) |
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 <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/46979
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/inc/componentmodule.cxx | 3 | ||||
-rw-r--r-- | extensions/source/propctrlr/modulepcr.cxx | 3 | ||||
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/extensions/source/inc/componentmodule.cxx b/extensions/source/inc/componentmodule.cxx index 5d031a67d1a5..562b8692a38b 100644 --- a/extensions/source/inc/componentmodule.cxx +++ b/extensions/source/inc/componentmodule.cxx @@ -37,8 +37,7 @@ namespace compmodule OUString ModuleRes(const char* pId) { - static std::locale loc = Translate::Create("pcr"); - return Translate::get(pId, loc); + return Translate::get(pId, Translate::Create("pcr")); } //- registration helper diff --git a/extensions/source/propctrlr/modulepcr.cxx b/extensions/source/propctrlr/modulepcr.cxx index 8fedf6499ad0..a7da05f3e947 100644 --- a/extensions/source/propctrlr/modulepcr.cxx +++ b/extensions/source/propctrlr/modulepcr.cxx @@ -55,8 +55,7 @@ namespace pcr OUString PcrRes(const char* pId) { - static std::locale loc = Translate::Create("pcr"); - return Translate::get(pId, loc); + return Translate::get(pId, Translate::Create("pcr")); } } // namespace pcr diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index e515a763af39..83bea0e05367 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -321,8 +321,7 @@ namespace { OUString SaneResId(const char *pID) { - static std::locale loc = Translate::Create("pcr"); - return Translate::get(pID, loc); + return Translate::get(pID, Translate::Create("pcr")); } } |