issue importing .jsont.xlf files

Hello,

I'm unable to import .xlf files into Trados Studio 2021.

I get the error message: '"Xliff version 2.0 files are not supported" / "The element named "mate.jsont" is an invalid child for the XliffDocument element.

I've tried a few things in the file type settings, but nothing worked.

Did anyone ever have this issue and knows how to solve it?

Thank you

emoji
Parents Reply
  • Thanks  

    ok - the file is definitely invalid XLIFF as reported by Studio in your error message.  You can test this here if you like:

    https://dev.maxprograms.com/Validation/

    Out of the box Trados Studio isn't lenient with files like this so you won't be able to manage it out of the box.  You could create a custom XML filetype for it but your file is fully populated with target translations already so using a monolingual XML filetype wont help.

    On the appstore we have a Multilingual XML filetype and this is great for handling crappy bilingual files as it's very lenient and will extract whatever you tell it to and ignore all the rules.  I tested it with your file using these settings:

    Trados Studio Project Settings showing an error in Multilingual XML file type with a suggestion to add '*.xlf' to the file dialog wildcard expression.

    Trados Studio Language Mapping settings with a note to add the language root and the source and target languages.

    That's it, I didn't need to configure anything else and this allows me to translate the file.

    The downside is I won't be able to change the "state" of the translations.  Your file contains two states:

    <segment id="0" state="reviewed">

    <segment id="4" state="translated">

    But what you could do is use an expression when picking up the source/target content to only extract the content you need for translation.  This way you could, for example, only extract the segments that have a "translated" state and make any changes needed to review them.  Then at the end just search replace the "translated" state with "reviewed"... IF this is even enecessary.

    Anyway... long story, but the knub of it is your XLF file is invalid so you will only be able to handle this in the tool that created it, or by using the Multilingual XML filetype as explained.  I'll reply to your email with a screenshot of what gets extracted so you can see.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 9:05 AM (GMT 0) on 29 Feb 2024]
Children