summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-12-13 19:17:48 +0100
committerMichael Meeks <michael.meeks@collabora.com>2017-12-22 22:39:39 +0100
commit101a79cc4d13a1f566c1b97c1329813eb7c61bcf (patch)
tree31bba77cc8656d6882992ea753917adc787241a9 /dbaccess
parenta5fe3117e1877fa0bfb55f1cf22cf9394b3f0795 (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 'dbaccess')
-rw-r--r--dbaccess/source/core/resource/core_resource.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/core/resource/core_resource.cxx b/dbaccess/source/core/resource/core_resource.cxx
index d04bbb902812..eaadea9ded4a 100644
--- a/dbaccess/source/core/resource/core_resource.cxx
+++ b/dbaccess/source/core/resource/core_resource.cxx
@@ -36,8 +36,7 @@ namespace dbaccess
OUString ResourceManager::loadString(const char* pResId)
{
- static std::locale loc = Translate::Create("dba");
- return Translate::get(pResId, loc);
+ return Translate::get(pResId, Translate::Create("dba"));
}
OUString ResourceManager::loadString(const char* pResId, const sal_Char* _pPlaceholderAscii, const OUString& _rReplace)