summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-10-27 11:40:09 +0100
committerEike Rathke <erack@redhat.com>2015-10-27 10:59:25 +0000
commitd4484f726a78f1c2839ac0b4d0181e3e4357396c (patch)
tree9b91c0489dab69076dd31f6f9f75ace0863bb09e /sfx2
parentbf98ea200fa1d0412f41dfcc37c2704ff4080bcc (diff)
better i18n of STR_DDE_ERROR string
Change-Id: I23db46dddae093a85dc4dcb0f7b12630a1e7aa3f Reviewed-on: https://gerrit.libreoffice.org/19624 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/app.src2
-rw-r--r--sfx2/source/appl/lnkbase2.cxx12
2 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/app.src b/sfx2/source/appl/app.src
index e7e1cb5befdb..27597ce982ef 100644
--- a/sfx2/source/appl/app.src
+++ b/sfx2/source/appl/app.src
@@ -318,7 +318,7 @@ String STR_QUERY_UPDATE_LINKS
String STR_DDE_ERROR
{
- Text [ en-US ] = "DDE link to % for % area % are not available." ;
+ Text [ en-US ] = "DDE link to %1 for %2 area %3 are not available." ;
};
String STR_SECURITY_WARNING_NO_HYPERLINKS
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index b956625cbdbd..a613da9d0aaa 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -521,19 +521,19 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName )
{
sError = SFX2_RESSTR(STR_DDE_ERROR);
- sal_Int32 nFndPos = sError.indexOf( '%' );
+ sal_Int32 nFndPos = sError.indexOf( "%1" );
if( -1 != nFndPos )
{
- sError = sError.replaceAt( nFndPos, 1, sApp );
+ sError = sError.replaceAt( nFndPos, 2, sApp );
nFndPos = nFndPos + sApp.getLength();
- if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
+ if( -1 != ( nFndPos = sError.indexOf( "%2", nFndPos )))
{
- sError = sError.replaceAt( nFndPos, 1, sTopic );
+ sError = sError.replaceAt( nFndPos, 2, sTopic );
nFndPos = nFndPos + sTopic.getLength();
- if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
- sError = sError.replaceAt( nFndPos, 1, sItem );
+ if( -1 != ( nFndPos = sError.indexOf( "%3", nFndPos )))
+ sError = sError.replaceAt( nFndPos, 2, sItem );
}
}
}