In this recipe we look at how to support multiple languages in your user interface using UIComposer.
Load up UIComposer, either load the UI project we made earlier or create a new one. Be sure to add at least one widget with a Text
property, such as a Label
widget.
To handle language localization perform the following steps:
In UIComposer; select the menu Window | Language Table Window to enable the text editing functionality. You may need to click on the Reload button for the table to render properly. It should look like the following screenshot:
Right-click on the empty space to the right of English and select Add Column; a dialog box will appear. Enter the language name you want to support; in this example I am going to use French. Then click on OK and the column will be added.
In the designer, select your label. In the dialog area, click on a
Label
widget. In the Property window, set Text to @LABEL_TEXT@, as shown in the following...