Localization of plugin.xml

Hi,

I found this guide: http://confluence.jetbrains.com/display/IDEADEV/Localization+Guide but unfortunately there is nothing about how to localize Actions and other things in the plugin.xml file.
Is there a way to do this, or a best practice, how these things are normally localized?

Thanks
Jan

0
4 comments
Avatar
Permanently deleted user

Hi Jan,

I believe you need to make your own custom Bundle class to reference your localized messages.

For instance if you look at the struts2 plugin, it has an action which references the bundle here
And here is the StrutsBundle code itself

Cheers,
Alan

0
Avatar
Permanently deleted user

Thanks Alan,

sometimes it's just too obvious. I already have the resources bundle but I didn't think about setting the values in the constructor.

Cheers
Jan

0

For every action, you can define the string action.<action_id>.text for the localized text of the action and action.<action_id>.description for its localized description,.

0
Avatar
Permanently deleted user

This thread is really useful!!!!! Thank you!!!

0

Please sign in to leave a comment.