How do I create new WPML xliff files that contain source text only?

Dear colleagues,

Does anyone who is familiar with WordPress know how to create xliff files with only source text out of xliff files that contain both source and target text?

Some of the WPML xliff files the client sent have translated segments on the target side and I am trying to clear them so that I can apply my custom xml filetype to these files.  I tried "saving source as" on these files, thinking this would make the newly created xliff files source text only files, but it didn't work.  Are there other methods I can try?

Thank you.

Chunyi

 

Parents
  • Hi ,

    Probably the easiest way is to open the file in Studio using the standard XLIFF file type and copy source to target. Save the target file and now you have the XLIFF with source and target populated, both contain the source text so you can use your new XML file type to handle them. Make sure you disable the option to store segmentation information in the target file first or you’ll have additional information in the file you don’t want. (Can’t recall the exact name of this as I’m travelling without access to Studio at the moment)

    Alternatively you could remove the target and create a copy of the source in the XLIFF using regex in Notepad++.

    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

Reply
  • Hi ,

    Probably the easiest way is to open the file in Studio using the standard XLIFF file type and copy source to target. Save the target file and now you have the XLIFF with source and target populated, both contain the source text so you can use your new XML file type to handle them. Make sure you disable the option to store segmentation information in the target file first or you’ll have additional information in the file you don’t want. (Can’t recall the exact name of this as I’m travelling without access to Studio at the moment)

    Alternatively you could remove the target and create a copy of the source in the XLIFF using regex in Notepad++.

    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

Children