source: main/trunk/greenstone2/perllib/iso639.pm@ 30644

Last change on this file since 30644 was 30644, checked in by ak19, 5 years ago

Kathy provided support for a test language.

  • Property svn:keywords set to Author Date Id Revision
File size: 7.7 KB
Line 
1# mapping to and from iso 639 two letter language symbols
2
3package iso639;
4
5use strict;
6
7%iso639::fromiso639 = (
8 'aa' => 'Afar',
9 'ab' => 'Abkhazian',
10 'af' => 'Afrikaans',
11 'am' => 'Amharic',
12 'ar' => 'Arabic',
13 'as' => 'Assamese',
14 'ay' => 'Aymara',
15 'az' => 'Azerbaijani',
16
17 'ba' => 'Bashkir',
18 'be' => 'Byelorussian',
19 'bg' => 'Bulgarian',
20 'bh' => 'Bihari',
21 'bi' => 'Bislama',
22 'bn' => 'Bengali; Bangla',
23 'bo' => 'Tibetan',
24 'br' => 'Breton',
25
26 'ca' => 'Catalan',
27 'co' => 'Corsican',
28 'cs' => 'Czech',
29 'cy' => 'Welsh',
30
31 'da' => 'Danish',
32 'de' => 'German',
33 'dz' => 'Bhutani',
34 'dv' => 'Dhivehi',
35
36 'el' => 'Greek',
37 'en' => 'English',
38 'eo' => 'Esperanto',
39 'es' => 'Spanish',
40 'et' => 'Estonian',
41 'eu' => 'Basque',
42
43 'fa' => 'Persian',
44 'fi' => 'Finnish',
45 'fj' => 'Fiji',
46 'fo' => 'Faroese',
47 'fr' => 'French',
48 'fy' => 'Frisian',
49
50 'ga' => 'Irish',
51 'gd' => 'Scots Gaelic',
52 'gl' => 'Galician',
53 'gn' => 'Guarani',
54 'gu' => 'Gujarati',
55
56 'ha' => 'Hausa',
57 'he' => 'Hebrew',
58 'hi' => 'Hindi',
59 'hr' => 'Croatian',
60 'hu' => 'Hungarian',
61 'hy' => 'Armenian',
62
63 'ia' => 'Interlingua',
64 'id' => 'Indonesian',
65 'ie' => 'Interlingue',
66 'ig' => 'Igbo', # igbo, en.wiktionary.org/wiki/Category:Igbo_language, spoken by 25 millions people especially in Nigeria
67 'ik' => 'Inupiak',
68 'is' => 'Icelandic',
69 'it' => 'Italian',
70 'iu' => 'Inuktitut',
71
72 'ja' => 'Japanese',
73 'jv' => 'Javanese',
74
75 'ka' => 'Georgian',
76 'kk' => 'Kazakh',
77 'kl' => 'Greenlandic',
78 'km' => 'Cambodian',
79 'kn' => 'Kannada',
80 'ko' => 'Korean',
81 'ks' => 'Kashmiri',
82 'ku' => 'Kurdish',
83 'ky' => 'Kirghiz',
84
85 'la' => 'Latin',
86 'ln' => 'Lingala',
87 'lo' => 'Laotian',
88 'lt' => 'Lithuanian',
89 'lv' => 'Latvian, Lettish',
90
91 'mg' => 'Malagasy',
92 'mi' => 'Maori',
93 'mk' => 'Macedonian',
94 'ml' => 'Malayalam',
95 'mn' => 'Mongolian',
96 'mo' => 'Moldavian',
97 'mr' => 'Marathi',
98 'ms' => 'Malay',
99 'mt' => 'Maltese',
100 'my' => 'Burmese',
101
102 'na' => 'Nauru',
103 'ne' => 'Nepali',
104 'nl' => 'Dutch',
105 'no' => 'Norwegian',
106
107 'oc' => 'Occitan',
108 'om' => '(Afan) Oromo',
109 'or' => 'Oriya',
110
111 'pa' => 'Punjabi',
112 'pl' => 'Polish',
113
114 'prs'=> 'Dari',
115 'ps' => 'Pushto',
116
117 'pt' => 'Portuguese',
118
119 'qu' => 'Quechua',
120 'rm' => 'Rhaeto-Romance',
121 'rn' => 'Kirundi',
122 'ro' => 'Romanian',
123 'ru' => 'Russian',
124 'rw' => 'Kinyarwanda',
125
126 'sa' => 'Sanskrit',
127 'sd' => 'Sindhi',
128 'sg' => 'Sangro',
129 'sh' => 'Serbo-Croatian',
130 'si' => 'Sinhalese',
131 'sk' => 'Slovak',
132 'sl' => 'Slovenian',
133 'sm' => 'Samoan',
134 'sn' => 'Shona',
135 'so' => 'Somali',
136 'sq' => 'Albanian',
137 'sr' => 'Serbian',
138 'ss' => 'Siswati',
139 'st' => 'Sesotho',
140 'su' => 'Sudanese',
141 'sv' => 'Swedish',
142 'sw' => 'Swahili',
143
144 'ta' => 'Tamil',
145 'te' => 'Telugu',
146 'tg' => 'Tajik',
147 'th' => 'Thai',
148 'ti' => 'Tigrinya',
149 'tk' => 'Turkmen',
150 'tl' => 'Tagalog',
151 'tn' => 'Setswana',
152 'to' => 'Tonga',
153 'tr' => 'Turkish',
154 'ts' => 'Tsonga',
155 'tt' => 'Tatar',
156 'tw' => 'Twi',
157
158 'ug' => 'Uigur',
159 'uk' => 'Ukrainian',
160 'ur' => 'Urdu',
161 'uz' => 'Uzbek',
162
163 'vi' => 'Vietnamese',
164 'vo' => 'Volapuk',
165
166 'wo' => 'Wolof',
167
168 'xh' => 'Xhosa',
169
170 'yi' => 'Yiddish',
171 'yo' => 'Yoruba',
172
173 'za' => 'Zhuang',
174 'zh' => 'Chinese',
175 'zu' => 'Zulu',
176
177 'zz' => 'TestLang'
178 );
179
180%iso639::toiso639 = (
181 'afar' => 'aa',
182 'abkhazian' => 'ab',
183 'afrikaans' => 'af',
184 'amharic' => 'am',
185 'arabic' => 'ar',
186 'assamese' => 'as',
187 'aymara' => 'ay',
188 'azerbaijani' => 'az',
189
190 'bashkir' => 'ba',
191 'byelorussian' => 'be',
192 'bulgarian' => 'bg',
193 'bihari' => 'bh',
194 'bislama' => 'bi',
195 'bengali' => 'bn',
196 'bangla' => 'bn',
197 'tibetan' => 'bo',
198 'breton' => 'br',
199
200 'catalan' => 'ca',
201 'corsican' => 'co',
202 'czech' => 'cs',
203 'welsh' => 'cy',
204
205 'danish' => 'da',
206 'german' => 'de',
207 'dhivehi' => 'dv',
208 'bhutani' => 'dz',
209
210 'greek' => 'el',
211 'english' => 'en',
212 'esperanto' => 'eo',
213 'spanish' => 'es',
214 'estonian' => 'et',
215 'basque' => 'eu',
216
217 'persian' => 'fa',
218 'finnish' => 'fi',
219 'fiji' => 'fj',
220 'faroese' => 'fo',
221 'french' => 'fr',
222 'frisian' => 'fy',
223
224 'irish' => 'ga',
225 'scots_gaelic' => 'gd',
226 'galician' => 'gl',
227 'guarani' => 'gn',
228 'gujarati' => 'gu',
229
230 'hausa' => 'ha',
231 'hebrew' => 'he',
232 'hindi' => 'hi',
233 'croatian' => 'hr',
234 'hungarian' => 'hu',
235 'armenian' => 'hy',
236
237 'interlingua' => 'ia',
238 'indonesian' => 'id',
239 'interlingue' => 'ie',
240 'inupiak' => 'ik',
241 'igbo' => 'ig',
242 'icelandic' => 'is',
243 'italian' => 'it',
244 'inuktitut' => 'iu',
245
246 'japanese' => 'ja',
247 'javanese' => 'jv',
248
249 'georgian' => 'ka',
250 'kazakh' => 'kk',
251 'greenlandic' => 'kl',
252 'cambodian' => 'km',
253 'kannada' => 'kn',
254 'korean' => 'ko',
255 'kashmiri' => 'ks',
256 'kurdish' => 'ku',
257 'kirghiz' => 'ky',
258
259 'latin' => 'la',
260 'lingala' => 'ln',
261 'laotian' => 'lo',
262 'lithuanian' => 'lt',
263 'latvian' => 'lv',
264 'lettish' => 'lv',
265
266 'malagasy' => 'mg',
267 'maori' => 'mi',
268 'macedonian' => 'mk',
269 'malayalam' => 'ml',
270 'mongolian' => 'mn',
271 'moldavian' => 'mo',
272 'marathi' => 'mr',
273 'malay' => 'ms',
274 'maltese' => 'mt',
275 'burmese' => 'my',
276
277 'nauru' => 'na',
278 'nepali' => 'ne',
279 'dutch' => 'nl',
280 'norwegian' => 'no',
281
282 'occitan' => 'oc',
283 '(afan)_oromo' => 'om',
284 'oriya' => 'or',
285
286 'punjabi' => 'pa',
287 'polish' => 'pl',
288 'pashto' => 'ps',
289 'pushto' => 'ps',
290 'dari' => 'prs',
291 'portuguese' => 'pt',
292
293 'quechua' => 'qu',
294
295 'rhaeto-romance' => 'rm',
296 'kirundi' => 'rn',
297 'romanian' => 'ro',
298 'russian' => 'ru',
299 'kinyarwanda' => 'rw',
300
301 'sanskrit' => 'sa',
302 'sindhi' => 'sd',
303 'sangro' => 'sg',
304 'serbo-croatian' => 'sh',
305 'sinhalese' => 'si',
306 'slovak' => 'sk',
307 'slovenian' => 'sl',
308 'samoan' => 'sm',
309 'shona' => 'sn',
310 'somali' => 'so',
311 'albanian' => 'sq',
312 'serbian' => 'sr',
313 'siswati' => 'ss',
314 'sesotho' => 'st',
315 'sudanese' => 'su',
316 'swedish' => 'sv',
317 'swahili' => 'sw',
318
319 'tamil' => 'ta',
320 'telugu' => 'te',
321 'tajik' => 'tg',
322 'thai' => 'th',
323 'tigrinya' => 'ti',
324 'turkmen' => 'tk',
325 'tagalog' => 'tl',
326 'setswana' => 'tn',
327 'tonga' => 'to',
328 'turkish' => 'tr',
329 'tsonga' => 'ts',
330 'tatar' => 'tt',
331 'twi' => 'tw',
332
333 'uigur' => 'ug',
334 'ukrainian' => 'uk',
335 'urdu' => 'ur',
336 'uzbek' => 'uz',
337
338 'vietnamese' => 'vi',
339 'volapuk' => 'vo',
340
341 'wolof' => 'wo',
342
343 'xhosa' => 'xh',
344
345 'yiddish' => 'yi',
346 'yoruba' => 'yo',
347
348 'zhuang' => 'za',
349 'chinese' => 'zh',
350 'zul' => 'zu',
351
352 'testlang' => 'zz',
353 );
Note: See TracBrowser for help on using the repository browser.