Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.4, 4.1.1
-
None
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.