How can I exclude {text_like_this} in HTML?

I frequently have snippets of HTML code that require translation. These snippets contain {text_like_this} which is going to be replaced by the executing code before the HTML is served. These placeholders are not to be translated, and I want to protect them, if at all possible without resorting to add-ons, just using the file types. Placeholders can appear anywhere, even in attribute values such as <a href="{URL_here}">

To my surprise, I did not manage to achieve this using the HTML file type in Studio 2021. I attached a sample file.

<div>
<p>Sender: {sender_name}, {sender_email}</p>
<p>Message: {your_message}</p>
<p>Message: <strong>{another_message}</strong></p>
</div>

8311.sample.zip

emoji
Parents Reply Children
  • Yes, I checked the functionality of the AppStore by trying to update apps, which led to the errors mentioned above. Download works fine and Anonymizer transmogrifies the {placeholders} sweetly into tags. It does not handle the reverse process properly in my case, so in the end I went with your proposal. I'll just have to add DSI rules.

    Fun fact with Anonymizer tags: DeepL does not know how to handle them, it treats them as text. OpusCAT MT generally does not handle tags and Language Weaver manages:

    Screenshot showing Trados Studio error with DeepL NMT where Anonymizer tags are not converted back properly, displayed as text.

    emoji


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