|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE reference |
|
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
12 <reference id="GUID-5D508751-C824-48E4-A6E3-0C5EA05DEC99" xml:lang="en"><title>PKG |
|
13 file format to support multilingual application installation</title><abstract><p>Symbian platform applications can be localized by defining all |
|
14 the localizable text and images in language-specific resource and icon files. |
|
15 For more information on localising the resource files, see <xref href="GUID-F35C5336-907C-5B2A-92C6-F8883D49996E.dita">How |
|
16 to localise resources</xref>. The PKG file must contain <xref href="GUID-9D5F3B5E-37FB-5156-808B-F92519412A7F.dita">language-specific |
|
17 resource and icon files</xref> along with the elements required for simple |
|
18 installation. </p></abstract><prolog><metadata><keywords/></metadata></prolog><refbody> |
|
19 <section> <title>Example</title> <p>The following PKG file is provided |
|
20 in <filepath>examples\ToolsAndUtilities\Localise\</filepath>. </p> <codeblock id="GUID-D47FB4EB-939E-5065-B9E3-1AD9E53A0EF4" xml:space="preserve">; Install file for multi-lingual application supporting two language variants |
|
21 |
|
22 ; List of languages supported |
|
23 &EN,GE |
|
24 |
|
25 ; List of localised vendor names for each supported language |
|
26 %{"Nokia Corporation", "Nokia Corporation"} |
|
27 |
|
28 ; Single, non-localised (global) vendor name. |
|
29 :"Nokia Corporation" |
|
30 |
|
31 ; Package header |
|
32 ; Component names specified in English and German as these are supported languages |
|
33 #{"Hello World", "Hallo Welt"}, (0xE8000096), 1,0,0 |
|
34 |
|
35 ; Language-neutral files to be installed irrespective of the languages supported on the Symbian device. |
|
36 |
|
37 "HelloWorld.exe"-"!:\sys\bin\HelloWorld.exe" |
|
38 "HelloWorld_reg.rsc" - "!:\private\10003a3f\import\apps\HelloWorld_reg.rsc" |
|
39 |
|
40 ; List of language-specific files; installed based on the language supported by the Symbian device. |
|
41 if supported_language=01 |
|
42 "HelloWorld.r01" -"!:\resource\apps\HelloWorld.r01" ;English version of the resource file |
|
43 "HelloWorld01.mbm" -"!:\resource\apps\HelloWorld01.mbm" ;language-specific icon file |
|
44 endif |
|
45 |
|
46 if supported_language=03 |
|
47 "HelloWorld.r03" -"!:\resource\apps\HelloWorld.r03" ;German version of the resource file |
|
48 "HelloWorld03.mbm" -"!:\resource\apps\HelloWorld03.mbm" ;language-specific icon file |
|
49 endif</codeblock> </section> |
|
50 </refbody></reference> |