| Singleton for the Internationalization (I18N)
[1] HOWTO TRANSLATE JUMP IN MY OWN LANGUAGE
Copy theses files and add the locales extension for your language and country instead of the *.
- resources/jump_*.properties
- com/vividsolutions/jump/workbench/ui/plugin/KeyboardPlugIn_*.html
[2] HOWTO TRANSLATE MY PLUGIN AND GIVE THE ABILITY TO TRANSLATE IT
Use theses methods to use your own *.properties files :
[Michael Michaud 2007-03-23] the 3 following methods have been deactivated
com.vividsolutions.jump.I18N#setPlugInRessource(String, String)
com.vividsolutions.jump.I18N#get(String, String)
com.vividsolutions.jump.I18N#getMessage(String, String, Object[])
you still can use plugInsResourceBundle (as in Pirol's plugin)
And use jump standard menus
Code example : [Michael Michaud 2007-03-23 : the following code example
is no more valid and has to be changed]
public class PrintPlugIn extends AbstractPlugIn
{
private String name = "print";
public void initialize(PlugInContext context) throws Exception
{
I18N.setPlugInRessource(name, "org.agil.core.jump.plugin.print");
context.getFeatureInstaller().addMainMenuItem(this,
new String[]
{MenuNames.TOOLS,I18N.get(name, "print")},
I18N.get(name, "print"), false, null, null);
}
...
TODO :I18N (1) Improve translations
TODO :I18N (2) Separate config (customization) and I18N
TODO :I18N (3) Explore and discuss about I18N integration and Jakarta Common Ressources
(using it as a ressource interface)
author: Basile Chandesris - See Also: com.vividsolutions.jump.workbench.ui.MenuNames See Also: See Also: com.vividsolutions.jump.workbench.ui.VTextIcon See Also: text rotation |