Discussion:
quotes are keeping their escape
Oto BREZINA
2014-02-12 16:03:10 UTC
Permalink
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.
--
Oto BREZINA, Printflow s.r.o., J. Hagaru 9, BRATISLAVA,
www.printflow.eu, ***@printflow.eu.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3072906

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Stefan Küng
2014-02-12 19:43:32 UTC
Permalink
Post by Oto BREZINA
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-***@tortoisesvn.tigris.org].
Oto BREZINA
2014-02-12 20:55:49 UTC
Permalink
Post by Stefan Küng
Post by Oto BREZINA
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.
Original text as well as translation does no escape quotes. .po format does.
Post by Stefan Küng
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;)
When Po is loaded you should remove all escaping as well as join lines
etc to internal format and then escape it back to output format.
Only "by chance" po shares escaping with c.
Post by Stefan Küng
So you should always use the same quotes as the original string, and
escape them the exact same way.
While I can do it, it mean do not translate quotes ... I'm unsure about
other languages e.g. German but some other languages uses double quotes
as well.
Post by Stefan Küng
I'll add a change to the ResText tool so that it removes those escaping
backslashes also for the xml resource.
Thnx.
Post by Stefan Küng
Stefan
--
Oto BREZINA, Printflow s.r.o., J. Hagaru 9, BRATISLAVA,
www.printflow.eu, ***@printflow.eu.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3072915

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Loading...