[Libreoffice-commits] core.git: vcl/inc vcl/source
Muhammet Kara
muhammet.kara at pardus.org.tr
Fri Feb 3 15:12:35 UTC 2017
vcl/inc/svids.hrc | 3 ++-
vcl/source/src/btntext.src | 5 +++++
vcl/source/src/helptext.src | 5 +++++
vcl/source/window/layout.cxx | 7 +++++--
4 files changed, 17 insertions(+), 3 deletions(-)
New commits:
commit d7c48309e67c097ea4fe1045640401209b316c48
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date: Fri Feb 3 10:28:17 2017 +0300
tdf#105697: Make the Screenshot command localizable
Change-Id: Ieb3f114feea3b9e9c597e0bd16ed80734dcd5ec2
Reviewed-on: https://gerrit.libreoffice.org/33865
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index 734f038..9752f00 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 b3a6b6b..7d7cb4d 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 78fc92c..99b443a 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 ca082e0..77dbf19 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");
More information about the Libreoffice-commits
mailing list