Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to create an installation file for a multilingual application

Symbian OS applications can be localised by defining all the localisable text and images in language-specific resource and icon files. At install time, depending on the language selected by the user, only a single version of each set of language-specific files will be installed.

To do this, the PKG file should include:


Example

The PKG file shown below is examples\ToolsAndUtilities\Localise\HelloWorld.pkg.

; Languages
&EN,GE

; List of localised vendor names.
%{"Symbian Software Ltd", "Symbian Software Ltd"}

; Single, non-localised (global) vendor name.
:"Symbian Software Ltd"

; Package header.
; Two component names as we support English and German
#{"Hello World", "Hallo Welt"}, (0xE8000091), 1,0,0

; Language-neutral files to be installed
"HelloWorld.exe"-"!:\sys\bin\HelloWorld.exe"
"HelloWorld_reg.rsc" - "!:\private\10003a3f\import\apps\HelloWorld_reg.rsc"

; Lists of language-specific files. Only one from each list will be installed.
{
"HelloWorld.r01"
"HelloWorld.r03"
}-"!:\resource\apps\HelloWorld.rsc"

{
"HelloWorld01.mbm"
"HelloWorld03.mbm"
}-"!:\resource\apps\HelloWorld.mbm"

Notes: