[Interest] ts file format / export

Jason H jhihn at gmx.com
Thu Mar 31 17:14:55 CEST 2016


I find it somewhat confusing that phrases are grouped (nested) in the editor, but not in the file:

<TS version="2.1" language="en_US">
<context>
    <name>ChangePasswordScreen</name>
    <message>
        <source>Passwords do not match</source>
        <translation>Passwords do not match</translation>
    </message>
    <message numerus="yes">
        <source>At least %n character(s) are required</source>
        <translation>
            <numerusform>At least 1 character is required</numerusform>
            <numerusform>At least %n characters are required</numerusform>
        </translation>
    </message>
</context>

Here, I would expect the message elements to child children of the name element. 
I'm trying to export a list as: <name>, <source>
ChangePasswordScreen, Passwords do not match
ChangePasswordScreen, At least %n character(s) are required

But the XSLT to do the conversion is beyond me because they aren't parented.
Does anyone have any XSLT advice?



More information about the Interest mailing list