Different structure XML to be translated in SDL Studio

Hi,

I have a set of XML files to be translated in SDL Studio.

However, each file has a different structure and a different tags with content for translation.

Example:

File 1 - text for translation:

<original_fullname>Technology Structure</original_fullname>

<original_shortname>Technology Structure</original_shortname>

                <title>News forum</title>

File 2 - text for translation:

<name>New</name>

<name>Turning Technology</name>

<name>Match the following G&amp;amp;M code elements with the parallel elements in the English language.</name>

<questiontext>Match the following code elements.</questiontext>

<generalfeedback>Characters are the …. command.</generalfeedback>

<answertext>Letters</answertext>

And in other files the content for translation is between different tags.

Usually, I was adding the XML as the settings definition to be based on. But now, I have many different XML files as indicated.

Can you please advise how should I prepare the structure and the file type?

It is really urgent !

Thank You & Best Regards

Fouad

Parents Reply
  • Hi Fouad,
    I give here a short description of the case for the forum:

    you have different files with specific structures and roots,
    For each structure, you want to set "no elements is to be translated except a few elements"

    You can enter all the rules in one filetype:

    Parser Rules:
    //element1ToTranslate translatable
    //element2ToTranslate translatable
    //element3ToTranslate translatable
    //* not translatable (=everything else)
    Be careful to put //* at the end of the rules or the other rules won't be taken in account and no segments will be translatable.

    If you have a specific element which is to be translated in one structure, but not in the others, you have to be more precise with XPath, for example with:
    /root1//element1ToTranslate translatable

    In "detection", put a * as root element. All XML files will then match this file type.

    Kind regards
    Sébastien
Children