PreviousNext

Translation support

The versioning support that is provided by the BlackBerry® IDE resource editor facilitates creating resources in different languages. The BlackBerry IDE resource editor enables developers to make changes to resource values in their native language, or original locale. Translators can identify language resources that have changed and that require translation.

Select an original locale

    1. In the Resource Editor, click Options.
    2. Select the Use versioning highlighting from given resource check box and, from the drop-down list, select the original locale. The locales that appear in this list are locales that have already been created for the application. See "Create resource content files" for more information.

The original locale contains resource values in the developer's native language. Developers should identify an original locale for each resource header (.rrh) file.

When an original locale is selected, a hash table is generated for each of the values in the original locale. The resource editor compares the expected original value from the original locale, saved in the translations, with the current value in the original locale.

Out-of-date resource values are highlighted. When resource values are changed on the original locale tab, in the resource editor, the corresponding resource values on the other locale tabs are highlighted.

When resource values are re-translated in the resource editor, each resource can be marked correct. Right-click a resource, and then click Mark translation as correct to remove the highlighting. Right-click a resource, and then click Mark translation as incorrect to mark a resource for translation.

Validate resources

Before you send strings for translation, you can verify that resources are still used.

    1. In the Resource Editor, click Validate.
    2. Click Yes.

The BlackBerry® IDE searches for the resources listed in the resource editor in all .java files in the workspace. In the Find in files pane, the BlackBerry IDE displays any resources that are not used in the current workspace.

Related topic


   BlackBerry