summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-02-03 10:28:17 +0300
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-02-03 15:12:01 +0000
commitd7c48309e67c097ea4fe1045640401209b316c48 (patch)
treea8e226fc6978cae6c64e279ad272b94c4b37558b /vcl/source
parent71863c6188a5a0bf9dd1c31c8ad9c7b8b9b9001b (diff)
tdf#105697: Make the Screenshot command localizable
Change-Id: Ieb3f114feea3b9e9c597e0bd16ed80734dcd5ec2 Reviewed-on: https://gerrit.libreoffice.org/33865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/src/btntext.src5
-rw-r--r--vcl/source/src/helptext.src5
-rw-r--r--vcl/source/window/layout.cxx7
3 files changed, 15 insertions, 2 deletions
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src
index b3a6b6b6236b..7d7cb4d11be5 100644
--- a/vcl/source/src/btntext.src
+++ b/vcl/source/src/btntext.src
@@ -186,4 +186,9 @@ String SV_BUTTONTEXT_CONNECT
Text [ en-US ] = "C~onnect" ;
};
+String SV_BUTTONTEXT_SCREENSHOT
+{
+ Text [ en-US ] = "~Screenshot" ;
+};
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/src/helptext.src b/vcl/source/src/helptext.src
index 78fc92cd0633..99b443a09c23 100644
--- a/vcl/source/src/helptext.src
+++ b/vcl/source/src/helptext.src
@@ -57,6 +57,11 @@ String SV_HELPTEXT_HELP
Text [ en-US ] = "Help";
};
+String SV_HELPTEXT_SCREENSHOT
+{
+ Text [ en-US ] = "Take and annotate a screenshot";
+};
+
String SV_HELPTEXT_FADEIN
{
Text [ en-US ] = "Show";
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index ca082e0b2efd..77dbf1990dc4 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -21,6 +21,9 @@
#include <officecfg/Office/Common.hxx>
#include <vcl/abstdlg.hxx>
+#include "svdata.hxx"
+#include <svids.hrc>
+
VclContainer::VclContainer(vcl::Window *pParent, WinBits nStyle)
: Window(WINDOW_CONTAINER)
, IPrioritable()
@@ -261,10 +264,10 @@ void VclContainer::Command(const CommandEvent& rCEvt)
aMenu->InsertItem(
nLocalID,
- "Screenshot");
+ VclResId(SV_BUTTONTEXT_SCREENSHOT).toString());
aMenu->SetHelpText(
nLocalID,
- "Go into interactive screenshot annotation mode");
+ VclResId(SV_HELPTEXT_SCREENSHOT).toString());
aMenu->SetHelpId(
nLocalID,
"InteractiveScreenshotMode");