diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-01-03 14:08:55 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-01-05 09:51:23 +0100 |
commit | 028fd03cdf4d3d8072289a5c4d476435c18f90d0 (patch) | |
tree | ee455db401fc6a9cfca565c9496bfe49dfa3d780 /basctl | |
parent | f1d1854ffe2c1bc456855573b3ed4ad9852f4571 (diff) |
lokdialog: Allow language switching in SfxModule(s).
Change-Id: Icef0b3610c3bfa858cdd61de6ef3f5edc1e3c96b
Reviewed-on: https://gerrit.libreoffice.org/47385
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basicmod.hxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/iderdll.cxx | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/basctl/source/basicide/basicmod.hxx b/basctl/source/basicide/basicmod.hxx index 7dcee5a16420..d94a2198d440 100644 --- a/basctl/source/basicide/basicmod.hxx +++ b/basctl/source/basicide/basicmod.hxx @@ -29,8 +29,8 @@ namespace basctl class Module : public SfxModule { public: - Module(const std::locale& rResLocale, SfxObjectFactory *pObjFact) - : SfxModule(rResLocale, {pObjFact}) + Module(const OString& rResName, SfxObjectFactory *pObjFact) + : SfxModule(rResName, {pObjFact}) { } }; diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx index 19d21c32eedb..b80ce1f38970 100644 --- a/basctl/source/basicide/iderdll.cxx +++ b/basctl/source/basicide/iderdll.cxx @@ -118,9 +118,7 @@ Dll::Dll () : { SfxObjectFactory& rFactory = DocShell::Factory(); - std::locale loc = Translate::Create("basctl"); - - auto pModule = o3tl::make_unique<Module>(loc, &rFactory); + auto pModule = o3tl::make_unique<Module>("basctl", &rFactory); SfxModule* pMod = pModule.get(); SfxApplication::SetModule(SfxToolsModule::Basic, std::move(pModule)); |