Extract Lokalise xliff alt img text

Hi, i am parsing a Lokalise xliff file in Studio 2019 and at first glance it seems to mark up correctly, but it is not extracting IMG alt text

Example: (alt="Music Curation – A mix Between Art and Science")

<trans-unit id="lokalise-183193766-1" resname="/html/body/div[1]/aside/div/div/article[3]#text[1]">
<source>&lt;a class="post-card-image-link" href="">www.epidemicsound.com/.../"&gt;
&lt;img class="post-card-image" srcset="/blog/content/images/size/w300/2020/09/thumb_1.png 300w,
/blog/content/images/size/w600/2020/09/thumb_1.png 600w,
/blog/content/images/size/w1000/2020/09/thumb_1.png 1000w,
/blog/content/images/size/w2000/2020/09/thumb_1.png 2000w" sizes="(max-width: 1000px) 400px, 700px" src="./How%20Does%20the%20Ambassador%20Program%20Work_%20_%20Epidemic%20Sound_files/thumb_1.png" alt="Music Curation – A mix Between Art and Science"&gt;&lt;/a&gt;</source>
<target state="new"></target>
</trans-unit>

How do i get this text in to a segment.

Thanks

emoji
Parents
  • Other solution:

    Open the xliff in Studio as is, copy ALL source to target and save as target. This way you will have a xlf with source and target segments filled with the same content.

    Then create a xml file type (file name extension *.xliff) with just two elements in parser:

    //* as not translatable

    //target as ALWAYS TRANSLATABLE, structure "Paragraph"

    In embedded content activate the html 5 parser for all Paragraph and CDATA sections.

    This xml file type will deal with your xliff as would it be xml with embedded html. Works perfectly.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji
Reply
  • Other solution:

    Open the xliff in Studio as is, copy ALL source to target and save as target. This way you will have a xlf with source and target segments filled with the same content.

    Then create a xml file type (file name extension *.xliff) with just two elements in parser:

    //* as not translatable

    //target as ALWAYS TRANSLATABLE, structure "Paragraph"

    In embedded content activate the html 5 parser for all Paragraph and CDATA sections.

    This xml file type will deal with your xliff as would it be xml with embedded html. Works perfectly.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji
Children