Forum Discussion
Error importing XLIFF file
I received several translated files for a set of courses, all in .xlf format. All of them work fine but one. I am getting an error that says, "Unsupported XLIFF File: The element named 'unit' is an invalid child for the Unit element." I saw in the community posts a suggestion for validating XLIFF files, so I ran it through that online service (dev.maxprograms.com/Validation) and I got this response: File [filename] is not valid XLIFF (whole validation response is attached).
I am wondering if there is any way for me to manually edit the XLIFF file to correct this error so I can import it or if this has to be done in whatever translation software our service uses. They have been insisting the file is fine, but obviously it's not...but at this point if I can fix it and import it, I would rather just get it done. I am wondering if I can edit it in something like Notepad which typically doesn't apply formatting, without it corrupting the file...and I would have to know WHAT to edit. I opened the XLIFF file in Notepad but couldn't find the exact string of text that was called out in the error message, so I wasn't sure you to proceed.
Maybe the only answer is to go back (again - this will be their 5th try on this file) to the translation company....and yes, I did a fresh export each time and didn't change anything in the source Storyline file after.
Thanks for any help...or just for the sympathy if no help is available. :)
Robert
- FelixFrankeCommunity Member
Hi, I use notepad++ for editing xlf files, it structures the files very nicely, too.
For conversion or translation (if you have API access to for example Deepl), I am using HERO Translate, which works very well. I mostly use the Excel conversion, because our translations usually need some editing from a native speaker. Too many very specialized technical terms and company guidelines 🤦♂️
It really had transformed my life!
- Jürgen_Schoene_Community Member
HINT: beautify the xliff before open it in poedit
left: direkt import, right beautify import -> you can see much better the structure
- Jürgen_Schoene_Community Member
you can open the xliff files with poedit
the main problem of xliff import in storyline is the poor import funktion - no real error messages like "a syntax error in id xyz"
with such an error message a fix would be very easy in poedit- RobertAuchenpauCommunity Member
Thanks, Jürgen! I'll have a look at Poedit.
Robert