[Top][All Lists]

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

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

From: Daiki Ueno
Subject: [bug #58643] ITS - Double escapes when merging translations back to XML
Date: Sun, 28 Jun 2020 05:12:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0

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

> But now the translations are not merged back

I can't reproduce it. The steps I tried are:

0 git clone --depth 1 https://git.savannah.gnu.org/git/gettext.git
0 cd gettext
0 patch -p1 < metainfo.its.diff
0 cd gettext-tools
0 cp mf.appdata.xml
<https://savannah.gnu.org/support/download.php?file_id=49362> .
0 GETTEXTDATADIR=. xgettext -o mf.pot mf.appdata.xml
0 msginit --input mf.pot -l fr --no-translator
0 vi fr.po # add translation for "Foo & Bar" as "foo & bar"
0 GETTEXTDATADIR=. msgfmt --xml --template mf.appdata.xml -l fr fr.po -o

Now I have:
$ cat merged.xml
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
  <name>GNOME Characters</name>
  <summary>Character map application</summary>
    <p>Foo &amp; Bar</p>
    <p xml:lang="fr">foo &amp; bar</p>
  <url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>


Reply to this item at:


  Message sent via Savannah

reply via email to

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