org.sonar.api.i18n.I18n is available for server extensions. Batch extensions are not supported yet and can not load bundles.
handle a Language Pack for the Sonar Community
A Language Pack defines bundles for the Sonar Core Platform and for Sonar Community Plugins.
Creating a new Language Pack
The easiest way to create a new pack is to copy the French Pack and to adapt it to your language.
From there, you can regularly check bundles from:
- The English Pack - which contains all the bundles of the Sonar Core Platform that should be translated (you are not obliged to translate them all at once, you can proceed with baby steps)
- The following Sonar Community Plugins which support L10n (as of August 2012):
- Tab Metrics
- Useless Code Tracker
- Violation Density
- Widget Lab
Maintaining a Language Pack
You can regularly check the English Pack and the Community Plugins listed above to know if you have to add/update bundles in your Language Pack.
Each time you add a new bundle or you update an existing one, please create a JIRA ticket on the corresponding L10n component in order to track changes.
How to localize an independant plugin