Kaydet (Commit) d4484f72 authored tarafından Andras Timar's avatar Andras Timar Kaydeden (comit) Eike Rathke

better i18n of STR_DDE_ERROR string

Change-Id: I23db46dddae093a85dc4dcb0f7b12630a1e7aa3f
Reviewed-on: https://gerrit.libreoffice.org/19624Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst bf98ea20
......@@ -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
......
......@@ -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 );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment