Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.2
-
None
-
-
7b2aade5ca (qt/qttools/dev) 7b2aade5ca (qt/tqtc-qttools/dev)
Description
I'm working on a Python module that generates Linguist TS files, as lupdate does, but using a different input material (I'm internationalizing something that is not a bunch of source files).
While testing my module, I used the format specification here to write a test input file : https://doc.qt.io/qt-6/linguist-ts-file-format.html
I'm more used to XML Schemas than DTDs, but I believe my test file (attached to this report) should conform to it. However, Linguist refuses to open it unless I remove a bunch of elements from it (the defaultcodec element, and all nested contexts for instance).
It's a very good thing to provide the TS file format specification and I thank you for that. However if there are indeed discrepancies between this spec and what the Qt tools actually support, it renders that specification not so useful.
If you confirm that there is a problem there, would you please update the documentation or the tools to make both of them consistent? Also if you'd like to consider a suggestion, using XML schema might help solve some of the expressiveness problems that are discussed in the DTD comments and it also has better tool support.