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
Please sign in to leave a comment.
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
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
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,.
This thread is really useful!!!!! Thank you!!!