How to change language?

Hi,
how can I change language tooltips in EclipseTab?
Where can I add localized file with translated text?

All text is stored in the “TextManager” which can be accessed through “DockController.getTexts()”. There you can replace any text you’d like.

If you want to make use of ResourceBundles, I suggest you write some code like this:


ResourceBundle bundle = ResourceBundle.getBundle(....); // you translation
controller.getTexts().setScheme( Priority.CLIENT, new DefaultTextScheme( bundle ));```

You can also use CControl.setLanguage to quickly select one of the existing translations.

Can I add my translate file to library (text_pl.properties) and then
ccontrol.setLanguage(new Locale(“pl”));

Yes. You’d have to repack the jar-files and put your new files at the same location where the other properties-files are, but the framework will use your files if they are present.