Empty data fields are not displayed in Trados Studio / not included in translated XML file

Dear Trados Community

We use the following version of Trados Studio to translate XML files exported from a TYPO3 content management system:

SDL Trados Studio 2017 Professional
Version 2017 SR1 - 14.1.10018.54792

The XML files are exported and re-imported after translation using L10N manager. The content page for the translation is empty, which means that all the translated elements are created when the corresponding XML file is imported.

The problem is that empty data fields (white spaces or fields without text) in the source language XML file are not displayed in Trados Studio and thus are not included in target language XML file. These empty fields are important so that TYPO3 contains the corresponding element (a container), even if it has no name (e.g. header/text). Without these empty fields, the data structure is no longer correct and we cannot import the translated XML file.

We have checked the exported files to ensure that all the necessary fields are present. I am able to re-import an untranslated XML file (without running it through Trados Studio first).

Example:
Export (source language file from TYPO3):
<data table="tt_content" elementUid="537825" key="tt_content:NEW/1/537825:header"></data>
<data table="tt_content" elementUid="537825" key="tt_content:NEW/1/537825:bodytext"><p>Die hier aufgeführten ...</data>

Import (target language file from Trados Studio) is missing the empty data field:
<data table="tt_content" elementUid="537825" key="tt_content:NEW/1/537825:bodytext"><p>Our answers are based on ...</data>

We appreciate your assistance and suggestions. It would also be great to know if this problem also occurs in newer Trados Studio versions.

Thanks for your help!

emoji
Parents Reply Children
  • Dear Daniel Hug,

    Thanks for your feedback. It took me a moment to set up and generate a test website that would produce the described error (without a large amount of text), but I was successful. The German (source text) and English (target text) XML files are attached bellow.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE TYPO3L10N [ <!ENTITY nbsp " "> ]>
    <TYPO3L10N>
    	<head>
    		<t3_l10ncfg>1420</t3_l10ncfg>
    		<t3_sysLang>1</t3_sysLang>
    		<t3_sourceLang>DE</t3_sourceLang>
    		<t3_targetLang>en</t3_targetLang>
    		<t3_baseURL>www.uni-konstanz.de/.../t3_baseURL>
    		<t3_workspaceId>0</t3_workspaceId>
    		<t3_count>13</t3_count>
    		<t3_wordCount>19</t3_wordCount>
    		<t3_formatVersion>2.0</t3_formatVersion>
    		<t3_l10nmgrVersion>10.0.0</t3_l10nmgrVersion>
    	</head>
    	<pageGrp id="151156" sourceUrl="www.wiese.uni-konstanz.de/.../">
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut">0</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut_mode">0</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:NEW/1/849753:header">ertz</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:NEW/1/849753:header_link">t3://page?uid=54205</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:NEW/1/849751:header">Seitenkopf</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:NEW/1/849751:subheader">sdfasdfsa</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:header">cxvbcxvb</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:bodytext"><p>cvxbxcvb</p></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:NEW/1/849710:bodytext"><p>das ist ein Text</p></data>
    	</pageGrp>
    </TYPO3L10N>

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE TYPO3L10N [ <!ENTITY nbsp " "> ]>
    <TYPO3L10N>
    	<head>
    		<t3_l10ncfg>1420</t3_l10ncfg>
    		<t3_sysLang>1</t3_sysLang>
    		<t3_sourceLang>DE</t3_sourceLang>
    		<t3_targetLang>EN</t3_targetLang>
    		<t3_baseURL>www.uni-konstanz.de/.../t3_baseURL>
    		<t3_workspaceId>0</t3_workspaceId>
    		<t3_count>13</t3_count>
    		<t3_wordCount>19</t3_wordCount>
    		<t3_formatVersion>2.0</t3_formatVersion>
    		<t3_l10nmgrVersion>10.0.0</t3_l10nmgrVersion>
    	</head>
    	<pageGrp id="151156" sourceUrl="www.wiese.uni-konstanz.de/.../">
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut">0</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut_mode">0</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:NEW/1/849753:header">ertz</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:NEW/1/849753:header_link">t3://page?uid=54205</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:NEW/1/849751:header">Header</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:NEW/1/849751:subheader">sdfasdfsa</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:header">cxvbcxvb</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:bodytext"><p>cvxbxcvb</p></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:NEW/1/849710:bodytext"><p>This is a text.</p></data>
    	</pageGrp>
    </TYPO3L10N>

    To your question about the XML file type - I think we actually do use just a standard XML. I have, however, made a screenshot of my settings just in case:

    Screenshot of Trados Studio project settings showing a list of file types and their extensions, with XML file types highlighted.

    I am curious what feedback you have for us.

    Many thanks in advance!
    Michelle



    Generated Image Alt-Text
    [edited by: Trados AI at 11:41 AM (GMT 0) on 29 Feb 2024]
  • fyi: These files from the same page produced no error:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE TYPO3L10N [ <!ENTITY nbsp " "> ]>
    <TYPO3L10N>
    	<head>
    		<t3_l10ncfg>1420</t3_l10ncfg>
    		<t3_sysLang>1</t3_sysLang>
    		<t3_sourceLang>DE</t3_sourceLang>
    		<t3_targetLang>en</t3_targetLang>
    		<t3_baseURL>https://www.uni-konstanz.de/</t3_baseURL>
    		<t3_workspaceId>0</t3_workspaceId>
    		<t3_count>13</t3_count>
    		<t3_wordCount>19</t3_wordCount>
    		<t3_formatVersion>2.0</t3_formatVersion>
    		<t3_l10nmgrVersion>10.0.0</t3_l10nmgrVersion>
    	</head>
    	<pageGrp id="151156" sourceUrl="https://www.wiese.uni-konstanz.de/schulungsseiten-1/test-l10n/">
    		<data table="pages" elementUid="151156" key="pages:151670:title">Test L10n</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut">0</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut_mode">0</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:850312:header">ertz</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:850312:header_link">t3://page?uid=54205</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:850313:header">Seitenkopf</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:850313:subheader">sdfasdfsa</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:header">cxvbcxvb</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:bodytext"><p>cvxbxcvb</p></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:850314:header"></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:850314:bodytext"><p>das ist ein Text</p></data>
    		<data table="tt_content" elementUid="849741" key="tt_content:NEW/1/849741:header"></data>
    		<data table="tt_content" elementUid="849752" key="tt_content:NEW/1/849752:header"></data>
    	</pageGrp>
    </TYPO3L10N>

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE TYPO3L10N [ <!ENTITY nbsp " "> ]>
    <TYPO3L10N>
    	<head>
    		<t3_l10ncfg>1420</t3_l10ncfg>
    		<t3_sysLang>1</t3_sysLang>
    		<t3_sourceLang>DE</t3_sourceLang>
    		<t3_targetLang>EN</t3_targetLang>
    		<t3_baseURL>https://www.uni-konstanz.de/en/</t3_baseURL>
    		<t3_workspaceId>0</t3_workspaceId>
    		<t3_count>13</t3_count>
    		<t3_wordCount>19</t3_wordCount>
    		<t3_formatVersion>2.0</t3_formatVersion>
    		<t3_l10nmgrVersion>10.0.0</t3_l10nmgrVersion>
    	</head>
    	<pageGrp id="151156" sourceUrl="https://www.wiese.uni-konstanz.de/schulungsseiten-1/test-l10n/">
    		<data table="pages" elementUid="151156" key="pages:151670:title">Test L10n</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut">0</data>
    		<data table="pages" elementUid="151156" key="pages:151670:shortcut_mode">0</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:850312:header">ertz</data>
    		<data table="tt_content" elementUid="849753" key="tt_content:850312:header_link">t3://page?uid=54205</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:850313:header">Header</data>
    		<data table="tt_content" elementUid="849751" key="tt_content:850313:subheader">sdfasdfsa</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:header">cxvbcxvb</data>
    		<data table="tt_content" elementUid="849742" key="tt_content:NEW/1/849742:bodytext"><p>cvxbxcvb</p></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:850314:header"></data>
    		<data table="tt_content" elementUid="849710" key="tt_content:850314:bodytext"><p>This is a text.</p></data>
    		<data table="tt_content" elementUid="849741" key="tt_content:NEW/1/849741:header"></data>
    		<data table="tt_content" elementUid="849752" key="tt_content:NEW/1/849752:header"></data>
    	</pageGrp>
    </TYPO3L10N>

    emoji
  •  

    Well I'm confused.  I have no idea what your problem is.  I compared these two files and you can see the only differences are in the translations:

    Side-by-side comparison of XML files in Trados Studio showing differences in translations highlighted in yellow.

    You said:

    The problem is that empty data fields (white spaces or fields without text) in the source language XML file are not displayed in Trados Studio and thus are not included in target language XML file. These empty fields are important so that TYPO3 contains the corresponding element (a container), even if it has no name (e.g. header/text). Without these empty fields, the data structure is no longer correct and we cannot import the translated XML file.

    Where in this example does this apply?

    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

    emoji


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