diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-01-03 14:08:55 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-20 15:50:30 +0100 |
commit | 23b811466e53a30efde898a6fd9b3a55aff33a38 (patch) | |
tree | 5220e6f51276c4a48e2b0c9d2cf78197ab59b0b2 /basctl | |
parent | 5eca99187e576389a33e73e3053a29dfd2b417e0 (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>
(cherry picked from commit 028fd03cdf4d3d8072289a5c4d476435c18f90d0)
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)); |