summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-02-02 22:38:58 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-05 15:34:02 +0000
commit1b6e2453c3ac4298f6b2b557e5e6510ec6619518 (patch)
treea3fd16082bcf593c63289c38849d58f5e672a0c3 /vcl/source
parentdea370d7bb0ce4b8190dc98976b2691fce659952 (diff)
tdf#97512 make strings localizable
Reviewed-on: https://gerrit.libreoffice.org/22063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit e4b98408f60fdbe8248540da58bde8a9bf00c461) Change-Id: I518918689e81475e9aaf0023cf91f4860531ad1e Reviewed-on: https://gerrit.libreoffice.org/22070 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/svapp.cxx10
-rw-r--r--vcl/source/src/app.src37
2 files changed, 42 insertions, 5 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 0f5780801b76..ef0847d56d5b 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: */