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, 23 Jun 2020 20:37:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0

Follow-up Comment #2, bug #58643 (project gettext):

As PO files are not XML files, maybe we need to distinguish character entities
from other entities (defined through <!ENTITY ...>). The latter frequently
occur in Docbook XML files can meaningfully occur in msgids and msgstrs.

So, as I see it:
* xgettext should map character entities to plain Unicode characters, and
leave other entities unchanged.
* msgfmt should not escape the msgstr when storing it in the merged XML file.

Daiki, what do you think? Is this correct?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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