|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\include\e32lang.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __E32LANG_H__ |
|
19 #define __E32LANG_H__ |
|
20 |
|
21 |
|
22 /** |
|
23 * |
|
24 * Extended Languages (aka three-digit locales) |
|
25 * |
|
26 * In order to support language variants for specific network operators, the |
|
27 * language can be extended to 16 bits by pairing it with a dialect. Up to 1024 |
|
28 * languages and 63 dialects are supported. For example, American Sprint is |
|
29 * ELangAmerican with EDialectSprint = 10 + 1024 = 1034. |
|
30 * |
|
31 * The locale-specific resource files have a file extension of the form RNNNNN, |
|
32 * where NNNNN is five digits. For compatibility reasons, any leading zeros are |
|
33 * ignored, so that .R10 and R00010 are considered identical. |
|
34 * The locale content for American Sprint is stored in .R1034 (or .R01034) |
|
35 */ |
|
36 |
|
37 /** |
|
38 @publishedAll |
|
39 @released |
|
40 |
|
41 Language identity enumeration. |
|
42 |
|
43 Each value in the enumeration uniquely identifies a language. |
|
44 |
|
45 If another value is needed, one of the following actions should be taken: Either |
|
46 the Internationalization Technology Architect in Symbian should be contacted or |
|
47 a defect should be raised against EUser. Unallocated values should not have |
|
48 meanings inferred or extrapolated from already allocated values. |
|
49 |
|
50 @see BaflUtils::NearestLanguageFile |
|
51 @see BaflUtils::GetDowngradePath |
|
52 */ |
|
53 enum TLanguage |
|
54 { |
|
55 /** |
|
56 Enumerated value used for testing - does not represent a language. |
|
57 */ |
|
58 ELangTest = 0, |
|
59 |
|
60 /** UK English. */ |
|
61 ELangEnglish = 1, |
|
62 |
|
63 /** French. */ |
|
64 ELangFrench = 2, |
|
65 |
|
66 /** German. */ |
|
67 ELangGerman = 3, |
|
68 |
|
69 /** Spanish. */ |
|
70 ELangSpanish = 4, |
|
71 |
|
72 /** Italian. */ |
|
73 ELangItalian = 5, |
|
74 |
|
75 /** Swedish. */ |
|
76 ELangSwedish = 6, |
|
77 |
|
78 /** Danish. */ |
|
79 ELangDanish = 7, |
|
80 |
|
81 /** Norwegian. */ |
|
82 ELangNorwegian = 8, |
|
83 |
|
84 /** Finnish. */ |
|
85 ELangFinnish = 9, |
|
86 |
|
87 /** American. */ |
|
88 ELangAmerican = 10, |
|
89 |
|
90 /** Swiss French. */ |
|
91 ELangSwissFrench = 11, |
|
92 |
|
93 /** Swiss German. */ |
|
94 ELangSwissGerman = 12, |
|
95 |
|
96 /** Portuguese. */ |
|
97 ELangPortuguese = 13, |
|
98 |
|
99 /** Turkish. */ |
|
100 ELangTurkish = 14, |
|
101 |
|
102 /** Icelandic. */ |
|
103 ELangIcelandic = 15, |
|
104 |
|
105 /** Russian. */ |
|
106 ELangRussian = 16, |
|
107 |
|
108 /** Hungarian. */ |
|
109 ELangHungarian = 17, |
|
110 |
|
111 /** Dutch. */ |
|
112 ELangDutch = 18, |
|
113 |
|
114 /** Belgian Flemish. */ |
|
115 ELangBelgianFlemish = 19, |
|
116 |
|
117 /** Australian English. */ |
|
118 ELangAustralian = 20, |
|
119 |
|
120 /** Belgian French. */ |
|
121 ELangBelgianFrench = 21, |
|
122 |
|
123 /** Austrian German. */ |
|
124 ELangAustrian = 22, |
|
125 |
|
126 /** New Zealand English. */ |
|
127 ELangNewZealand = 23, |
|
128 |
|
129 /** International French. */ |
|
130 ELangInternationalFrench = 24, |
|
131 |
|
132 /** Czech. */ |
|
133 ELangCzech = 25, |
|
134 |
|
135 /** Slovak. */ |
|
136 ELangSlovak = 26, |
|
137 |
|
138 /** Polish. */ |
|
139 ELangPolish = 27, |
|
140 |
|
141 /** Slovenian. */ |
|
142 ELangSlovenian = 28, |
|
143 |
|
144 /** Taiwanese Chinese. */ |
|
145 ELangTaiwanChinese = 29, |
|
146 |
|
147 /** Hong Kong Chinese. */ |
|
148 ELangHongKongChinese = 30, |
|
149 |
|
150 /** Peoples Republic of China's Chinese. */ |
|
151 ELangPrcChinese = 31, |
|
152 |
|
153 /** Japanese. */ |
|
154 ELangJapanese = 32, |
|
155 |
|
156 /** Thai. */ |
|
157 ELangThai = 33, |
|
158 |
|
159 /** Afrikaans. */ |
|
160 ELangAfrikaans = 34, |
|
161 |
|
162 /** Albanian. */ |
|
163 ELangAlbanian = 35, |
|
164 |
|
165 /** Amharic. */ |
|
166 ELangAmharic = 36, |
|
167 |
|
168 /** Arabic. */ |
|
169 ELangArabic = 37, |
|
170 |
|
171 /** Armenian. */ |
|
172 ELangArmenian = 38, |
|
173 |
|
174 /** Tagalog. */ |
|
175 ELangTagalog = 39, |
|
176 |
|
177 /** Belarussian. */ |
|
178 ELangBelarussian = 40, |
|
179 |
|
180 /** Bengali. */ |
|
181 ELangBengali = 41, |
|
182 |
|
183 /** Bulgarian. */ |
|
184 ELangBulgarian = 42, |
|
185 |
|
186 /** Burmese. */ |
|
187 ELangBurmese = 43, |
|
188 |
|
189 /** Catalan. */ |
|
190 ELangCatalan = 44, |
|
191 |
|
192 /** Croatian. */ |
|
193 ELangCroatian = 45, |
|
194 |
|
195 /** Canadian English. */ |
|
196 ELangCanadianEnglish = 46, |
|
197 |
|
198 /** International English. */ |
|
199 ELangInternationalEnglish = 47, |
|
200 |
|
201 /** South African English. */ |
|
202 ELangSouthAfricanEnglish = 48, |
|
203 |
|
204 /** Estonian. */ |
|
205 ELangEstonian = 49, |
|
206 |
|
207 /** Farsi. */ |
|
208 ELangFarsi = 50, |
|
209 |
|
210 /** Canadian French. */ |
|
211 ELangCanadianFrench = 51, |
|
212 |
|
213 /** Gaelic. */ |
|
214 ELangScotsGaelic = 52, |
|
215 |
|
216 /** Georgian. */ |
|
217 ELangGeorgian = 53, |
|
218 |
|
219 /** Greek. */ |
|
220 ELangGreek = 54, |
|
221 |
|
222 /** Cyprus Greek. */ |
|
223 ELangCyprusGreek = 55, |
|
224 |
|
225 /** Gujarati. */ |
|
226 ELangGujarati = 56, |
|
227 |
|
228 /** Hebrew. */ |
|
229 ELangHebrew = 57, |
|
230 |
|
231 /** Hindi. */ |
|
232 ELangHindi = 58, |
|
233 |
|
234 /** Indonesian. */ |
|
235 ELangIndonesian = 59, |
|
236 |
|
237 /** Irish. */ |
|
238 ELangIrish = 60, |
|
239 |
|
240 /** Swiss Italian. */ |
|
241 ELangSwissItalian = 61, |
|
242 |
|
243 /** Kannada. */ |
|
244 ELangKannada = 62, |
|
245 |
|
246 /** Kazakh. */ |
|
247 ELangKazakh = 63, |
|
248 |
|
249 /** Khmer. */ |
|
250 ELangKhmer = 64, |
|
251 |
|
252 /** Korean. */ |
|
253 ELangKorean = 65, |
|
254 |
|
255 /** Lao. */ |
|
256 ELangLao = 66, |
|
257 |
|
258 /** Latvian. */ |
|
259 ELangLatvian = 67, |
|
260 |
|
261 /** Lithuanian. */ |
|
262 ELangLithuanian = 68, |
|
263 |
|
264 /** Macedonian. */ |
|
265 ELangMacedonian = 69, |
|
266 |
|
267 /** Malay. */ |
|
268 ELangMalay = 70, |
|
269 |
|
270 /** Malayalam. */ |
|
271 ELangMalayalam = 71, |
|
272 |
|
273 /** Marathi. */ |
|
274 ELangMarathi = 72, |
|
275 |
|
276 /** Moldavian. */ |
|
277 ELangMoldavian = 73, |
|
278 |
|
279 /** Mongolian. */ |
|
280 ELangMongolian = 74, |
|
281 |
|
282 /** Norwegian Nynorsk. */ |
|
283 ELangNorwegianNynorsk = 75, |
|
284 |
|
285 /** Brazilian Portuguese. */ |
|
286 ELangBrazilianPortuguese = 76, |
|
287 |
|
288 /** Punjabi. */ |
|
289 ELangPunjabi = 77, |
|
290 |
|
291 /** Romanian. */ |
|
292 ELangRomanian = 78, |
|
293 |
|
294 /** Serbian. */ |
|
295 ELangSerbian = 79, |
|
296 |
|
297 /** Sinhalese. */ |
|
298 ELangSinhalese = 80, |
|
299 |
|
300 /** Somali. */ |
|
301 ELangSomali = 81, |
|
302 |
|
303 /** International Spanish. */ |
|
304 ELangInternationalSpanish = 82, |
|
305 |
|
306 /** American Spanish. */ |
|
307 ELangLatinAmericanSpanish = 83, |
|
308 |
|
309 /** Swahili. */ |
|
310 ELangSwahili = 84, |
|
311 |
|
312 /** Finland Swedish. */ |
|
313 ELangFinlandSwedish = 85, |
|
314 |
|
315 /** Reserved, not in use. */ |
|
316 ELangReserved1 = 86, // This enum should not be used for new languages, see INC110543 |
|
317 |
|
318 /** Tamil. */ |
|
319 ELangTamil = 87, |
|
320 |
|
321 /** Telugu. */ |
|
322 ELangTelugu = 88, |
|
323 |
|
324 /** Tibetan. */ |
|
325 ELangTibetan = 89, |
|
326 |
|
327 /** Tigrinya. */ |
|
328 ELangTigrinya = 90, |
|
329 |
|
330 /** Cyprus Turkish. */ |
|
331 ELangCyprusTurkish = 91, |
|
332 |
|
333 /** Turkmen. */ |
|
334 ELangTurkmen = 92, |
|
335 |
|
336 /** Ukrainian. */ |
|
337 ELangUkrainian = 93, |
|
338 |
|
339 /** Urdu. */ |
|
340 ELangUrdu = 94, |
|
341 |
|
342 /** Reserved, not in use. */ |
|
343 ELangReserved2 = 95, // This enum should not be used for new languages, see INC110543 |
|
344 |
|
345 /** Vietnamese. */ |
|
346 ELangVietnamese = 96, |
|
347 |
|
348 /** Welsh. */ |
|
349 ELangWelsh = 97, |
|
350 |
|
351 /** Zulu. */ |
|
352 ELangZulu = 98, |
|
353 |
|
354 /** |
|
355 @deprecated |
|
356 |
|
357 Use of this value is deprecated. |
|
358 */ |
|
359 ELangOther = 99, |
|
360 |
|
361 /** English with terms as used by the device manufacturer, if this needs to |
|
362 be distinct from the English used by the UI vendor. */ |
|
363 ELangManufacturerEnglish = 100, |
|
364 |
|
365 /** South Sotho. |
|
366 |
|
367 A language of Lesotho also called Sesotho. SIL code sot. */ |
|
368 ELangSouthSotho = 101, |
|
369 |
|
370 /** Basque. */ |
|
371 ELangBasque = 102, |
|
372 |
|
373 /** Galician. */ |
|
374 ELangGalician = 103, |
|
375 |
|
376 /** Javanese. */ |
|
377 ELangJavanese = 104, |
|
378 |
|
379 /** Maithili. */ |
|
380 ELangMaithili = 105, |
|
381 |
|
382 /** Azerbaijani(Latin alphabet). */ |
|
383 ELangAzerbaijani_Latin = 106, |
|
384 |
|
385 /** Azerbaijani(Cyrillic alphabet). */ |
|
386 ELangAzerbaijani_Cyrillic = 107, |
|
387 |
|
388 /** Oriya. */ |
|
389 ELangOriya = 108, |
|
390 |
|
391 /** Bhojpuri. */ |
|
392 ELangBhojpuri = 109, |
|
393 |
|
394 /** Sundanese. */ |
|
395 ELangSundanese = 110, |
|
396 |
|
397 /** Kurdish(Latin alphabet). */ |
|
398 ELangKurdish_Latin = 111, |
|
399 |
|
400 /** Kurdish(Arabic alphabet). */ |
|
401 ELangKurdish_Arabic = 112, |
|
402 |
|
403 /** Pashto. */ |
|
404 ELangPashto = 113, |
|
405 |
|
406 /** Hausa. */ |
|
407 ELangHausa = 114, |
|
408 |
|
409 /** Oromo. */ |
|
410 ELangOromo = 115, |
|
411 |
|
412 /** Uzbek(Latin alphabet). */ |
|
413 ELangUzbek_Latin = 116, |
|
414 |
|
415 /** Uzbek(Cyrillic alphabet). */ |
|
416 ELangUzbek_Cyrillic = 117, |
|
417 |
|
418 /** Sindhi(Arabic alphabet). */ |
|
419 ELangSindhi_Arabic = 118, |
|
420 |
|
421 /** Sindhi(using Devanagari script). */ |
|
422 ELangSindhi_Devanagari = 119, |
|
423 |
|
424 /** Yoruba. */ |
|
425 ELangYoruba = 120, |
|
426 |
|
427 /** Cebuano. */ |
|
428 ELangCebuano = 121, |
|
429 |
|
430 /** Igbo. */ |
|
431 ELangIgbo = 122, |
|
432 |
|
433 /** Malagasy. */ |
|
434 ELangMalagasy = 123, |
|
435 |
|
436 /** Nepali. */ |
|
437 ELangNepali = 124, |
|
438 |
|
439 /** Assamese. */ |
|
440 ELangAssamese = 125, |
|
441 |
|
442 /** Shona. */ |
|
443 ELangShona = 126, |
|
444 |
|
445 /** Zhuang. */ |
|
446 ELangZhuang = 127, |
|
447 |
|
448 /** Madurese. */ |
|
449 ELangMadurese = 128, |
|
450 |
|
451 /** English as appropriate for use in Asia-Pacific regions. */ |
|
452 ELangEnglish_Apac=129, |
|
453 |
|
454 /** English as appropriate for use in Taiwan. */ |
|
455 ELangEnglish_Taiwan=157, |
|
456 |
|
457 /** English as appropriate for use in Hong Kong. */ |
|
458 ELangEnglish_HongKong=158, |
|
459 |
|
460 /** English as appropriate for use in the Peoples Republic of China. */ |
|
461 ELangEnglish_Prc=159, |
|
462 |
|
463 /** English as appropriate for use in Japan. */ |
|
464 ELangEnglish_Japan=160, |
|
465 |
|
466 /** English as appropriate for use in Thailand. */ |
|
467 ELangEnglish_Thailand=161, |
|
468 |
|
469 /** Fulfulde, also known as Fula */ |
|
470 ELangFulfulde = 162, |
|
471 |
|
472 /** Tamazight. */ |
|
473 ELangTamazight = 163, |
|
474 |
|
475 /** Bolivian Quechua. */ |
|
476 ELangBolivianQuechua = 164, |
|
477 |
|
478 /** Peru Quechua. */ |
|
479 ELangPeruQuechua = 165, |
|
480 |
|
481 /** Ecuador Quechua. */ |
|
482 ELangEcuadorQuechua = 166, |
|
483 |
|
484 /** Tajik(Cyrillic alphabet). */ |
|
485 ELangTajik_Cyrillic = 167, |
|
486 |
|
487 /** Tajik(using Perso-Arabic script). */ |
|
488 ELangTajik_PersoArabic = 168, |
|
489 |
|
490 /** Nyanja, also known as Chichewa or Chewa. */ |
|
491 ELangNyanja = 169, |
|
492 |
|
493 /** Haitian Creole. */ |
|
494 ELangHaitianCreole = 170, |
|
495 |
|
496 /** Lombard. */ |
|
497 ELangLombard = 171, |
|
498 |
|
499 /** Koongo, also known as Kongo or KiKongo. */ |
|
500 ELangKoongo = 172, |
|
501 |
|
502 /** Akan. */ |
|
503 ELangAkan = 173, |
|
504 |
|
505 /** Hmong. */ |
|
506 ELangHmong = 174, |
|
507 |
|
508 /** Yi. */ |
|
509 ELangYi = 175, |
|
510 |
|
511 /** Tshiluba, also known as Luba-Kasai */ |
|
512 ELangTshiluba = 176, |
|
513 |
|
514 /** Ilocano, also know as Ilokano or Iloko. */ |
|
515 ELangIlocano = 177, |
|
516 |
|
517 /** Uyghur. */ |
|
518 ELangUyghur = 178, |
|
519 |
|
520 /** Neapolitan. */ |
|
521 ELangNeapolitan = 179, |
|
522 |
|
523 /** Rwanda, also known as Kinyarwanda */ |
|
524 ELangRwanda = 180, |
|
525 |
|
526 /** Xhosa. */ |
|
527 ELangXhosa = 181, |
|
528 |
|
529 /** Balochi, also known as Baluchi */ |
|
530 ELangBalochi = 182, |
|
531 |
|
532 /** Hiligaynon. */ |
|
533 ElangHiligaynon = 183, |
|
534 |
|
535 /** Minangkabau. */ |
|
536 ELangMinangkabau = 184, |
|
537 |
|
538 /** Makhuwa. */ |
|
539 ELangMakhuwa = 185, |
|
540 |
|
541 /** Santali. */ |
|
542 ELangSantali = 186, |
|
543 |
|
544 /** Gikuyu, sometimes written Kikuyu. */ |
|
545 ELangGikuyu = 187, |
|
546 |
|
547 /** Mòoré, also known as Mossi or More. */ |
|
548 ELangMoore = 188, |
|
549 |
|
550 /** Guaraní. */ |
|
551 ELangGuarani = 189, |
|
552 |
|
553 /** Rundi, also known as Kirundi. */ |
|
554 ELangRundi = 190, |
|
555 |
|
556 /** Romani(Latin alphabet). */ |
|
557 ELangRomani_Latin = 191, |
|
558 |
|
559 /** Romani(Cyrillic alphabet). */ |
|
560 ELangRomani_Cyrillic = 192, |
|
561 |
|
562 /** Tswana. */ |
|
563 ELangTswana = 193, |
|
564 |
|
565 /** Kanuri. */ |
|
566 ELangKanuri = 194, |
|
567 |
|
568 /** Kashmiri(using Devanagari script). */ |
|
569 ELangKashmiri_Devanagari = 195, |
|
570 |
|
571 /** Kashmiri(using Perso-Arabic script). */ |
|
572 ELangKashmiri_PersoArabic = 196, |
|
573 |
|
574 /** Umbundu. */ |
|
575 ELangUmbundu = 197, |
|
576 |
|
577 /** Konkani. */ |
|
578 ELangKonkani = 198, |
|
579 |
|
580 /** Balinese, a language used in Indonesia (Java and Bali). */ |
|
581 ELangBalinese = 199, |
|
582 |
|
583 /** Northern Sotho. */ |
|
584 ELangNorthernSotho = 200, |
|
585 |
|
586 /** Wolof. */ |
|
587 ELangWolof = 201, |
|
588 |
|
589 /** Bemba. */ |
|
590 ELangBemba = 202, |
|
591 |
|
592 /** Tsonga. */ |
|
593 ELangTsonga = 203, |
|
594 |
|
595 /** Yiddish. */ |
|
596 ELangYiddish = 204, |
|
597 |
|
598 /** Kirghiz, also known as Kyrgyz. */ |
|
599 ELangKirghiz = 205, |
|
600 |
|
601 /** Ganda, also known as Luganda. */ |
|
602 ELangGanda = 206, |
|
603 |
|
604 /** Soga, also known as Lusoga. */ |
|
605 ELangSoga = 207, |
|
606 |
|
607 /** Mbundu, also known as Kimbundu. */ |
|
608 ELangMbundu = 208, |
|
609 |
|
610 /** Bambara. */ |
|
611 ELangBambara = 209, |
|
612 |
|
613 /** Central Aymara. */ |
|
614 ELangCentralAymara = 210, |
|
615 |
|
616 /** Zarma. */ |
|
617 ELangZarma = 211, |
|
618 |
|
619 /** Lingala. */ |
|
620 ELangLingala = 212, |
|
621 |
|
622 /** Bashkir. */ |
|
623 ELangBashkir = 213, |
|
624 |
|
625 /** Chuvash. */ |
|
626 ELangChuvash = 214, |
|
627 |
|
628 /** Swati. */ |
|
629 ELangSwati = 215, |
|
630 |
|
631 /** Tatar. */ |
|
632 ELangTatar = 216, |
|
633 |
|
634 /** Southern Ndebele. */ |
|
635 ELangSouthernNdebele = 217, |
|
636 |
|
637 /** Sardinian. */ |
|
638 ELangSardinian = 218, |
|
639 |
|
640 /** Scots. */ |
|
641 ELangScots = 219, |
|
642 |
|
643 /** Meitei, also known as Meithei or Manipuri */ |
|
644 ELangMeitei = 220, |
|
645 |
|
646 /** Walloon. */ |
|
647 ELangWalloon = 221, |
|
648 |
|
649 /** Kabardian. */ |
|
650 ELangKabardian = 222, |
|
651 |
|
652 /** Mazanderani, also know as Mazandarani or Tabri. */ |
|
653 ELangMazanderani = 223, |
|
654 |
|
655 /** Gilaki. */ |
|
656 ELangGilaki = 224, |
|
657 |
|
658 /** Shan. */ |
|
659 ELangShan = 225, |
|
660 |
|
661 /** Luyia. */ |
|
662 ELangLuyia = 226, |
|
663 |
|
664 /** Luo, also known as Dholuo, a language of Kenya. */ |
|
665 ELanguageLuo = 227, |
|
666 |
|
667 /** Sukuma, also known as Kisukuma. */ |
|
668 ELangSukuma = 228, |
|
669 |
|
670 /** Aceh, also known as Achinese. */ |
|
671 ELangAceh = 229, |
|
672 |
|
673 /** English used in India. */ |
|
674 ELangEnglish_India = 230, |
|
675 |
|
676 /** Malay as appropriate for use in Asia-Pacific regions. */ |
|
677 ELangMalay_Apac=326, |
|
678 |
|
679 /** Indonesian as appropriate for use in Asia-Pacific regions. */ |
|
680 ELangIndonesian_Apac=327, |
|
681 |
|
682 /** |
|
683 Indicates the final language in the language downgrade path. |
|
684 |
|
685 @see BaflUtils::NearestLanguageFile |
|
686 @see BaflUtils::GetDowngradePath |
|
687 */ |
|
688 ELangNone = 0xFFFF, // up to 1023 languages * 16 dialects, in 16 bits |
|
689 ELangMaximum = ELangNone // This must always be equal to the last (largest) TLanguage enum. |
|
690 }; |
|
691 |
|
692 |
|
693 #endif /* __E32LANG_H__ */ |