Help Center

Local Navigation

Files required for localization

File required for localization

Description

Example

Resource header file

This file defines descriptive keys for each localized string. When the BlackBerry® Integrated Development Environment builds a project, it creates a resource interface with Resource appended to the .rrh file name. For example, if you create AppName.rrh, the interface is named AppNameResource.

AppName.rrh

Resource content file (root locale)

This file maps resource keys to string values for the root (global) locale. It has the same name as the resource header file.

AppName.rrc

Resource content file (specific locales)

This file maps resource keys to string values for specific locales (language and country). Files have the same name as the resource header file, followed by an underscore (_) and the language code, and then, optionally, an underscore (_) and country code.

Save resource content files in the folder where the .java file is located. For example, in the folder that contains CountryInfo.java, save CountryInfo.rrc (root locale), CountryInfo_en.rrc (English), and CountryInfo_fr.rrc (French).

AppName_en.rrc

AppName_en_GB.rrc

AppName_fr.rrc

Initialization file

This file initializes the resource bundle mechanism. You require this file only when you compile resources as a separate project.

init.java

Index


Was this information helpful? Send us your comments.