Qt Linguist TS Parser Plugin

Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/parse_ts.pm

This parser extracts strings from Qt Linguist .TS files. Upon saving the destination file, it also adjusts the language in the top <TS> tag language attribute, and removes type="unfinished" attribute from individual <translation> attributes.

Code Examples

<TS version="4.0" language="en_US"> <context> <name>main</name> <message> <source>string</source> <comment>context</comment> <extracomment>comment</extracomment> <translation type="unfinished"></translation> </message> <message> <source>string</source> <translation type="unfinished"></translation> </message> ... </context> </TS>

Keep in mind that <comment> tags in this file format actually hold the context, whereas developer comments must be provided in <extracomment> tags.