understanding sdlxliff files

Hi,

 

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?

 

regards,

Pascal

Parents Reply
  • Unknown said:
    who said I did not know about xliff structure. I already know about that reference page. ;)

    Then I would expect you already tried to base64-decode the content and found out yourself that it's the source file (as the "original" attribute of the "file" element already suggests).
    And since you asked that newbie-like question...

    Modifying SDLXLIFF without SDL's framework can be very tricky... for example even "prettying" the SDLXLIFF XML structure prevents the SDLXLIFF from being opened afterwards...
    That most probably means that something actually relies on physical position inside the SDLXLIFF file rather than on the XML structure... I'm just guessing and never actually did any further research, but the following pretty much support this idea (content is pretty-printed for demonstration purpose):
    Screenshot of Trados Studio showing XML code with red arrows pointing to 'StartsAt' values of '547' and '1074' indicating potential issues with location details.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 10:47 AM (GMT 0) on 4 Mar 2024]
Children
No Data