Page 1 of 1

Custom actions i18n in Component

Posted: Mon Oct 15, 2012 6:43 pm
by CheryBen
Hi again, it seems that custom actions are not internationalized in Oxygen Component.
My framework work well with Author version and my translation is ok. But in Component version, i'm using 2 methods of the AuthorComponentProvider class.
getAuthorCommonActions gives me actions with translation but
getAuthorExtensionActions gives me actions with keys only. It seems that the translation.xml file is not used.

Thanks for all,
Benoît Chéry.

Re: Custom actions i18n in Component

Posted: Mon Oct 15, 2012 6:46 pm
by CheryBen
Other information :
In my framework file, i have this :
<field name="name">
<String>${i18n(extract.hotspot_description)}</String>
</field>

It displays extract.hotspot_description

Re: Custom actions i18n in Component

Posted: Tue Oct 16, 2012 12:01 pm
by Radu
Hi Benoit,
It seems that the translation.xml file is not used.
I suspect the same thing, when the component fails to translate the key it falls back to the actual key value.
The Author Component Sample Project has a "resources" folder in which there is a frameworks.zip.jar. Are you sure that the entire up-to-date directory of your framework is properly packed (including the translation file) into the file frameworks.zip.jar? This would explain also your other problem, with the styles filter extension not working.

If possible you can also send us directly (support@oxygenxml.com) the entire frameworks.zip.jar and we'll try to take a look at it.

Regards,
Radu

Re: Custom actions i18n in Component

Posted: Tue Oct 16, 2012 3:16 pm
by CheryBen
Hi radu, the package of my framework should be correct while it works fine in Author.
I've just test that the xsl whick should be used for pasting external content is also not used.
There should be a path problem.

I will send you the frameworks.zip.jar file without the libs, cause that's too big.

Thanks,
Benoît.

Re: Custom actions i18n in Component

Posted: Wed Oct 17, 2012 10:15 am
by CheryBen
Hi, i sent the file to the support, yesterday at 14PM(Paris), and i still have no answer, did you receive it correctly?

Re: Custom actions i18n in Component

Posted: Wed Oct 17, 2012 11:14 am
by Radu
Hi Benoit,

Sorry for the delay, we are getting close to releasing Oxygen 14.1 so it's a very busy time for us.
I will try to prepare an email for you in an hour. When we find a solution we'll also update the forum thread with it.

Regards,
Radu