Can I merge two .xlf translation files into one?

I have two .xlf translation files: source-language="en" target-language="fr"

The source language is identical in both, but the target language in one has many updated segments. I need to merge the two .xlf files because the one with the updated French segments is based upon an older source file.

Does SDL Trados Studio offer a way to merge the two .xlf files and remove the replaced French segments?

Thank you

Parents
  • Hello ,

    If I have understood your question correctly, you should be able to do this by using the “Translate to Fuzzy Match” feature in Trados Studio.

    Create a new project in Studio, adding both files (copied to a new folder) ensuring they have a different name to make it easier to see (OLD and NEW). Don’t use a TM to create the project, but do create a NEW TM in the Project Settings once the project is created.

    Trados Studio interface showing the Files View with one file labeled OLD and another labeled NEW in a project folder.

    Selecting the original OLD file only in the Files View, then update Main Translation Memory In your Batch Tasks.
    In the screenshot below I have highlighted the original translation for comparison

    Comparison view in Trados Studio highlighting the original translation segments in the OLD file.

    Once you have populated your TM with the contents of the OLD file open the 2nd (NEW) file for translation.  You will see the changes made in the second file where the translations in the file are different to the OLD file:

    Trados Studio editor displaying the NEW file with changes highlighted where translations differ from the OLD file.

    Now select “Confirm and Translate until Next Fuzzy match”:

    Trados Studio screenshot showing the 'Confirm and Translate until Next Fuzzy match' feature being selected.

    Studio will now run through the translation and stop at the first segment where there are changes and warn you.  These will be the segments in the NEW file that have translations older than the ones in the OLD file.  This gives you an opportunity to verify it’s correct and also replace the translation with the one from your TM:

    Warning message in Trados Studio indicating different target in translation memory.

    Once complete “Generate the target file”, or just “Save target As”, and the XLIFF file you get will be the one containing a “merge” of your two files.


    If you feel confident that everything in the OLD XLIFF (now in your TM) should always replace the translations in your NEW XLIFF then you could also do this faster and automatically by just pre-translating the NEW XLIFF instead of using “Translate to Fuzzy” and use the option to always overwrite from the TM.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 8:58 AM (GMT 0) on 29 Feb 2024]
Reply
  • Hello ,

    If I have understood your question correctly, you should be able to do this by using the “Translate to Fuzzy Match” feature in Trados Studio.

    Create a new project in Studio, adding both files (copied to a new folder) ensuring they have a different name to make it easier to see (OLD and NEW). Don’t use a TM to create the project, but do create a NEW TM in the Project Settings once the project is created.

    Trados Studio interface showing the Files View with one file labeled OLD and another labeled NEW in a project folder.

    Selecting the original OLD file only in the Files View, then update Main Translation Memory In your Batch Tasks.
    In the screenshot below I have highlighted the original translation for comparison

    Comparison view in Trados Studio highlighting the original translation segments in the OLD file.

    Once you have populated your TM with the contents of the OLD file open the 2nd (NEW) file for translation.  You will see the changes made in the second file where the translations in the file are different to the OLD file:

    Trados Studio editor displaying the NEW file with changes highlighted where translations differ from the OLD file.

    Now select “Confirm and Translate until Next Fuzzy match”:

    Trados Studio screenshot showing the 'Confirm and Translate until Next Fuzzy match' feature being selected.

    Studio will now run through the translation and stop at the first segment where there are changes and warn you.  These will be the segments in the NEW file that have translations older than the ones in the OLD file.  This gives you an opportunity to verify it’s correct and also replace the translation with the one from your TM:

    Warning message in Trados Studio indicating different target in translation memory.

    Once complete “Generate the target file”, or just “Save target As”, and the XLIFF file you get will be the one containing a “merge” of your two files.


    If you feel confident that everything in the OLD XLIFF (now in your TM) should always replace the translations in your NEW XLIFF then you could also do this faster and automatically by just pre-translating the NEW XLIFF instead of using “Translate to Fuzzy” and use the option to always overwrite from the TM.

    emoji


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