Skip to main content
New Participant
June 20, 2022
Question

Xliff translation custom XTS file

  • June 20, 2022
  • 1 reply
  • 338 views

Hi Everyone,

I have some questions regarding "g" element level tags. How do I modify the translation XTS file to remove the following? 

<g translate="no" id="ID0EYX3O" />, where the "id" could be any value.
My translation provider has flagged the <g translate="no" id="........." /> string as being incorrect.
Example below

 

<trans-unit resname="p[Bullet]" restype="x-paragraph" id="ID0EL3DQ">
<source xml:space="preserve" xml:lang="en-US">
<g translate="no" id="ID0ET3DQ" />The charger is for indoor use only. Do not use outdoors.</source>
</trans-unit>

 

I have noticed the application of  <g translate="no" id="........." />  seems to be related to paragraph styles that include bullet points etc. But it also seems to apply some what randomly as in the example below which contains no bullet points or character formatting.

 

<trans-unit resname="p[Body]" restype="x-paragraph" id="ID0EZYDQ">
<source xml:space="preserve" xml:lang="en-US">
<g translate="no" id="ID0EGZDQ" />Be sure to charge the battery fully before using it for the first time or after not using it for long periods.</source>
</trans-unit>​

 

Any help you could provide would be appreciated.

Thanks,

Liam

 

 

 

 
 
 

 

 

    This topic has been closed for replies.

    1 reply

    Community Expert
    June 23, 2022

    Hi,

     

    According to this discussion the attribute is correct:

    https://github.com/vslavik/poedit/issues/586

    How did you get this attribute? Do you have a symbol font or language None?

    What does your translation provider actually say? Why is this not correct?

     

    Best regards

     

    Winfried

    Liam.FAuthor
    New Participant
    June 28, 2022

    Hi Winfried,

     

    Thanks for your response and sorry for the late reply. The linked discussion talks about applying the "translation=no" attribute to a "trans-unit" not a <g> sub-element.

     

    To answer your questions:

    The <g translate="no" id="ID0EGZDQ" /> attribute is automatically applied by FrameMaker.

    The paragraph format language is set to English (US).

     

    From our translation provider "Several strings are marked as translate=”no”. This flag is normally used to mark strings which are out of scope. However in the files provided, this flag is present on unusual place. Being more specific – it’s at “g” element level, while it should be at “trans-unit” level" and "In other words: entire “trans-unit” need to be flagged instead of sub-elements for flag to work. As a result, the flag is not correctly processed by our tools and content is not excluded."

     

    Can I edit the XTS file to exclude "translate=no" from sub-elements?

     

    Regards,

    Liam

     

     

    Community Expert
    June 29, 2022

    Hi Liam,

     

    When you manually change this attribute to "yes", make a test, whether you can still import the changed XLIFF file.

    Also make some changes to the text and see, if the import still works.

     

    Did you check the paragraphs which have this attribute set to "no"? When your translation provider says that there are unusual places, then check this in your document! Do these paragraphs have a language set? The language of your other paragraphs? Or a different language or no language at all?

     

    Best regards

     

    Winfried