|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __PKGLANGUAGE_H__ |
|
20 #define __PKGLANGUAGE_H__ |
|
21 |
|
22 #ifdef _MSC_VER |
|
23 #pragma warning(disable: 4786) // identifier was truncated to '255' characters in the debug information |
|
24 #pragma warning(disable: 4503) // decorated name length exceeded, name was truncated |
|
25 #endif |
|
26 |
|
27 typedef struct |
|
28 { |
|
29 wchar_t* iName; |
|
30 unsigned long iId; |
|
31 } SKeyword; |
|
32 |
|
33 /** |
|
34 class PkgLanguage |
|
35 Lookup table for the languages supported |
|
36 |
|
37 @internalComponent |
|
38 @released |
|
39 */ |
|
40 class PkgLanguage |
|
41 { |
|
42 public: |
|
43 typedef enum |
|
44 { |
|
45 //This list is lifted directly from E32std.h |
|
46 ELangTest = 0, |
|
47 /** UK English. */ |
|
48 ELangEnglish = 1, |
|
49 /** French. */ |
|
50 ELangFrench = 2, |
|
51 /** German. */ |
|
52 ELangGerman = 3, |
|
53 /** Spanish. */ |
|
54 ELangSpanish = 4, |
|
55 /** Italian. */ |
|
56 ELangItalian = 5, |
|
57 /** Swedish. */ |
|
58 ELangSwedish = 6, |
|
59 /** Danish. */ |
|
60 ELangDanish = 7, |
|
61 /** Norwegian. */ |
|
62 ELangNorwegian = 8, |
|
63 /** Finnish. */ |
|
64 ELangFinnish = 9, |
|
65 /** American. */ |
|
66 ELangAmerican = 10, |
|
67 /** Swiss French. */ |
|
68 ELangSwissFrench = 11, |
|
69 /** Swiss German. */ |
|
70 ELangSwissGerman = 12, |
|
71 /** Portuguese. */ |
|
72 ELangPortuguese = 13, |
|
73 /** Turkish. */ |
|
74 ELangTurkish = 14, |
|
75 /** Icelandic. */ |
|
76 ELangIcelandic = 15, |
|
77 /** Russian. */ |
|
78 ELangRussian = 16, |
|
79 /** Hungarian. */ |
|
80 ELangHungarian = 17, |
|
81 /** Dutch. */ |
|
82 ELangDutch = 18, |
|
83 /** Belgian Flemish. */ |
|
84 ELangBelgianFlemish = 19, |
|
85 /** Australian English. */ |
|
86 ELangAustralian = 20, |
|
87 /** Belgian French. */ |
|
88 ELangBelgianFrench = 21, |
|
89 /** Austrian German. */ |
|
90 ELangAustrian = 22, |
|
91 /** New Zealand English. */ |
|
92 ELangNewZealand = 23, |
|
93 /** International French. */ |
|
94 ELangInternationalFrench = 24, |
|
95 /** Czech. */ |
|
96 ELangCzech = 25, |
|
97 /** Slovak. */ |
|
98 ELangSlovak = 26, |
|
99 /** Polish. */ |
|
100 ELangPolish = 27, |
|
101 /** Slovenian. */ |
|
102 ELangSlovenian = 28, |
|
103 /** Taiwanese Chinese. */ |
|
104 ELangTaiwanChinese = 29, |
|
105 /** Hong Kong Chinese. */ |
|
106 ELangHongKongChinese = 30, |
|
107 /** Peoples Republic of China Chinese. */ |
|
108 ELangPrcChinese = 31, |
|
109 /** Japanese. */ |
|
110 ELangJapanese = 32, |
|
111 /** Thai. */ |
|
112 ELangThai = 33, |
|
113 /** Afrikaans. */ |
|
114 ELangAfrikaans = 34, |
|
115 /** Albanian. */ |
|
116 ELangAlbanian = 35, |
|
117 /** Amharic. */ |
|
118 ELangAmharic = 36, |
|
119 /** Arabic.*/ |
|
120 ELangArabic = 37, |
|
121 /** Armenian. */ |
|
122 ELangArmenian = 38, |
|
123 /** Tagalog. */ |
|
124 ELangTagalog = 39, |
|
125 /** Belarussian. */ |
|
126 ELangBelarussian = 40, |
|
127 /** Bengali. */ |
|
128 ELangBengali = 41, |
|
129 /** Bulgarian. */ |
|
130 ELangBulgarian = 42, |
|
131 /** Burmese. */ |
|
132 ELangBurmese = 43, |
|
133 /** Catalan. */ |
|
134 ELangCatalan = 44, |
|
135 /** Croation. */ |
|
136 ELangCroatian = 45, |
|
137 /** Canadian English. */ |
|
138 ELangCanadianEnglish = 46, |
|
139 /** International English. */ |
|
140 ELangInternationalEnglish = 47, |
|
141 /** South African English. */ |
|
142 ELangSouthAfricanEnglish = 48, |
|
143 /** Estonian. */ |
|
144 ELangEstonian = 49, |
|
145 /** Farsi. */ |
|
146 ELangFarsi = 50, |
|
147 /** Canadian French. */ |
|
148 ELangCanadianFrench = 51, |
|
149 /** Gaelic. */ |
|
150 ELangScotsGaelic = 52, |
|
151 /** Georgian. */ |
|
152 ELangGeorgian = 53, |
|
153 /** Greek. */ |
|
154 ELangGreek = 54, |
|
155 /** Cyprus Greek. */ |
|
156 ELangCyprusGreek = 55, |
|
157 /** Gujarati. */ |
|
158 ELangGujarati = 56, |
|
159 /** Hebrew. */ |
|
160 ELangHebrew = 57, |
|
161 /** Hindi. */ |
|
162 ELangHindi = 58, |
|
163 /** Indonesian. */ |
|
164 ELangIndonesian = 59, |
|
165 /** Irish. */ |
|
166 ELangIrish = 60, |
|
167 /** Swiss Italian. */ |
|
168 ELangSwissItalian = 61, |
|
169 /** Kannada. */ |
|
170 ELangKannada = 62, |
|
171 /** Kazakh. */ |
|
172 ELangKazakh = 63, |
|
173 /** Kmer. */ |
|
174 ELangKhmer = 64, |
|
175 /** Korean. */ |
|
176 ELangKorean = 65, |
|
177 /** Lao. */ |
|
178 ELangLao = 66, |
|
179 /** Latvian. */ |
|
180 ELangLatvian = 67, |
|
181 /** Lithuanian. */ |
|
182 ELangLithuanian = 68, |
|
183 /** Macedonian. */ |
|
184 ELangMacedonian = 69, |
|
185 /** Malay. */ |
|
186 ELangMalay = 70, |
|
187 /** Malayalam. */ |
|
188 ELangMalayalam = 71, |
|
189 /** Marathi. */ |
|
190 ELangMarathi = 72, |
|
191 /** Moldovian. */ |
|
192 ELangMoldavian = 73, |
|
193 /** Mongolian. */ |
|
194 ELangMongolian = 74, |
|
195 /** Norwegian Nynorsk. */ |
|
196 ELangNorwegianNynorsk = 75, |
|
197 /** Brazilian Portuguese. */ |
|
198 ELangBrazilianPortuguese = 76, |
|
199 /** Punjabi. */ |
|
200 ELangPunjabi = 77, |
|
201 /** Romanian. */ |
|
202 ELangRomanian = 78, |
|
203 /** Serbian. */ |
|
204 ELangSerbian = 79, |
|
205 /** Sinhalese. */ |
|
206 ELangSinhalese = 80, |
|
207 /** Somali. */ |
|
208 ELangSomali = 81, |
|
209 /** International Spanish. */ |
|
210 ELangInternationalSpanish = 82, |
|
211 /** American Spanish. */ |
|
212 ELangLatinAmericanSpanish = 83, |
|
213 /** Swahili. */ |
|
214 ELangSwahili = 84, |
|
215 /** Finland Swedish. */ |
|
216 ELangFinlandSwedish = 85, |
|
217 ELangReserved1 = 86, // reserved for future use |
|
218 /** Tamil. */ |
|
219 ELangTamil = 87, |
|
220 /** Telugu. */ |
|
221 ELangTelugu = 88, |
|
222 /** Tibetan. */ |
|
223 ELangTibetan = 89, |
|
224 /** Tigrinya. */ |
|
225 ELangTigrinya = 90, |
|
226 /** Cyprus Turkish. */ |
|
227 ELangCyprusTurkish = 91, |
|
228 /** Turkmen. */ |
|
229 ELangTurkmen = 92, |
|
230 /** Ukrainian. */ |
|
231 ELangUkrainian = 93, |
|
232 /** Urdu. */ |
|
233 ELangUrdu = 94, |
|
234 ELangReserved2 = 95, // reserved for future use |
|
235 /** Vietnamese. */ |
|
236 ELangVietnamese = 96, |
|
237 /** Welsh. */ |
|
238 ELangWelsh = 97, |
|
239 /** Zulu. */ |
|
240 ELangZulu = 98, |
|
241 /** Basque */ |
|
242 ELangBasque = 102, |
|
243 /** Galician */ |
|
244 ELangGalician = 103, |
|
245 /** @deprecated 6.2 */ |
|
246 ELangOther = 99, |
|
247 ELangIllegal = 100, |
|
248 ELangNone = 0xFFFF |
|
249 }TLanguage; |
|
250 |
|
251 static unsigned long GetLanguageCode(std::wstring aLang); |
|
252 static std::wstring GetLanguageName(unsigned long aCode); |
|
253 }; |
|
254 |
|
255 #endif //__PKGLANGUAGE_H__ |