i18n for ${ask()} Variables

Post here questions and problems related to oXygen frameworks/document types.
odaata
Posts: 26
Joined: Wed Apr 10, 2013 12:34 pm
Location: Utrecht, Netherlands

i18n for ${ask()} Variables

Post by odaata »

Hi all,

I have a question about the i18n functionality in a custom framework. Is there any way to use the i18n function within calls to ${ask()} during Actions? I just finished implementing the new i18n functionality in my CSS and I just realized that the ${ask()} instances are the last thing that I'm not sure how to translate. I've tried just putting the ${i18n()} tag within an ask(), but it just gives me that string back out.

Thanks in advance for any guidance you can give...
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: i18n for ${ask()} Variables

Post by Radu »

Hi Mike,

Just to see if I understand your situation, you have defined an Author action which invokes an author operation like ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation with a parameter like:

Code: Select all

<abc>${ask('${i18n(show.table.properties)}')}</abc>
and you expect the key to be expanded to the translated value and then shown in the dialog.
If this is the case, indeed this is a small bug on our part and we'll try to fix it in a future version.
If not, maybe you could give us more details about your use case.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
odaata
Posts: 26
Joined: Wed Apr 10, 2013 12:34 pm
Location: Utrecht, Netherlands

Re: i18n for ${ask()} Variables

Post by odaata »

Yes, that's exactly what I tried and it just returns the ${i18n(show.table.properties)} string instead of expanding it. Does that work for you in version 15.2? Maybe I had something incorrectly configured?

Thanks for your help
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: i18n for ${ask()} Variables

Post by Radu »

Hi,

As I said this is a small bug on our part and we'll try to fix it in the next version of Oxygen (version 16 in the summer of 2014).

What you could try to do would be to make your own implementation of the ro.sync.ecss.extensions.api.AuthorOperation interface which shows a small dialog implemented in java Swing to the end user. The Java sources of the ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation operation are available in the Author SDK:

http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: i18n for ${ask()} Variables

Post by Radu »

Hi Mike,

Oxygen 16.0 was released and has the fix for your reported problem.

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