Multilingual language support for Frameworks

Are you missing a feature? Request its implementation here.
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Multilingual language support for Frameworks

Post by patrick »

Hi,

are there any plans to support multiple languages in the custom frameworks? We have a custom framework which should have german descriptions for actions/buttons on a german installation and the same in english for our english colleagues.

Thanks,
Patrick
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Multilingual language support for Frameworks

Post by Radu »

Hi Patrick,

No, not yet. But we've had this request before so this will probably get done in a future version, I've added your vote for it.

In the meantime all action names are stored in the frameworkName.framework file which is XML and you could try to automatically post-process it to replace the English action names and tooltips with the German ones and create another frameworkName_de.framework for the German installation.

Then depending on the client's used language he will download the framework directory with English frameworkName.framework or the one with German frameworkName_de.framework.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yann1806
Posts: 22
Joined: Fri Aug 09, 2013 11:03 am

Re: Multilingual language support for Frameworks

Post by yann1806 »

Hi Radu,

wondering if there's been a change on this question since it was answered?

I need to have a schema that would support multiple languages (the whole document is in a single language). Then the CSS picks up on it via the "lang" selector (works very nicely :) ). But ideally I don't want to have to define n schemas for n languages, a single schema with some sort of language parameter would be a much better choice, if there is that kind of option?

Thanks

Yannick
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Multilingual language support for Frameworks

Post by Radu »

Hi Yannick,

The original question in this thread was about supporting multiple languages when defining custom Author actions (which appear on contextual menus, main menus or toolbars).
This is indeed supported in Oxygen (probably starting with Oxygen 14.2 afak).
For example if in the Oxygen Preferences->Document Type Association page you edit the DITA document type, in the Author tab there is an Actions tab. Each action defined there uses as an action name editor variables like ${i18n(bold)} which are then mapped in a special translation XML file:

OXYGEN_INSTALL_DIR\frameworks\dita\i18n\translation.xml

So when a German user for example starts Oxygen and edits a DITA topic, all toolbar actions will have German names and tooltips.
More about this feature can be read in this topic:

http://www.oxygenxml.com/doc/ug-oxygen/ ... works.html

But you seem to want something else.
You want to have a single schema associated to the XML document and somehow have the element names in the schema translated in multiple languages. If I understood you wrong, maybe you could give me additional details.
I do not know how this would work. In an XML Schema the element names need to be present there before it is used to validate and provide content completion for the XML document.
Maybe as a possible solution you could have an XML Schema template file which uses for element names something like ${i18n(elem_name1)}. And then apply an XSLT 2.0 stylesheet on it which reads a certain translation.xml document and depending on how many languages are present there automatically produces multiple schemas, each one with its own language. All these schemas would be included in a master XML Schema which would serve as the main schema used for validation and content completion.

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