Localize tag/element name

Post here questions and problems related to oXygen frameworks/document types.
Vangelis31
Posts: 6
Joined: Tue May 14, 2013 6:57 pm

Localize tag/element name

Post by Vangelis31 »

Hello,

Currently it's possible to change (in cc_config.xml) the name of an element base on an attribute inside the document as described in "https://www.oxygenxml.com/doc/versions/ ... uthor.html" :

Code: Select all


        <elementRenderings>
<render element="p" as="Paragraph"/>
<render element="p" as="Paragraphe" xml:lang="fr"/>
<render element="p" as="Absatz" xml:lang="de"/>
</elementRenderings>
We are looking for a way to render the element name based on the language of the application as describded in "https://www.oxygenxml.com/doc/versions/ ... e-language" and not based on an attribute of an element.

The final context is to be used in the Oxygen component.

Best regards.

Manuel
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Localize tag/element name

Post by Radu »

Hi Manuel,

This does work the way you want it to work.
So depending on the language defined for the Oxygen UI, Oxygen will pick up from the cc_config.xml the proper rendering if it has been tagged with the corresponding xml:lang value.
So for the example above, if Oxygen's UI is in German, "Absatz" will be used as a rendering for the paragraph.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply