Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

SIS packages and localized resource files

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Platform(s): All Symbian
Created: User:Technical writer 1 (23 Feb 2006)
Last edited: lpvalente (11 Aug 2014)


SIS packages and localized resource files


After adding multi-language support to an application by using localized resource files, the final step is to add them into a .pkg file and generate the SIS package.
There are two ways to do this: Resources can be added into a .pkg file either as language-dependent or language-independent files.
Language-independent files
These files are always copied to destination, regardless of language settings or user's choices.
 "MyApp.r01" - "!:\system\apps\MyApp\MyApp.r01" ; 01=English
 "MyApp.r02" - "!:\system\apps\MyApp\MyApp.r02" ; 02=French
 "MyApp.r03" - "!:\system\apps\MyApp\MyApp.r03" ; 03=German
 ; etc (see TLanguage in e32std.h for all lang. enumerations)
The application framework decides which one to load during application startup, based on the current language setting. Copying all the resource files to the device will increase memory consumption, but on the other hand the application will follow the current language setting of the device (restart may be required).
Language-dependent files
Specifies a list of files, of which only one will be installed, depending on the language selected by the user during installation. The ordering and number of the files must match the languages that were specified in the languages line of the .pkg file.
    { "MyApp.r01",
      "MyApp.r03" } - "!:\system\apps\MyApp\MyApp.rsc"
Since only one of the localized resource files is copied, the application cannot follow the language settings of the device. Changing the language of the application requires a reinstall.


The preferred method for installing resource files depends on the combined size of all localized resources and whether the application should be able to follow the language setting of the device.

This page was last modified on 11 August 2014, at 19:03.
40 page views in the last 30 days.