bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #58643] ITS - Double escapes when merging translations back to XML


From: Bruno Haible
Subject: [bug #58643] ITS - Double escapes when merging translations back to XML
Date: Tue, 1 Oct 2024 13:18:00 -0400 (EDT)

Update of bug #58643 (group gettext):

                  Status:               Confirmed => Fixed                  
             Assigned to:                    None => haible                 
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #17:

I revisited the entire escape handling. The problem was not in the
documentation; it was in the code.

1) The xgettext handling was wrong in the first place. xgettext should not do
escaping at all. The contents of the POT file is meant for translators, and
  - the messages are not labelled as requiring XML content syntax,
  - it is better for the translators if they can write various characters such
as & < > without escaping them, as mentioned by Samy Mahmoudi.

Escaping needs to happen in the message merge phase (i.e. what msgfmt does)
instead.

2) The default value of the 'escape' property in the <gt:escapeRule> was
"yes"; then 4 out of 5 *.its files that we ship set its value to "no". Daiki's
proposed patch metainfo.its.diff has the effect of setting its value to "no"
in the fifth file as well. So, we have a property whose default is inadequate
in all known cases. It is thus reasonable to change the default, so that users
of new *.its files don't need to find out about the need to add such a rule.

Fixed through
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=eaf658bed81b831f84c53f27128696aacf8356ac
.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58643>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]