[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: quotes are keeping their escape

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 12 Feb 2014 20:43:32 +0100

On 12.02.2014 17:03, Oto BREZINA wrote:
> Seems .po escaping get into GUI (using : TortoiseSVN 1.8.99, Build 25131)
>
> translating Gui text: Use 'mine' text block then 'theirs'
> to: Použiť blok "Moje" potom "Ich"
>
> In T-Merge it will show:Použiť blok \"Moje\" potom \"Ich\"
>
> I expect remove '\' from '\"' sequence.
>

If the original text does not escape the quotes, you should not escape
them in the translation either. In this case here, you should use the
single quotes instead of the double quotes.

The problem is the resource type: these strings are used in the xml
resource for the ribbon, and there special chars are escaped differently
(xml escaping, e.g. '<' needs to be written as &lt;)

So you should always use the same quotes as the original string, and
escape them the exact same way.

I'll add a change to the ResText tool so that it removes those escaping
backslashes also for the xml resource.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3072910
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-02-12 20:43:30 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.