summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-02-02 22:38:58 +0100
committerAndras Timar <andras.timar@collabora.com>2016-02-03 09:53:48 +0000
commite4b98408f60fdbe8248540da58bde8a9bf00c461 (patch)
tree5d0a6291c33422e03d58c4fcbf27cbb1ee62dbc2
parentdc146752b2fe11b3523299462a806c3c374ee0fa (diff)
tdf#97512 make strings localizable
Change-Id: I518918689e81475e9aaf0023cf91f4860531ad1e Reviewed-on: https://gerrit.libreoffice.org/22063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--vcl/AllLangResTarget_vcl.mk1
-rw-r--r--vcl/inc/svids.hrc6
-rw-r--r--vcl/source/app/svapp.cxx10
-rw-r--r--vcl/source/src/app.src37
4 files changed, 49 insertions, 5 deletions
diff --git a/vcl/AllLangResTarget_vcl.mk b/vcl/AllLangResTarget_vcl.mk
index 7c286bf4523e..822b3a24b679 100644
--- a/vcl/AllLangResTarget_vcl.mk
+++ b/vcl/AllLangResTarget_vcl.mk
@@ -33,6 +33,7 @@ $(eval $(call gb_SrsTarget_set_include,vcl/source/src,\
))
$(eval $(call gb_SrsTarget_add_files,vcl/source/src,\
+ vcl/source/src/app.src \
vcl/source/src/btntext.src \
vcl/source/src/helptext.src \
vcl/source/src/menu.src \
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index d66ea922c54a..e23fdc5bf384 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -178,6 +178,12 @@
#define SV_FUNIT_STRINGS 10700
+#define SV_APP_CPUTHREADS 10800
+#define SV_APP_OSVERSION 10801
+#define SV_APP_UIRENDER 10802
+#define SV_APP_GL 10803
+#define SV_APP_DEFAULT 10804
+
#define SV_ICON_SIZE48_START 20000
#define SV_ICON_SIZE32_START 21000
#define SV_ICON_SIZE16_START 23000
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index b22812eda1c2..b0d9111eb733 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1189,7 +1189,7 @@ OUString Application::GetHWOSConfInfo()
ImplSVData* pSVData = ImplGetSVData();
OUStringBuffer aDetails;
- aDetails.append( "CPU Threads: " );
+ aDetails.append( VclResId(SV_APP_CPUTHREADS).toString() );
aDetails.append( (sal_Int32)
std::thread::hardware_concurrency() );
aDetails.append( "; " );
@@ -1200,15 +1200,15 @@ OUString Application::GetHWOSConfInfo()
else
aVersion = "-";
- aDetails.append( "OS Version: " );
+ aDetails.append( VclResId(SV_APP_OSVERSION).toString() );
aDetails.append( aVersion );
aDetails.append( "; " );
- aDetails.append( "UI Render: " );
+ aDetails.append( VclResId(SV_APP_UIRENDER).toString() );
if ( OpenGLWrapper::isVCLOpenGLEnabled() )
- aDetails.append( "GL" );
+ aDetails.append( VclResId(SV_APP_GL).toString() );
else
- aDetails.append( "default" );
+ aDetails.append( VclResId(SV_APP_DEFAULT).toString() );
aDetails.append( "; " );
return aDetails.makeStringAndClear();
diff --git a/vcl/source/src/app.src b/vcl/source/src/app.src
new file mode 100644
index 000000000000..91d9df128c4c
--- /dev/null
+++ b/vcl/source/src/app.src
@@ -0,0 +1,37 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include "svids.hrc"
+
+String SV_APP_CPUTHREADS
+{
+ Text [en-US] = "CPU Threads: ";
+};
+
+String SV_APP_OSVERSION
+{
+ Text [en-US] = "OS Version: ";
+};
+
+String SV_APP_UIRENDER
+{
+ Text [en-US] = "UI Render: ";
+};
+
+String SV_APP_GL
+{
+ Text [en-US] = "GL";
+};
+
+String SV_APP_DEFAULT
+{
+ Text [ en-US ] = "default";
+};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */