Page 1 of 1

i18n for ${ask()} Variables

Posted: Mon Feb 24, 2014 5:32 pm
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...

Re: i18n for ${ask()} Variables

Posted: Mon Feb 24, 2014 6:18 pm
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

Re: i18n for ${ask()} Variables

Posted: Mon Feb 24, 2014 11:03 pm
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

Re: i18n for ${ask()} Variables

Posted: Tue Feb 25, 2014 9:19 am
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

Re: i18n for ${ask()} Variables

Posted: Fri May 23, 2014 3:21 pm
by Radu
Hi Mike,

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

Regards,
Radu