Display notranslate as locked text parts in Studio

Hi,

I have an xml/dita file, where the client marked some parts as notranslate (translate="no").

How can I define the settings in that datatype, that those parts are still visible in Studio, but locked?

Thanks,

Johannes

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="appendix_ic_statement">
    <title translate="no">IC Statement</title>
    <shortdesc></shortdesc>
    <conbody translate="no">
        <section id="section_qt2_hbl_wfc">
            <p>This device complies with Industry Canada license-exempt RSS standard(s).</p>
            <p>Operation is subject to the following two conditions:<ol id="ol_n5k_21l_wfc">
                    <li>this device may not cause interference, and (2) this device must accept any
                        interference, including interference that may cause undesired operation of
                        the device.</li>
                    <li>this device must accept any interference, including interference that may
                        cause undesired operation of the device.</li>
                </ol></p>
        </section>
        <section id="section_czl_3bl_wfc">
            <p>Le present appareil est conforme aux CNR d'Industrie Canada applicables aux appareils
                radio exempts de licence.</p>
            <p>L'exploitation est autorisee aux deux conditions suivantes : <ol id="ol_ujz_g1l_wfc">
                    <li>l'appareil ne doit pas produire de brouillage, et</li>
                    <li>l'utilisateur de l'appareil doit accepter tout brouillage radioelectrique
                        subi, meme si le brouillage est susceptible d'en compromettre le
                        fonctionnement.</li>
                </ol></p>
        </section>
    </conbody>
</concept>



Removed AI Suggestion
[edited by: Johannes Purer at 4:36 PM (GMT 0) on 13 Jan 2026]
emoji
Parents
  • Probability score: 0.6  

    Question improvement suggestion: Provide specific details about the XML structure and any existing settings in Trados Studio that you have already tried to implement.  

    In the meantime, based on the information you have provided, here is a suggested answer to your question:  

    Hello Johannes,  

    To display parts marked as `translate="no"` in your XML/DITA file as locked text in Trados Studio, you can follow these steps:  

    **Step 1:** Create a custom file type for your XML/DITA files in Trados Studio.  

    - Go to **File > Options > File Types** and create a new file type based on your XML structure.  

    **Step 2:** Define the Parser Rules.  

    - In the Parser Rules section, add a rule to extract translatable content using an XPath expression that targets elements with `translate="yes"`. For example, you can use `//*[@translate='yes']` to select translatable elements.  

    - Add another rule to exclude non-translatable elements, such as `//*` to ensure that only the desired content is extracted.  

    **Step 3:** Set the Locked Text Display.  

    - In the settings for your custom file type, ensure that elements with `translate="no"` are set to be displayed as locked text. You may need to use XPath expressions to specify these elements, such as `//*[@translate='no']`.  

    **Step 4:** Test the Configuration.  

    - Create a new project using your custom file type and check if the non-translatable parts are displayed as locked text in the editor.  

    **Step 5:** Adjust as Necessary.  

    - If the locked text does not appear as expected, revisit your XPath expressions and ensure they correctly target the intended elements.  

    By following these steps, you should be able to configure Trados Studio to display non-translatable parts as locked text while still being visible for reference.  

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.  

    RWS Community AI

    emoji
Reply
  • Probability score: 0.6  

    Question improvement suggestion: Provide specific details about the XML structure and any existing settings in Trados Studio that you have already tried to implement.  

    In the meantime, based on the information you have provided, here is a suggested answer to your question:  

    Hello Johannes,  

    To display parts marked as `translate="no"` in your XML/DITA file as locked text in Trados Studio, you can follow these steps:  

    **Step 1:** Create a custom file type for your XML/DITA files in Trados Studio.  

    - Go to **File > Options > File Types** and create a new file type based on your XML structure.  

    **Step 2:** Define the Parser Rules.  

    - In the Parser Rules section, add a rule to extract translatable content using an XPath expression that targets elements with `translate="yes"`. For example, you can use `//*[@translate='yes']` to select translatable elements.  

    - Add another rule to exclude non-translatable elements, such as `//*` to ensure that only the desired content is extracted.  

    **Step 3:** Set the Locked Text Display.  

    - In the settings for your custom file type, ensure that elements with `translate="no"` are set to be displayed as locked text. You may need to use XPath expressions to specify these elements, such as `//*[@translate='no']`.  

    **Step 4:** Test the Configuration.  

    - Create a new project using your custom file type and check if the non-translatable parts are displayed as locked text in the editor.  

    **Step 5:** Adjust as Necessary.  

    - If the locked text does not appear as expected, revisit your XPath expressions and ensure they correctly target the intended elements.  

    By following these steps, you should be able to configure Trados Studio to display non-translatable parts as locked text while still being visible for reference.  

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.  

    RWS Community AI

    emoji
Children
No Data