summaryrefslogtreecommitdiff
path: root/vcl
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
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')
-rw-r--r--vcl/inc/svids.hrc3
-rw-r--r--vcl/source/src/btntext.src5
-rw-r--r--vcl/source/src/helptext.src5
-rw-r--r--vcl/source/window/layout.cxx7
4 files changed, 17 insertions, 3 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index 734f0385875e..9752f00471d4 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -93,7 +93,7 @@
#define SV_HELPTEXT_ROLLDOWN 10004
#define SV_HELPTEXT_ROLLUP 10005
#define SV_HELPTEXT_HELP 10006
-//free
+#define SV_HELPTEXT_SCREENSHOT 10007
#define SV_HELPTEXT_FADEIN 10008
#define SV_HELPTEXT_FADEOUT 10009
#define SV_HELPTEXT_SPLITFLOATING 10010
@@ -132,6 +132,7 @@
#define SV_BUTTONTEXT_FIND 10129
#define SV_BUTTONTEXT_STOP 10130
#define SV_BUTTONTEXT_CONNECT 10131
+#define SV_BUTTONTEXT_SCREENSHOT 10132
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
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");