include/svtools/svtools.hrc | 2 ++ svtools/source/dialogs/PlaceEditDialog.cxx | 2 +- svtools/source/misc/svtools.src | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-)
New commits: commit 21864fed063c1888323e14977fc73061d4905b80 Author: Andras Timar <andras.ti...@collabora.com> Date: Wed Feb 8 11:12:25 2017 +0100 tdf#105814 enable localization of "host" and "port" in sample addresses Change-Id: I2e58f4757bd86393410cdc6fd77205a8ebb9b917 Reviewed-on: https://gerrit.libreoffice.org/34021 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/include/svtools/svtools.hrc b/include/svtools/svtools.hrc index ce64c93..47ff7df 100644 --- a/include/svtools/svtools.hrc +++ b/include/svtools/svtools.hrc @@ -47,6 +47,8 @@ #define STR_SVT_ESTIMATED_SIZE_PIX_1 (RID_SVTOOLS_START + 39) #define STR_SVT_ESTIMATED_SIZE_PIX_2 (RID_SVTOOLS_START + 40) #define STR_SVT_ESTIMATED_SIZE_VEC (RID_SVTOOLS_START + 41) +#define STR_SVT_HOST (RID_SVTOOLS_START + 42) +#define STR_SVT_PORT (RID_SVTOOLS_START + 43) // FREE diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index edf7b3f..5c887e7 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 ff49b29..2604ecc 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" ; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits