summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortagezi <lera.goncharuk@gmail.com>2017-12-05 16:01:32 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-12-20 18:35:21 +0100
commit400b70f85fdf0ae5a6d606eb3fff683b9f1ce7ab (patch)
tree71ce39ff915dad74ed6d5e869d71a37181b33b10
parent111db5b992ae5870e76313f76e633a4edcccf010 (diff)
tdf#114204 - Clarify the "Local Help not installed" message
Change-Id: If25e5f8a1eb2e247e2432bb8a14b7a4aa2509f62 Reviewed-on: https://gerrit.libreoffice.org/45880 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--sfx2/source/appl/sfxhelp.cxx9
-rw-r--r--sfx2/uiconfig/ui/helpmanual.ui2
2 files changed, 9 insertions, 2 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 4d5a2b240a01..bce03be37adb 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -70,6 +70,7 @@
#include <vcl/svapp.hxx>
#include <sfx2/frame.hxx>
#include <rtl/string.hxx>
+#include <svtools/langtab.hxx>
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
@@ -650,7 +651,13 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const
if ( !impl_hasHelpInstalled() )
{
- ScopedVclPtrInstance< MessageDialog > aQueryBox(const_cast< vcl::Window* >( pWindow ),"onlinehelpmanual","sfx/ui/helpmanual.ui");
+ ScopedVclPtrInstance< MessageDialog > aQueryBox(const_cast< vcl::Window* >( pWindow ),
+ "onlinehelpmanual", "sfx/ui/helpmanual.ui");
+
+ LanguageTag aLangTag = Application::GetSettings().GetUILanguageTag();
+ OUString sLocaleString = SvtLanguageTable::GetLanguageString( aLangTag.getLanguageType() );
+ OUString sPrimTex = aQueryBox->get_primary_text();
+ aQueryBox->set_primary_text(sPrimTex.replaceAll("$UILOCALE", sLocaleString));
short OnlineHelpBox = aQueryBox->Execute();
if(OnlineHelpBox == RET_OK)
diff --git a/sfx2/uiconfig/ui/helpmanual.ui b/sfx2/uiconfig/ui/helpmanual.ui
index f3847c880a92..e750ed0c7a96 100644
--- a/sfx2/uiconfig/ui/helpmanual.ui
+++ b/sfx2/uiconfig/ui/helpmanual.ui
@@ -9,7 +9,7 @@
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
- <property name="text" translatable="yes" context="helpmanual|onlinehelpmanual">The %PRODUCTNAME built-in help is not installed on your computer.</property>
+ <property name="text" translatable="yes" context="helpmanual|onlinehelpmanual">The %PRODUCTNAME built-in help for current UI language ($UILOCALE) is not installed on your computer.</property>
<property name="secondary_text" translatable="yes" context="helpmanual|onlinehelpmanual">You may either install it from our website or your system’s repositories, or read an online version.</property>
<child internal-child="vbox">
<object class="GtkBox" id="internal_box">