Custom actions i18n in Component

Post here questions and problems related to oXygen frameworks/document types.
CheryBen
Posts: 24
Joined: Tue Jun 05, 2012 10:34 am

Custom actions i18n in Component

Post 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.
CheryBen
Posts: 24
Joined: Tue Jun 05, 2012 10:34 am

Re: Custom actions i18n in Component

Post 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
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom actions i18n in Component

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
CheryBen
Posts: 24
Joined: Tue Jun 05, 2012 10:34 am

Re: Custom actions i18n in Component

Post 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.
CheryBen
Posts: 24
Joined: Tue Jun 05, 2012 10:34 am

Re: Custom actions i18n in Component

Post 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?
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom actions i18n in Component

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply