- You identify messages that need be localized
- You place that in Messages.properties. One can choose to have this file for each package, or you could just have one such file for the whole module/plugin.
- You run
mvn compileonce to re-generate
- Update your code to use the newly generated message formatting method
As usual, looking at how the core code does this might help you get the idea of how to do this.
Note: If your message contains apostrophe character ('), then you need to escape it with another apostrophe character (i.e. ''). So "that's" becomes "that''s".
Marking messages in jelly files