cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rodddo
Level 3

Localisation of Custom Panel not showing

Hi

I'm trying to localise a custom java panel to the locale selected from with installanywhere.

The following code is called by setupUI

myLabel.setText(arg0.getValue("ChooseInstalDrivePanel.testTextField.label"));

I made a point of adding my key to the custom_en of my project. The text when the panel is run comes up blank (I have hard coded text on the panel that does display).

Any thoughts or point me to documentation would be great.

thanks

Rod
Labels (1)
0 Kudos
(2) Replies
rodddo
Level 3

I figured it out - to a degree. It works if I update custom_en in ..\InstallAnywhere 2008 Enterprise\resource\i18nresources.

Does this mean I should not be updating the locales under the project? This leaves the question. How do I add localise text from custom code at a project level?

At least I can work around it now.
0 Kudos
Yves_Kreis
Level 7

From the manual:

However, _ia must be added to the beginning of each key. For example, if the custom code utilized the key MyCode.foo.flotsam, it would need to be added as _ia.MyCode.foo.flotsam. This modification must be repeated for all custom code localized strings and for each supported locale.

Best Regards,
Yves
0 Kudos