ResourceBundles
. All you have to do is, edit (translate) the properties files RADi generates.
Tip: You should not start internationalization until (you think) the UI is finished so far. |
![]() |
First, select the locales, you wish to support. |
![]() |
If the default locale doesn't match your intended default locale (and only then), change it. |
![]() |
From the table's support column, select the objects, you wish to internationalize and, for every object, select the language-dependent properties. |
![]() |
If no properties files have been generated before or to update all properties files, select |
i18n
directory inside the project directory. If you package an internationalized application into a JAR, don't forget to include the i18n
directory.
Note: If you internationalize additional items (e.g. dialog titles or dynamic messages), then create your own properties files, do not use the ones generated by RADi. |
ResourceBundles
or properties files, you might want to study the "Internationalization Trail" of SUN's "Java Tutorial".
![]() |
LabelBundle.properties - this is the default properties file for labels, it contains the spanish translation. |
![]() |
LabelBundle_en.properties - the english translation for all labels. |
![]() |
LabelBundle_de.properties - the german translation for all labels. |
![]() |
MenuBundle.properties - this is the default properties file for menus and menu items, it contains the spanish translation. |
![]() |
MenuBundle_en.properties - the english translation for all menus and menu items. |
![]() |
MenuBundle_de.properties - the german translation for all menus and menu items. |
MenuBundle.properties | MenuBundle_de.properties | MenuBundle_en.properties | |
... | ... | ... | |
i18n.menu0.mnemonic = A | i18n.menu0.mnemonic = D | i18n.menu0.mnemonic = F | |
i18n.menu0.text = Archivo | i18n.menu0.text = Datei | i18n.menu0.text = File | |
i18n.menu1.mnemonic = E | i18n.menu1.mnemonic = B | i18n.menu1.mnemonic = E | |
i18n.menu1.text = Editar | i18n.menu1.text = Bearbeiten | i18n.menu1.text = Edit | |
i18n.menu2.mnemonic = Y | i18n.menu2.mnemonic = H | i18n.menu2.mnemonic = H | |
i18n.menu2.text = Ayuda | i18n.menu2.text = Hilfe | i18n.menu2.text = Help | |
... | ... | ... |
ResourceBundles
corresponding to the user's locale. Then the runtime will set component's properties to the one it gets from the appropriate ResourceBundle
.
Note: Internationalized actions and tab data are special cases. RADi does it's best to synchronize internationalization information and if you are somewhat conscious of what you are doing, everything should work well. |
Note: R-Bean instances will not be affected by a change of the current locale (see R-Beans and Internationalization). |