To allow your application to support different languages:
In the resource file for your application, use unique symbolic IDs, also known as a logical name, for all UI texts that need to appear on the screen.
The Symbian platform provides some unique symbolic IDs that you can use in your code, which means that the UI texts used for these IDs match those used elsewhere in the device. Do not define any values for these symbolic IDs.
For each language your application supports, create a resource file as follows:
Create a text file with the extension lNN , where NN is a two digit number that matches the Symbian platform language code for your target language.
The file naming suggestion reflects the Symbian platform convention, Symbian platform uses <application_name>_NN.rls .
Define all the symbolic IDs using the following syntax:
Each symbolic ID must be on its own line.
Repeat for each supported language.
Create a file to include the compiled localization files in your resource file, as follows:
Create a text file with the extension loc .
The file naming suggestion reflects the Symbian platform naming convention, Symbian platform uses <application_name>.rls .
Add #ifdef , #elif , and #include statements for including the appropriate languages in your application resource files. An example syntax is as follows:
Include your loc file in your resource file.
Add your supported language codes to the LANG statement in your project mmp file.
Build your resource files
Some IDEs do not fully support building resource files for different languages, so you may need to use the command line interface of the Symbian build chain.
Include the appropriate compiled resource files in your deployment package.
The following localization strategies are available:
Create an installation package for each language your application supports and add only the appropriate compiled resource file to the package.
Create an installation package that includes support for more than one language, which means there is more than one compiled resource file in the package. The mobile device user selects the desired language upon installation, and only the compiled resource file is installed.
Create an installation package that includes support for more than one language, which means there is more than one compiled resource file in the package.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.