HTML translation: finished and vanished

I recently translated a html file in Trados Studio 2015, confirmed all segments, saved the target file en delivered it to my client. They just got back to me saying that upon opening the file I sent they can only see one short bit of target text.

I checked the target file in Firefox and Internet Explorer: they're right.

I also checked the source file in both Firefox and Internet Explorer and only the same short bit of (source) text is visible.

So, if the complete source and target texts exist in Trados, why can’t I see them in my browsers?

Do you recognize this situation?

Do you have an explanation or a solution?

What do I need to do to send my client a usable html file?

Thanks!

Parents
  • Hello,

    The same thing happened to me with a html file and I managed to find a workaround.

    After investigating in Notepad++, it looks like the source language ID in the html code was replaced by the target language ID in some cases but not all. However, in all such cases, the closing html span tag > was omitted causing the coding to break and therefore the target translation did not display in any browser.

    For example:
    <span lang=EN-IE>GENERAL</span>
    was converted as
    <span lang=Ezh-TW一般</span>
    when saved via Studio.

    Above, English (Ireland) was my source, and Traditional Chinese (Taiwan) was my intended target.

    As you can see, this should actually have been <span lang=zh-Hant>一般</span> (with a closing > after the language code).

    I could not find a solution via Studio, so instead I performed a search and replace on the target html file in Notepad++ for <span lang=Ezh-TW and replaced with <span lang=zh-Hant>.

    However, be careful that you do not break any 'style' html elements when carrying out this Find&Replace!!!

    For example, if you change <span lang=Ezh-TW style= to <span lang=zh-Hant> style=, you'll break the code in those particular places.

    So, in summary, I had to firstly replace all <span lang=Ezh-TW with <span lang=zh-Hant>.

    Then, to fix any style elements that were accidentally broken as a result of that Find&Replace, I had to open the target html in a browser, do a search on the page for the word "style=' to see if I had broken any style elements that were now displaying as code in the browser (there were about 10 occurrences, which was not so bad).

    Then, I did a quick search in Notepad++ for these broken style instances and changed any <span lang=zh-Hant>style= to <span lang=zh-Hant style=

    Then the html was as it should have saved originally.

    Hope that helps others in future!

    Kind regards,

    Tom

Reply
  • Hello,

    The same thing happened to me with a html file and I managed to find a workaround.

    After investigating in Notepad++, it looks like the source language ID in the html code was replaced by the target language ID in some cases but not all. However, in all such cases, the closing html span tag > was omitted causing the coding to break and therefore the target translation did not display in any browser.

    For example:
    <span lang=EN-IE>GENERAL</span>
    was converted as
    <span lang=Ezh-TW一般</span>
    when saved via Studio.

    Above, English (Ireland) was my source, and Traditional Chinese (Taiwan) was my intended target.

    As you can see, this should actually have been <span lang=zh-Hant>一般</span> (with a closing > after the language code).

    I could not find a solution via Studio, so instead I performed a search and replace on the target html file in Notepad++ for <span lang=Ezh-TW and replaced with <span lang=zh-Hant>.

    However, be careful that you do not break any 'style' html elements when carrying out this Find&Replace!!!

    For example, if you change <span lang=Ezh-TW style= to <span lang=zh-Hant> style=, you'll break the code in those particular places.

    So, in summary, I had to firstly replace all <span lang=Ezh-TW with <span lang=zh-Hant>.

    Then, to fix any style elements that were accidentally broken as a result of that Find&Replace, I had to open the target html in a browser, do a search on the page for the word "style=' to see if I had broken any style elements that were now displaying as code in the browser (there were about 10 occurrences, which was not so bad).

    Then, I did a quick search in Notepad++ for these broken style instances and changed any <span lang=zh-Hant>style= to <span lang=zh-Hant style=

    Then the html was as it should have saved originally.

    Hope that helps others in future!

    Kind regards,

    Tom

Children
No Data