summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2017-02-08 11:12:25 +0100
committerAndras Timar <andras.timar@collabora.com>2017-02-08 11:33:41 +0000
commit21864fed063c1888323e14977fc73061d4905b80 (patch)
tree52353e6ed2e27f2a56422ce8dcfd1c5c8d50c2a7 /svtools
parentloplugin:unusedenumconstants read-only constants in writerfilter (diff)
downloadcore-21864fed063c1888323e14977fc73061d4905b80.tar.gz
core-21864fed063c1888323e14977fc73061d4905b80.zip
tdf#105814 enable localization of "host" and "port" in sample addresses
Change-Id: I2e58f4757bd86393410cdc6fd77205a8ebb9b917 Reviewed-on: https://gerrit.libreoffice.org/34021 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/PlaceEditDialog.cxx2
-rw-r--r--svtools/source/misc/svtools.src8
2 files changed, 9 insertions, 1 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx
index edf7b3f6f91d..5c887e742b6a 100644
--- a/svtools/source/dialogs/PlaceEditDialog.cxx
+++ b/svtools/source/dialogs/PlaceEditDialog.cxx
@@ -175,7 +175,7 @@ void PlaceEditDialog::InitDetails( )
unsigned int nPos = 0;
for ( sal_Int32 i = 0; i < aTypesUrlsList.getLength( ) && aTypesNamesList.getLength( ); ++i )
{
- OUString sUrl = aTypesUrlsList[i];
+ OUString sUrl = aTypesUrlsList[i].replaceFirst("<host", "<" + SVT_RESSTR(STR_SVT_HOST)).replaceFirst("port>", SVT_RESSTR(STR_SVT_PORT) + ">");
if ((sUrl == GDRIVE_BASE_URL && bSkipGDrive) ||
(sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL) && bSkipAlfresco) ||
diff --git a/svtools/source/misc/svtools.src b/svtools/source/misc/svtools.src
index ff49b2964975..2604ecc18839 100644
--- a/svtools/source/misc/svtools.src
+++ b/svtools/source/misc/svtools.src
@@ -49,6 +49,14 @@ String STR_SVT_ESTIMATED_SIZE_VEC
{
Text [ en-US ] = "The file size is %1 KB.";
};
+String STR_SVT_HOST
+{
+ Text [ en-US ] = "host";
+};
+String STR_SVT_PORT
+{
+ Text [ en-US ] = "port";
+};
String STR_SVT_PRNDLG_READY
{
Text [ en-US ] = "Ready" ;