diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-88917386-AD48-4C76-A1C7-46F0B1E85A18.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-88917386-AD48-4C76-A1C7-46F0B1E85A18.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,100 @@ + + + + + +Implementing +UI text localization +

To allow your application to support different languages:

+
    +
  1. 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.

    +
    +
  2. +
  3. For each language +your application supports, create a resource file as follows:

    +
      +
    1. Create a text +file with the extension lNN, where NN is a two digit +number that matches the Symbian OS language code for your target language.

      + +

      The file naming suggestion reflects the Symbian platform convention, Symbian +OS uses <application_name>_NN.rls.

      +
      +
    2. +
    3. Define all +the symbolic IDs using the following syntax:

      +#define symbolicID "value in target language" +

      Each symbolic ID must be on its own line.

    4. +
    5. Repeat for +each supported language.

    6. +
    +
  4. +
  5. Create a file +to include the compiled localization files in your resource file, as follows:

    +
      +
    1. Create a text +file with the extension loc.

      The file naming +suggestion reflects the Symbian platform naming convention, Symbian OS uses <application_name>.rls.

      +
    2. +
    3. Add #ifdef, #elif, +and #include statements for including the appropriate +languages in your application resource files. An example syntax is as follows:

      +#ifndef __LOCALIZATION_LOC__ +#define __LOCALIZATION_LOC__ + +#ifdef LANGUAGE_SC // language code for default +#include "..\data\localization.l01" + +#elif LANGUAGE_01 // language code for UK +#include "..\data\localization.l01" + +#endif +#endif +
    4. +
    +
  6. +
  7. Include your loc file +in your resource file.

  8. +
  9. Add your supported +language codes to the LANG statement in your project mmp file.

    +
  10. +
  11. 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.

    +
    +
  12. +
  13. Include the +appropriate compiled resource files in your deployment package.

    For +more information on deploying, see .

    +
  14. +
+

The following localization strategies are available:

+ +
\ No newline at end of file