Is there a way to convert html files to xliff files?

Dear Studio 2017 users,

A client sent several WordPress based xliff files for translation.  Some of the xliff files were too big to even open in Studio, so for those the client provided html files.

These html files are much easier to work with, with far less tags and improved segmented.  However, the client said they wouldn't be able to upload the html files back to their WordPress system and they are hoping to receive the translated html files in xliff format as deliverables.

So my question is, is there a way to convert the html file in xliff format before adding them to the Studio project, or convert the html files to xliff file format for delivery at the end?  

Thank you so much for the information!

Chunyi

  • What they probably mean is to deliver the WordPress (i.e. probably WPML) crippled wannabe-XLIFFs which they sent the first time.
    This crippled format is NOT XLIFF. More info here: community.sdl.com/.../12708
    No tool for producing correct XLIFF format is able to produce this crippled format. And there is no reason to spend a single minute by trying to produce something so terribly BAD and WRONG as this format.
  • Hi Evzen,

    Thank you for your response. I have followed various threads on this topic in the past few days, and I know how much you hate WPML. (You can count me in as well:)
    Despite that, I would still want to know whether there is a way to change the html file to xliff format so that the client can upload to their website. I am not talking about converting the translated html files back to the very messy xliff files, but the new xliff files converted from the translated html files. Is it possible at all?
    If there is no way, my colleague and I will just have to let the client know ahead of time so that they are prepared to manually copy and paste the translated text in their WordPress system.

    Chunyi
  • First you must find out whether they are REALLY REALLY REALLY talking about STANDARD XLIFF.
    I seriously doubt that... because they want to UPLOAD it back to the WP system... i.e. I strongly believe that they are actually talking about the XLIFF they sent previously (which was most probably the WPML crap).

    Regrading GENERAL possibility to create XLIFF from HTML - of course this is possible! Basically every CAT tool does it, even Studio - it's exactly what happens when you open HTML file and it gets converted to SDLXLIFF.
    But remember that XLIFF is by nature BILINGUAL, i.e. "converting translated HTML to XLIFF" does not make much sense... which is precisely the reason why I strongly believe that your client basically doesn't know what they are talking about... (I still might be completely wrong, but I've been in such situation too many times before to have a good reason to believe what I believe...)
  • Hi Evzen,

    I think you are probably right...it's very likely that the client needs the kind of xliff that can be readily uploaded to WP. The more I learned about WordPress based xliffs, the more discouraged I become in handling such files in Studio. I wish there were a more efficient way in handling this type of files.

    Chunyi


  • Maybe worth closing this off as you managed it in the end by using a custom XML filetype and handling the XLIFF as a monolingual file, translating the target element of the XLIFF.

    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