understanding sdlxliff files



I would like to programm an online tool (maybe as offline app later on) in order to automatically alter existing SDLXLIFF and xliff files (and maybe also for other translation file types).

From what I understood it is not possible to create new sdlxliff files without using Trados, right?

Another question I have is about the tag <internal-file ...> within sdlxliff files: what is all this "garbage" about?

I guess it's encrypted or compressed information about how Trados should handle the file, but can I alter the rest of the file e.g. by adding (sub)segments or other information without having to change this part? Or is it not possible outside of Trados as this part would also need to be changed during that process?

Are there other things I need to pay attention to?




Parents Reply
  • Hi Pascal,

    "Even when trying to decode (base64) it I only get garbage as a result."

    That is not garbage but the original file in its binary form. You can guess the file format by looking at the "magic number", i.e. the first two characters. If your "garbage" starts with "ÐÏ", it means you have an office document (doc, xls or ppt), if it starts with "PK" you have some sort of ZIP file, e.g. doc, xlsx, idml, etc. The latter case is the simplest. Just save this "garbage" as a file, rename it ".zip" unpack it and have a look. ;-)