Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14917

eZ not able to parse new QT Linguist XML format [patch]

    XMLWordPrintable

Details

    Description

      eZ Publish seems to be unable to parse the new XML format produced by QT Linguist 4. The noteable change being that Linguist produces a <translatorcomment> node for each message node which has a comment.

      When left in, eZ Publish is unable to make any use of the .ts file. If the name of the translatorcomment nodes are changed to <comment>, the file is successfully parsed, but only the translations with no comments are being used.

      The attached patch fixes this problem, by accepting translatorcomment; although it is ignored since it has no use in eZ Publish.

      Steps to reproduce

      Open a translation file in Qt Linguist 4, add a translator comment, save the file. Try to use it in eZ Publish. It will be refused due to xml validation errors.

      Attachments

        Activity

          People

            oms Ole Marius Smestad
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: