Index: trunk/extensions/Wikidata/util/voctrain/i18n/Names_iso639_3.php |
— | — | @@ -1,12 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | - |
5 | | -# iso 693_3 language names |
6 | | - |
7 | | -$languageNames=array( |
8 | | - 'eng'=>'English', |
9 | | - 'nld'=>'Nederlands', |
10 | | - 'deu'=>'Deutch' |
11 | | -) |
12 | | - |
13 | | -?> |
Index: trunk/extensions/Wikidata/util/voctrain/i18n/Names_wiki.php |
— | — | @@ -1,286 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * @addtogroup Language |
5 | | - */ |
6 | | -$languageNames = array( |
7 | | - 'aa' => 'Afar', # Afar |
8 | | - 'ab' => 'Аҧсуа', # Abkhaz, should possibly add ' бысжѡа' |
9 | | - 'af' => 'Afrikaans', # Afrikaans |
10 | | - 'ak' => 'Akana', # Akan |
11 | | - 'als' => 'Alemannisch', # Alemannic -- not a valid code, for compatibility |
12 | | - 'am' => 'አማርኛ', # Amharic |
13 | | - 'an' => 'Aragonés', # Aragonese |
14 | | - 'ang' => 'Anglo Saxon', # Old English |
15 | | - 'ar' => 'العربية', # Arabic |
16 | | - 'arc' => 'ܕܥܒܪܸܝܛ', # Aramaic |
17 | | - 'as' => 'অসমীয়া', # Assamese |
18 | | - 'ast' => 'Asturianu', # Asturian |
19 | | - 'av' => 'Авар', # Avar |
20 | | - 'ay' => 'Aymar', # Aymara, should possibly be Aymará |
21 | | - 'az' => 'Azərbaycan', # Azerbaijani |
22 | | - 'ba' => 'Башҡорт', # Bashkir |
23 | | - 'bar' => 'Boarisch', # Bavarian (Austro-Bavarian and South Tyrolean) |
24 | | - 'bat-smg' => 'Žemaitėška', # Samogitian |
25 | | - 'be' => 'Беларуская', # Belarusian ''or'' Byelarussian |
26 | | - 'bg' => 'Български', # Bulgarian |
27 | | - 'bh' => 'भोजपुरी', # Bihara |
28 | | - 'bi' => 'Bislama', # Bislama |
29 | | - 'bm' => 'Bamanankan', # Bambara |
30 | | - 'bn' => 'বাংলা', # Bengali |
31 | | - 'bo' => 'བོད་ཡིག', # Tibetan |
32 | | - 'bpy' => 'ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী', # Bishnupriya Manipuri |
33 | | - 'br' => 'Brezhoneg', # Breton |
34 | | - 'bs' => 'Bosanski', # Bosnian |
35 | | - 'bug' => 'ᨅᨔ ᨕᨘᨁᨗ', # Buginese |
36 | | - 'bxr' => 'Буряад', # Buryat (Russia) |
37 | | - 'ca' => 'Català', # Catalan |
38 | | - 'cbk-zam' => 'Zamboangueño', # Zamboanga Chavacano |
39 | | - 'cdo' => 'Mìng-dĕ̤ng-ngṳ̄', # Min Dong |
40 | | - 'ce' => 'Нохчийн', # Chechen |
41 | | - 'ceb' => 'Cebuano', # Cebuano |
42 | | - 'ch' => 'Chamoru', # Chamorro |
43 | | - 'cho' => 'Choctaw', # Choctaw |
44 | | - 'chr' => 'ᏣᎳᎩ', # Cherokee |
45 | | - 'chy' => 'Tsetsêhestâhese', # Cheyenne |
46 | | - 'co' => 'Corsu', # Corsican |
47 | | - 'cr' => 'Nēhiyaw / ᓀᐦᐃᔭᐤ', # Cree |
48 | | - 'crh' => 'Qırımtatarca', # Crimean Tatar |
49 | | - 'crh-latn' => 'Qırımtatarca (Latin)', # Crimean Tatar (Latin) |
50 | | - 'crh-cyrl' => 'Qırımtatarca (Kiril)', # Crimean Tatar (Cyrillic) |
51 | | - 'cs' => 'Česky', # Czech |
52 | | - 'csb' => 'Kaszëbsczi', # Cassubian |
53 | | - 'cu' => 'Словѣньскъ', # Old Church Slavonic (ancient language) |
54 | | - 'cv' => 'Чăвашла', # Chuvash |
55 | | - 'cy' => 'Cymraeg', # Welsh |
56 | | - 'da' => 'Dansk', # Danish |
57 | | - 'de' => 'Deutsch', # German |
58 | | - 'diq' => 'Zazaki', # Zazaki |
59 | | - 'dk' => 'Dansk', # Unused code currently redirecting to Danish, 'da' is correct for the language |
60 | | - 'dv' => 'ދިވެހިބަސް', # Dhivehi |
61 | | - 'dz' => 'ཇོང་ཁ', # Bhutani |
62 | | - 'ee' => 'Eʋegbe', # Ewe |
63 | | - 'el' => 'Ελληνικά', # Greek |
64 | | - 'eml' => 'Emiliàn e rumagnòl', # Emilian-Romagnol / Sammarinese |
65 | | - 'en' => 'English', # English |
66 | | - 'eo' => 'Esperanto', # Esperanto |
67 | | - 'es' => 'Español', # Spanish |
68 | | - 'et' => 'Eesti', # Estonian |
69 | | - 'eu' => 'Euskara', # Basque |
70 | | - 'fa' => 'فارسی', # Persian |
71 | | - 'ff' => 'Fulfulde', # Fulah |
72 | | - 'fi' => 'Suomi', # Finnish |
73 | | - 'fiu-vro' => 'Võro', # Võro |
74 | | - 'fj' => 'Na Vosa Vakaviti', # Fijian |
75 | | - 'fo' => 'Føroyskt', # Faroese |
76 | | - 'fr' => 'Français', # French |
77 | | - 'frp' => 'Arpitan', # Franco-Provençal/Arpitan |
78 | | - 'fur' => 'Furlan', # Friulian |
79 | | - 'fy' => 'Frysk', # Frisian |
80 | | - 'ga' => 'Gaeilge', # Irish |
81 | | - 'gd' => 'Gàidhlig', # Scots Gaelic |
82 | | - 'gl' => 'Galego', # Gallegan |
83 | | - 'glk' => 'گیلکی', # Gilaki |
84 | | - 'gn' => 'Avañe\'ẽ', # Guarani |
85 | | - 'got' => '𐌲𐌿𐍄𐌹𐍃𐌺', # Gothic |
86 | | - 'gsw' => 'Alemannisch', # Alemannic |
87 | | - 'gu' => 'ગુજરાતી', # Gujarati |
88 | | - 'gv' => 'Gaelg', # Manx |
89 | | - 'ha' => 'هَوُسَ', # Hausa |
90 | | - 'haw' => 'Hawai`i', # Hawaiian |
91 | | - 'he' => 'עברית', # Hebrew |
92 | | - 'hi' => 'हिन्दी', # Hindi |
93 | | - 'hil' => 'Ilonggo', # Hiligaynon |
94 | | - 'ho' => 'Hiri Motu', # Hiri Motu |
95 | | - 'hr' => 'Hrvatski', # Croatian |
96 | | - 'hsb' => 'Hornjoserbsce', # Upper Sorbian |
97 | | - 'ht' => 'Krèyol ayisyen', # Haitian, common/popular form is Kreyòl |
98 | | - 'hu' => 'Magyar', # Hungarian |
99 | | - 'hy' => 'Հայերեն', # Armenian |
100 | | - 'hz' => 'Otsiherero', # Herero |
101 | | - 'ia' => 'Interlingua', # Interlingua (IALA) |
102 | | - 'id' => 'Bahasa Indonesia', # Indonesian |
103 | | - 'ie' => 'Interlingue', # Interlingue (Occidental) |
104 | | - 'ig' => 'Igbo', # Igbo |
105 | | - 'ii' => 'ꆇꉙ', # Sichuan Yi |
106 | | - 'ik' => 'Iñupiak', # Inupiak |
107 | | - 'ilo' => 'Ilokano', # Ilokano |
108 | | - 'io' => 'Ido', # Ido |
109 | | - 'is' => 'Íslenska', # Icelandic |
110 | | - 'it' => 'Italiano', # Italian |
111 | | - 'iu' => 'ᐃᓄᒃᑎᑐᑦ', # Inuktitut |
112 | | - 'ja' => '日本語', # Japanese |
113 | | - 'jbo' => 'Lojban', # Lojban |
114 | | - 'jv' => 'Basa Jawa', # Javanese |
115 | | - 'ka' => 'ქართული', # Georgian |
116 | | - 'kaa' => 'Qaraqalpaqsha', # Karakalpak |
117 | | - 'kab' => 'ثاقبايليث', # Kabyle |
118 | | - 'kg' => 'Kongo', # Kongo, (FIXME!) should probaly be KiKongo or KiKoongo |
119 | | - 'ki' => 'Gĩkũyũ', # Kikuyu, correctness not guaranteed |
120 | | - 'kj' => 'Kuanyama', # Kuanyama (FIXME!) |
121 | | - 'kk' => 'Қазақша', # Kazakh |
122 | | - 'kk-cn' => 'قازاقشا (تٴوتە)', # Kazakh Arabic |
123 | | - 'kk-kz' => 'Қазақша (кирил)', # Kazakh Cyrillic |
124 | | - 'kk-tr' => 'Qazaqşa (latın)', # Kazakh Latin |
125 | | - 'kl' => 'Kalaallisut', # Greenlandic |
126 | | - 'km' => 'ភាសាខ្មែរ', # Cambodian |
127 | | - 'kn' => 'ಕನ್ನಡ', # Kannada |
128 | | - 'ko' => '한국어', # Korean |
129 | | - 'kr' => 'Kanuri', # Kanuri (FIXME!) |
130 | | - 'ks' => 'कश्मीरी - (كشميري)', # Kashmiri |
131 | | - 'ksh' => 'Ripoarisch', # Ripuarian |
132 | | - 'ku' => 'Kurdî / كوردي', # Kurdish |
133 | | - 'kv' => 'Коми', # Komi, cyrillic is common script but also written in latin script |
134 | | - 'kw' => 'Kernewek', # Cornish |
135 | | - 'ky' => 'Кыргызча', # Kirghiz |
136 | | - 'la' => 'Latina', # Latin |
137 | | - 'lad' => 'Ladino', # Ladino |
138 | | - 'lbe' => 'Лакку', # Lak |
139 | | - 'lb' => 'Lëtzebuergesch', # Luxemburguish |
140 | | - 'lg' => 'Luganda', # Ganda |
141 | | - 'li' => 'Limburgs', # Limburgian |
142 | | - 'lij' => 'Líguru', # Ligurian |
143 | | - 'lld' => 'Ladin', # Ladin |
144 | | - 'lmo' => 'Lumbaart', # Lombard |
145 | | - 'ln' => 'Lingála', # Lingala |
146 | | - 'lo' => 'ລາວ',# Laotian |
147 | | - 'lt' => 'Lietuvių', # Lithuanian |
148 | | - 'lv' => 'Latviešu', # Latvian |
149 | | - 'lzz' => 'Lazuri Nena', #Laz |
150 | | - 'map-bms' => 'Basa Banyumasan', # Banyumasan |
151 | | - 'mg' => 'Malagasy', # Malagasy |
152 | | - 'mh' => 'Ebon', # Marshallese |
153 | | - 'mi' => 'Māori', # Maori |
154 | | - 'minnan' => 'Bân-lâm-gú', # Min-nan (also zh-min-nan) |
155 | | - 'mk' => 'Македонски', # Macedonian |
156 | | - 'ml' => 'മലയാളം', # Malayalam |
157 | | - 'mn' => 'Монгол', # Mongoloian |
158 | | - 'mo' => 'Молдовеняскэ', # Moldovan |
159 | | - 'mr' => 'मराठी', # Marathi |
160 | | - 'ms' => 'Bahasa Melayu', # Malay |
161 | | - 'mt' => 'Malti', # Maltese |
162 | | - 'mus' => 'Muscogee', # Creek, should possibly be Muskogee |
163 | | - 'my' => 'Myanmasa', # Burmese |
164 | | - 'mzn' => 'مَزِروني', # Mazandarin |
165 | | - 'na' => 'Ekakairũ Naoero', # Nauruan |
166 | | - 'nah' => 'Nahuatl', # Nahuatl, en:Wikipedia writes Nahuatlahtolli, while another form is Náhuatl |
167 | | - 'nan' => 'Bân-lâm-gú', # Min-nan -- (bug 8217) nan instead of zh-min-nan, http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=n |
168 | | - 'nap' => 'Nnapulitano', # Neapolitan |
169 | | - 'nb' => 'Norsk (bokmål)', # Norwegian (Bokmal) |
170 | | - 'nds' => 'Plattdüütsch', # Low German ''or'' Low Saxon |
171 | | - 'nds-nl' => 'Nedersaksisch', # Dutch Low Saxon |
172 | | - 'ne' => 'नेपाली', # Nepali |
173 | | - 'new' => 'नेपाल भाषा', # Newar / Nepal Bhasa |
174 | | - 'ng' => 'Oshiwambo', # Ndonga |
175 | | - 'nl' => 'Nederlands', # Dutch |
176 | | - 'nn' => 'Norsk (nynorsk)' , # Norwegian (Nynorsk) |
177 | | - 'no' => 'Norsk (bokmål)', # Norwegian |
178 | | - 'non' => 'Norrǿna', # Old Norse |
179 | | - 'nov' => 'Novial', # Novial |
180 | | - 'nrm' => 'Nouormand', # Norman |
181 | | - 'nv' => 'Diné bizaad', # Navajo |
182 | | - 'ny' => 'Chi-Chewa', # Chichewa |
183 | | - 'oc' => 'Occitan', # Occitan |
184 | | - 'om' => 'Oromoo', # Oromo |
185 | | - 'or' => 'ଓଡ଼ିଆ', # Oriya |
186 | | - 'os' => 'Иронау', # Ossetic |
187 | | - 'pa' => 'ਪੰਜਾਬੀ', # Punjabi |
188 | | - 'pag' => 'Pangasinan', # Pangasinan |
189 | | - 'pam' => 'Kapampangan', # Pampanga |
190 | | - 'pap' => 'Papiamentu', # Papiamentu |
191 | | - 'pdc' => 'Deitsch', # Pennsylvania German |
192 | | - 'pih' => 'Norfuk / Pitkern', # Norfuk/Pitcairn/Norfolk |
193 | | - 'pi' => 'पािऴ', # Pali |
194 | | - 'pl' => 'Polski', # Polish |
195 | | - 'pms' => 'Piemontèis', # Piedmontese |
196 | | - 'ps' => 'پښتو', # Pashto |
197 | | - 'pt' => 'Português', # Portuguese |
198 | | - 'pt-br' => 'Português do Brasil', # Brazilian Portuguese |
199 | | - 'qu' => 'Runa Simi', # Quechua |
200 | | - 'rm' => 'Rumantsch', # Raeto-Romance |
201 | | - 'rmy' => 'Romani', # Vlax Romany |
202 | | - 'rn' => 'Kirundi', # Kirundi |
203 | | - 'ro' => 'Română', # Romanian |
204 | | - 'roa-rup' => 'Armâneashti', # Aromanian |
205 | | - 'roa-tara' => 'Tarandíne', # Tarantino |
206 | | - 'ru' => 'Русский', # Russian |
207 | | - 'ru-sib' => 'Сибирской', # Siberian/North Russian |
208 | | - 'rw' => 'Kinyarwanda', # Kinyarwanda, should possibly be Kinyarwandi |
209 | | - 'sa' => 'संस्कृत', # Sanskrit |
210 | | - 'sc' => 'Sardu', # Sardinian |
211 | | - 'scn' => 'Sicilianu', # Sicilian |
212 | | - 'sco' => 'Scots', # Scots |
213 | | - 'sd' => 'سنڌي', # Sindhi |
214 | | - 'se' => 'Sámegiella', # Northern Sami |
215 | | - 'sg' => 'Sängö', # Sango, possible alternative is Sangho |
216 | | - 'sh' => 'Srpskohrvatski / Српскохрватски', # Serbocroatian |
217 | | - 'si' => 'සිංහල', # Sinhalese |
218 | | - 'simple' => 'Simple English', # Simple English |
219 | | - 'sk' => 'Slovenčina', # Slovak |
220 | | - 'sl' => 'Slovenščina', # Slovenian |
221 | | - 'sm' => 'Gagana Samoa', # Samoan |
222 | | - 'sn' => 'chiShona', # Shona |
223 | | - 'so' => 'Soomaaliga', # Somali |
224 | | - 'sq' => 'Shqip', # Albanian |
225 | | - 'sr' => 'Српски / Srpski', # Serbian |
226 | | - 'sr-ec' => 'ћирилица', # Serbian cyrillic ekavian |
227 | | - 'sr-jc' => 'ијекавица', # Serbian cyrillic iyekvian |
228 | | - 'sr-el' => 'latinica', # Serbian latin ekavian |
229 | | - 'sr-jl' => 'ijekavica', # Serbian latin iyekavian |
230 | | - 'ss' => 'SiSwati', # Swati |
231 | | - 'st' => 'seSotho', # Southern Sotho |
232 | | - 'su' => 'Basa Sunda', # Sundanese |
233 | | - 'sv' => 'Svenska', # Swedish |
234 | | - 'sw' => 'Kiswahili', # Swahili |
235 | | - 'ta' => 'தமிழ்', # Tamil |
236 | | - 'te' => 'తెలుగు', # Telugu |
237 | | - 'tet' => 'Tetun', # Tetun |
238 | | - 'tg' => 'Тоҷикӣ', # Tajik |
239 | | - 'th' => 'ไทย', # Thai |
240 | | - 'ti' => 'ትግርኛ', # Tigrinya |
241 | | - 'tk' => 'Türkmen', # Turkmen |
242 | | - 'tl' => 'Tagalog', # Tagalog (Filipino) |
243 | | - #'tlh' => 'tlhIngan-Hol', # Klingon - no interlanguage links allowed |
244 | | - 'tn' => 'Setswana', # Setswana |
245 | | - 'to' => 'faka-Tonga', # Tonga (Tonga Islands) |
246 | | - 'tokipona' => 'Toki Pona', # Toki Pona |
247 | | - 'tp' => 'Toki Pona', # Toki Pona - non-standard language code |
248 | | - 'tpi' => 'Tok Pisin', # Tok Pisin |
249 | | - 'tr' => 'Türkçe', # Turkish |
250 | | - 'ts' => 'Xitsonga', # Tsonga |
251 | | - 'tt' => 'Tatarça', # Tatar |
252 | | - 'tum' => 'chiTumbuka', # Tumbuka |
253 | | - 'tw' => 'Twi', # Twi, (FIXME!) |
254 | | - 'ty' => 'Reo Mā`ohi', # Tahitian |
255 | | - 'tyv' => 'Тыва дыл', # Tyvan |
256 | | - 'udm' => 'Удмурт', # Udmurt |
257 | | - 'ug' => 'Oyghurque', # Uyghur |
258 | | - 'uk' => 'Українська', # Ukrainian |
259 | | - 'ur' => 'اردو', # Urdu |
260 | | - 'uz' => 'O\'zbek', # Uzbek |
261 | | - 've' => 'Tshivenda', # Venda |
262 | | - 'vec' => 'Vèneto', # Venetian |
263 | | - 'vi' => 'Tiếng Việt', # Vietnamese |
264 | | - 'vls' => 'West-Vlams', # West Flemish |
265 | | - 'vo' => 'Volapük', # Volapük |
266 | | - 'wa' => 'Walon', # Walloon |
267 | | - 'war' => 'Winaray', # Waray-Waray |
268 | | - 'wo' => 'Wollof', # Wolof |
269 | | - 'wuu' => '吴语', # Wu |
270 | | - 'xal' => 'Хальмг', # Kalmyk |
271 | | - 'xh' => 'isiXhosa', # Xhosan |
272 | | - 'yi' => 'ייִדיש', # Yiddish |
273 | | - 'yo' => 'Yorùbá', # Yoruba |
274 | | - 'za' => '(Cuengh)', # Zhuang |
275 | | - 'zea' => 'Zeêuws', # Zealandic |
276 | | - 'zh' => '中文', # (Zhōng Wén) - Chinese |
277 | | - 'zh-cfr' => '閩南語', # Min-nan alias (site is at minnan) |
278 | | - 'zh-classical' => '古文 / 文言文', # Classical Chinese/Literary Chinese |
279 | | - 'zh-cn' => '中文(简体)', # Simplified |
280 | | - 'zh-hk' => '中文(繁體)', # Traditional (Hong Kong) |
281 | | - 'zh-min-nan' => 'Bân-lâm-gú', # Min-nan -- (see bug 8217) |
282 | | - 'zh-sg' => '中文(简体)', # Simplified (Singapore) |
283 | | - 'zh-tw' => '中文(繁體)', # Traditional |
284 | | - 'zh-yue' => '粵語', # Cantonese |
285 | | - 'zu' => 'isiZulu' # Zulu |
286 | | -); |
287 | | -?> |
Index: trunk/extensions/Wikidata/util/voctrain/i18n/Names.php |
— | — | @@ -0,0 +1,286 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * @addtogroup Language |
| 5 | + */ |
| 6 | +$languageNames = array( |
| 7 | + 'aa' => 'Afar', # Afar |
| 8 | + 'ab' => 'Аҧсуа', # Abkhaz, should possibly add ' бысжѡа' |
| 9 | + 'af' => 'Afrikaans', # Afrikaans |
| 10 | + 'ak' => 'Akana', # Akan |
| 11 | + 'als' => 'Alemannisch', # Alemannic -- not a valid code, for compatibility |
| 12 | + 'am' => 'አማርኛ', # Amharic |
| 13 | + 'an' => 'Aragonés', # Aragonese |
| 14 | + 'ang' => 'Anglo Saxon', # Old English |
| 15 | + 'ar' => 'العربية', # Arabic |
| 16 | + 'arc' => 'ܕܥܒܪܸܝܛ', # Aramaic |
| 17 | + 'as' => 'অসমীয়া', # Assamese |
| 18 | + 'ast' => 'Asturianu', # Asturian |
| 19 | + 'av' => 'Авар', # Avar |
| 20 | + 'ay' => 'Aymar', # Aymara, should possibly be Aymará |
| 21 | + 'az' => 'Azərbaycan', # Azerbaijani |
| 22 | + 'ba' => 'Башҡорт', # Bashkir |
| 23 | + 'bar' => 'Boarisch', # Bavarian (Austro-Bavarian and South Tyrolean) |
| 24 | + 'bat-smg' => 'Žemaitėška', # Samogitian |
| 25 | + 'be' => 'Беларуская', # Belarusian ''or'' Byelarussian |
| 26 | + 'bg' => 'Български', # Bulgarian |
| 27 | + 'bh' => 'भोजपुरी', # Bihara |
| 28 | + 'bi' => 'Bislama', # Bislama |
| 29 | + 'bm' => 'Bamanankan', # Bambara |
| 30 | + 'bn' => 'বাংলা', # Bengali |
| 31 | + 'bo' => 'བོད་ཡིག', # Tibetan |
| 32 | + 'bpy' => 'ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী', # Bishnupriya Manipuri |
| 33 | + 'br' => 'Brezhoneg', # Breton |
| 34 | + 'bs' => 'Bosanski', # Bosnian |
| 35 | + 'bug' => 'ᨅᨔ ᨕᨘᨁᨗ', # Buginese |
| 36 | + 'bxr' => 'Буряад', # Buryat (Russia) |
| 37 | + 'ca' => 'Català', # Catalan |
| 38 | + 'cbk-zam' => 'Zamboangueño', # Zamboanga Chavacano |
| 39 | + 'cdo' => 'Mìng-dĕ̤ng-ngṳ̄', # Min Dong |
| 40 | + 'ce' => 'Нохчийн', # Chechen |
| 41 | + 'ceb' => 'Cebuano', # Cebuano |
| 42 | + 'ch' => 'Chamoru', # Chamorro |
| 43 | + 'cho' => 'Choctaw', # Choctaw |
| 44 | + 'chr' => 'ᏣᎳᎩ', # Cherokee |
| 45 | + 'chy' => 'Tsetsêhestâhese', # Cheyenne |
| 46 | + 'co' => 'Corsu', # Corsican |
| 47 | + 'cr' => 'Nēhiyaw / ᓀᐦᐃᔭᐤ', # Cree |
| 48 | + 'crh' => 'Qırımtatarca', # Crimean Tatar |
| 49 | + 'crh-latn' => 'Qırımtatarca (Latin)', # Crimean Tatar (Latin) |
| 50 | + 'crh-cyrl' => 'Qırımtatarca (Kiril)', # Crimean Tatar (Cyrillic) |
| 51 | + 'cs' => 'Česky', # Czech |
| 52 | + 'csb' => 'Kaszëbsczi', # Cassubian |
| 53 | + 'cu' => 'Словѣньскъ', # Old Church Slavonic (ancient language) |
| 54 | + 'cv' => 'Чăвашла', # Chuvash |
| 55 | + 'cy' => 'Cymraeg', # Welsh |
| 56 | + 'da' => 'Dansk', # Danish |
| 57 | + 'de' => 'Deutsch', # German |
| 58 | + 'diq' => 'Zazaki', # Zazaki |
| 59 | + 'dk' => 'Dansk', # Unused code currently redirecting to Danish, 'da' is correct for the language |
| 60 | + 'dv' => 'ދިވެހިބަސް', # Dhivehi |
| 61 | + 'dz' => 'ཇོང་ཁ', # Bhutani |
| 62 | + 'ee' => 'Eʋegbe', # Ewe |
| 63 | + 'el' => 'Ελληνικά', # Greek |
| 64 | + 'eml' => 'Emiliàn e rumagnòl', # Emilian-Romagnol / Sammarinese |
| 65 | + 'en' => 'English', # English |
| 66 | + 'eo' => 'Esperanto', # Esperanto |
| 67 | + 'es' => 'Español', # Spanish |
| 68 | + 'et' => 'Eesti', # Estonian |
| 69 | + 'eu' => 'Euskara', # Basque |
| 70 | + 'fa' => 'فارسی', # Persian |
| 71 | + 'ff' => 'Fulfulde', # Fulah |
| 72 | + 'fi' => 'Suomi', # Finnish |
| 73 | + 'fiu-vro' => 'Võro', # Võro |
| 74 | + 'fj' => 'Na Vosa Vakaviti', # Fijian |
| 75 | + 'fo' => 'Føroyskt', # Faroese |
| 76 | + 'fr' => 'Français', # French |
| 77 | + 'frp' => 'Arpitan', # Franco-Provençal/Arpitan |
| 78 | + 'fur' => 'Furlan', # Friulian |
| 79 | + 'fy' => 'Frysk', # Frisian |
| 80 | + 'ga' => 'Gaeilge', # Irish |
| 81 | + 'gd' => 'Gàidhlig', # Scots Gaelic |
| 82 | + 'gl' => 'Galego', # Gallegan |
| 83 | + 'glk' => 'گیلکی', # Gilaki |
| 84 | + 'gn' => 'Avañe\'ẽ', # Guarani |
| 85 | + 'got' => '𐌲𐌿𐍄𐌹𐍃𐌺', # Gothic |
| 86 | + 'gsw' => 'Alemannisch', # Alemannic |
| 87 | + 'gu' => 'ગુજરાતી', # Gujarati |
| 88 | + 'gv' => 'Gaelg', # Manx |
| 89 | + 'ha' => 'هَوُسَ', # Hausa |
| 90 | + 'haw' => 'Hawai`i', # Hawaiian |
| 91 | + 'he' => 'עברית', # Hebrew |
| 92 | + 'hi' => 'हिन्दी', # Hindi |
| 93 | + 'hil' => 'Ilonggo', # Hiligaynon |
| 94 | + 'ho' => 'Hiri Motu', # Hiri Motu |
| 95 | + 'hr' => 'Hrvatski', # Croatian |
| 96 | + 'hsb' => 'Hornjoserbsce', # Upper Sorbian |
| 97 | + 'ht' => 'Krèyol ayisyen', # Haitian, common/popular form is Kreyòl |
| 98 | + 'hu' => 'Magyar', # Hungarian |
| 99 | + 'hy' => 'Հայերեն', # Armenian |
| 100 | + 'hz' => 'Otsiherero', # Herero |
| 101 | + 'ia' => 'Interlingua', # Interlingua (IALA) |
| 102 | + 'id' => 'Bahasa Indonesia', # Indonesian |
| 103 | + 'ie' => 'Interlingue', # Interlingue (Occidental) |
| 104 | + 'ig' => 'Igbo', # Igbo |
| 105 | + 'ii' => 'ꆇꉙ', # Sichuan Yi |
| 106 | + 'ik' => 'Iñupiak', # Inupiak |
| 107 | + 'ilo' => 'Ilokano', # Ilokano |
| 108 | + 'io' => 'Ido', # Ido |
| 109 | + 'is' => 'Íslenska', # Icelandic |
| 110 | + 'it' => 'Italiano', # Italian |
| 111 | + 'iu' => 'ᐃᓄᒃᑎᑐᑦ', # Inuktitut |
| 112 | + 'ja' => '日本語', # Japanese |
| 113 | + 'jbo' => 'Lojban', # Lojban |
| 114 | + 'jv' => 'Basa Jawa', # Javanese |
| 115 | + 'ka' => 'ქართული', # Georgian |
| 116 | + 'kaa' => 'Qaraqalpaqsha', # Karakalpak |
| 117 | + 'kab' => 'ثاقبايليث', # Kabyle |
| 118 | + 'kg' => 'Kongo', # Kongo, (FIXME!) should probaly be KiKongo or KiKoongo |
| 119 | + 'ki' => 'Gĩkũyũ', # Kikuyu, correctness not guaranteed |
| 120 | + 'kj' => 'Kuanyama', # Kuanyama (FIXME!) |
| 121 | + 'kk' => 'Қазақша', # Kazakh |
| 122 | + 'kk-cn' => 'قازاقشا (تٴوتە)', # Kazakh Arabic |
| 123 | + 'kk-kz' => 'Қазақша (кирил)', # Kazakh Cyrillic |
| 124 | + 'kk-tr' => 'Qazaqşa (latın)', # Kazakh Latin |
| 125 | + 'kl' => 'Kalaallisut', # Greenlandic |
| 126 | + 'km' => 'ភាសាខ្មែរ', # Cambodian |
| 127 | + 'kn' => 'ಕನ್ನಡ', # Kannada |
| 128 | + 'ko' => '한국어', # Korean |
| 129 | + 'kr' => 'Kanuri', # Kanuri (FIXME!) |
| 130 | + 'ks' => 'कश्मीरी - (كشميري)', # Kashmiri |
| 131 | + 'ksh' => 'Ripoarisch', # Ripuarian |
| 132 | + 'ku' => 'Kurdî / كوردي', # Kurdish |
| 133 | + 'kv' => 'Коми', # Komi, cyrillic is common script but also written in latin script |
| 134 | + 'kw' => 'Kernewek', # Cornish |
| 135 | + 'ky' => 'Кыргызча', # Kirghiz |
| 136 | + 'la' => 'Latina', # Latin |
| 137 | + 'lad' => 'Ladino', # Ladino |
| 138 | + 'lbe' => 'Лакку', # Lak |
| 139 | + 'lb' => 'Lëtzebuergesch', # Luxemburguish |
| 140 | + 'lg' => 'Luganda', # Ganda |
| 141 | + 'li' => 'Limburgs', # Limburgian |
| 142 | + 'lij' => 'Líguru', # Ligurian |
| 143 | + 'lld' => 'Ladin', # Ladin |
| 144 | + 'lmo' => 'Lumbaart', # Lombard |
| 145 | + 'ln' => 'Lingála', # Lingala |
| 146 | + 'lo' => 'ລາວ',# Laotian |
| 147 | + 'lt' => 'Lietuvių', # Lithuanian |
| 148 | + 'lv' => 'Latviešu', # Latvian |
| 149 | + 'lzz' => 'Lazuri Nena', #Laz |
| 150 | + 'map-bms' => 'Basa Banyumasan', # Banyumasan |
| 151 | + 'mg' => 'Malagasy', # Malagasy |
| 152 | + 'mh' => 'Ebon', # Marshallese |
| 153 | + 'mi' => 'Māori', # Maori |
| 154 | + 'minnan' => 'Bân-lâm-gú', # Min-nan (also zh-min-nan) |
| 155 | + 'mk' => 'Македонски', # Macedonian |
| 156 | + 'ml' => 'മലയാളം', # Malayalam |
| 157 | + 'mn' => 'Монгол', # Mongoloian |
| 158 | + 'mo' => 'Молдовеняскэ', # Moldovan |
| 159 | + 'mr' => 'मराठी', # Marathi |
| 160 | + 'ms' => 'Bahasa Melayu', # Malay |
| 161 | + 'mt' => 'Malti', # Maltese |
| 162 | + 'mus' => 'Muscogee', # Creek, should possibly be Muskogee |
| 163 | + 'my' => 'Myanmasa', # Burmese |
| 164 | + 'mzn' => 'مَزِروني', # Mazandarin |
| 165 | + 'na' => 'Ekakairũ Naoero', # Nauruan |
| 166 | + 'nah' => 'Nahuatl', # Nahuatl, en:Wikipedia writes Nahuatlahtolli, while another form is Náhuatl |
| 167 | + 'nan' => 'Bân-lâm-gú', # Min-nan -- (bug 8217) nan instead of zh-min-nan, http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=n |
| 168 | + 'nap' => 'Nnapulitano', # Neapolitan |
| 169 | + 'nb' => 'Norsk (bokmål)', # Norwegian (Bokmal) |
| 170 | + 'nds' => 'Plattdüütsch', # Low German ''or'' Low Saxon |
| 171 | + 'nds-nl' => 'Nedersaksisch', # Dutch Low Saxon |
| 172 | + 'ne' => 'नेपाली', # Nepali |
| 173 | + 'new' => 'नेपाल भाषा', # Newar / Nepal Bhasa |
| 174 | + 'ng' => 'Oshiwambo', # Ndonga |
| 175 | + 'nl' => 'Nederlands', # Dutch |
| 176 | + 'nn' => 'Norsk (nynorsk)' , # Norwegian (Nynorsk) |
| 177 | + 'no' => 'Norsk (bokmål)', # Norwegian |
| 178 | + 'non' => 'Norrǿna', # Old Norse |
| 179 | + 'nov' => 'Novial', # Novial |
| 180 | + 'nrm' => 'Nouormand', # Norman |
| 181 | + 'nv' => 'Diné bizaad', # Navajo |
| 182 | + 'ny' => 'Chi-Chewa', # Chichewa |
| 183 | + 'oc' => 'Occitan', # Occitan |
| 184 | + 'om' => 'Oromoo', # Oromo |
| 185 | + 'or' => 'ଓଡ଼ିଆ', # Oriya |
| 186 | + 'os' => 'Иронау', # Ossetic |
| 187 | + 'pa' => 'ਪੰਜਾਬੀ', # Punjabi |
| 188 | + 'pag' => 'Pangasinan', # Pangasinan |
| 189 | + 'pam' => 'Kapampangan', # Pampanga |
| 190 | + 'pap' => 'Papiamentu', # Papiamentu |
| 191 | + 'pdc' => 'Deitsch', # Pennsylvania German |
| 192 | + 'pih' => 'Norfuk / Pitkern', # Norfuk/Pitcairn/Norfolk |
| 193 | + 'pi' => 'पािऴ', # Pali |
| 194 | + 'pl' => 'Polski', # Polish |
| 195 | + 'pms' => 'Piemontèis', # Piedmontese |
| 196 | + 'ps' => 'پښتو', # Pashto |
| 197 | + 'pt' => 'Português', # Portuguese |
| 198 | + 'pt-br' => 'Português do Brasil', # Brazilian Portuguese |
| 199 | + 'qu' => 'Runa Simi', # Quechua |
| 200 | + 'rm' => 'Rumantsch', # Raeto-Romance |
| 201 | + 'rmy' => 'Romani', # Vlax Romany |
| 202 | + 'rn' => 'Kirundi', # Kirundi |
| 203 | + 'ro' => 'Română', # Romanian |
| 204 | + 'roa-rup' => 'Armâneashti', # Aromanian |
| 205 | + 'roa-tara' => 'Tarandíne', # Tarantino |
| 206 | + 'ru' => 'Русский', # Russian |
| 207 | + 'ru-sib' => 'Сибирской', # Siberian/North Russian |
| 208 | + 'rw' => 'Kinyarwanda', # Kinyarwanda, should possibly be Kinyarwandi |
| 209 | + 'sa' => 'संस्कृत', # Sanskrit |
| 210 | + 'sc' => 'Sardu', # Sardinian |
| 211 | + 'scn' => 'Sicilianu', # Sicilian |
| 212 | + 'sco' => 'Scots', # Scots |
| 213 | + 'sd' => 'سنڌي', # Sindhi |
| 214 | + 'se' => 'Sámegiella', # Northern Sami |
| 215 | + 'sg' => 'Sängö', # Sango, possible alternative is Sangho |
| 216 | + 'sh' => 'Srpskohrvatski / Српскохрватски', # Serbocroatian |
| 217 | + 'si' => 'සිංහල', # Sinhalese |
| 218 | + 'simple' => 'Simple English', # Simple English |
| 219 | + 'sk' => 'Slovenčina', # Slovak |
| 220 | + 'sl' => 'Slovenščina', # Slovenian |
| 221 | + 'sm' => 'Gagana Samoa', # Samoan |
| 222 | + 'sn' => 'chiShona', # Shona |
| 223 | + 'so' => 'Soomaaliga', # Somali |
| 224 | + 'sq' => 'Shqip', # Albanian |
| 225 | + 'sr' => 'Српски / Srpski', # Serbian |
| 226 | + 'sr-ec' => 'ћирилица', # Serbian cyrillic ekavian |
| 227 | + 'sr-jc' => 'ијекавица', # Serbian cyrillic iyekvian |
| 228 | + 'sr-el' => 'latinica', # Serbian latin ekavian |
| 229 | + 'sr-jl' => 'ijekavica', # Serbian latin iyekavian |
| 230 | + 'ss' => 'SiSwati', # Swati |
| 231 | + 'st' => 'seSotho', # Southern Sotho |
| 232 | + 'su' => 'Basa Sunda', # Sundanese |
| 233 | + 'sv' => 'Svenska', # Swedish |
| 234 | + 'sw' => 'Kiswahili', # Swahili |
| 235 | + 'ta' => 'தமிழ்', # Tamil |
| 236 | + 'te' => 'తెలుగు', # Telugu |
| 237 | + 'tet' => 'Tetun', # Tetun |
| 238 | + 'tg' => 'Тоҷикӣ', # Tajik |
| 239 | + 'th' => 'ไทย', # Thai |
| 240 | + 'ti' => 'ትግርኛ', # Tigrinya |
| 241 | + 'tk' => 'Türkmen', # Turkmen |
| 242 | + 'tl' => 'Tagalog', # Tagalog (Filipino) |
| 243 | + #'tlh' => 'tlhIngan-Hol', # Klingon - no interlanguage links allowed |
| 244 | + 'tn' => 'Setswana', # Setswana |
| 245 | + 'to' => 'faka-Tonga', # Tonga (Tonga Islands) |
| 246 | + 'tokipona' => 'Toki Pona', # Toki Pona |
| 247 | + 'tp' => 'Toki Pona', # Toki Pona - non-standard language code |
| 248 | + 'tpi' => 'Tok Pisin', # Tok Pisin |
| 249 | + 'tr' => 'Türkçe', # Turkish |
| 250 | + 'ts' => 'Xitsonga', # Tsonga |
| 251 | + 'tt' => 'Tatarça', # Tatar |
| 252 | + 'tum' => 'chiTumbuka', # Tumbuka |
| 253 | + 'tw' => 'Twi', # Twi, (FIXME!) |
| 254 | + 'ty' => 'Reo Mā`ohi', # Tahitian |
| 255 | + 'tyv' => 'Тыва дыл', # Tyvan |
| 256 | + 'udm' => 'Удмурт', # Udmurt |
| 257 | + 'ug' => 'Oyghurque', # Uyghur |
| 258 | + 'uk' => 'Українська', # Ukrainian |
| 259 | + 'ur' => 'اردو', # Urdu |
| 260 | + 'uz' => 'O\'zbek', # Uzbek |
| 261 | + 've' => 'Tshivenda', # Venda |
| 262 | + 'vec' => 'Vèneto', # Venetian |
| 263 | + 'vi' => 'Tiếng Việt', # Vietnamese |
| 264 | + 'vls' => 'West-Vlams', # West Flemish |
| 265 | + 'vo' => 'Volapük', # Volapük |
| 266 | + 'wa' => 'Walon', # Walloon |
| 267 | + 'war' => 'Winaray', # Waray-Waray |
| 268 | + 'wo' => 'Wollof', # Wolof |
| 269 | + 'wuu' => '吴语', # Wu |
| 270 | + 'xal' => 'Хальмг', # Kalmyk |
| 271 | + 'xh' => 'isiXhosa', # Xhosan |
| 272 | + 'yi' => 'ייִדיש', # Yiddish |
| 273 | + 'yo' => 'Yorùbá', # Yoruba |
| 274 | + 'za' => '(Cuengh)', # Zhuang |
| 275 | + 'zea' => 'Zeêuws', # Zealandic |
| 276 | + 'zh' => '中文', # (Zhōng Wén) - Chinese |
| 277 | + 'zh-cfr' => '閩南語', # Min-nan alias (site is at minnan) |
| 278 | + 'zh-classical' => '古文 / 文言文', # Classical Chinese/Literary Chinese |
| 279 | + 'zh-cn' => '中文(简体)', # Simplified |
| 280 | + 'zh-hk' => '中文(繁體)', # Traditional (Hong Kong) |
| 281 | + 'zh-min-nan' => 'Bân-lâm-gú', # Min-nan -- (see bug 8217) |
| 282 | + 'zh-sg' => '中文(简体)', # Simplified (Singapore) |
| 283 | + 'zh-tw' => '中文(繁體)', # Traditional |
| 284 | + 'zh-yue' => '粵語', # Cantonese |
| 285 | + 'zu' => 'isiZulu' # Zulu |
| 286 | +); |
| 287 | +?> |
Index: trunk/extensions/Wikidata/util/voctrain/i18n/language.php |
— | — | @@ -24,53 +24,41 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | public function loadMessages($code="Default") { |
28 | | - $messages_filename="Messages_$code.php"; |
29 | | - $path=dirname(__FILE__)."/messages/$messages_filename"; |
30 | | - if (file_exists($path)) { |
31 | | - include($path); |
32 | | - if (isset($messages)) { |
33 | | - $this->messages=$messages; #messages is from the included file |
34 | | - } else { |
35 | | - throw new LocalisationException("messages file format problem, there's no messages in $path"); |
36 | | - } |
37 | | - |
38 | | - if (isset($fallback)) { |
39 | | - if ($fallback===false) { |
40 | | - $this->fallback=false; |
41 | | - } else { |
42 | | - $this->fallback=new Language($fallback); |
43 | | - } |
44 | | - } |
| 28 | + if ($code==="Default") { |
| 29 | + $code="en"; |
| 30 | + } |
45 | 31 | |
46 | | - } elseif ($code!=="Default") { #last dutch fallbacsk |
47 | | - $code="Default"; |
48 | | - $this->loadMessages("Default"); |
| 32 | + include("language.i18n.php"); |
| 33 | + if (array_key_exists($code, $messages)) { |
| 34 | + $this->messages=$messages[$code]; #messages is from the included file |
49 | 35 | } else { |
50 | | - throw new NoSuchMessageFileException("Could not find message file for language code '$code'; file '$path' does not exist"); |
| 36 | + throw new LocalisationException("messages problem, there's no messages for $code"); |
51 | 37 | } |
| 38 | + |
| 39 | + if (array_key_exists($code,$fallback)) { |
| 40 | + if ($fallback[$code]===false) { |
| 41 | + $this->fallback=false; |
| 42 | + } else { |
| 43 | + $this->fallback=new Language($fallback[$code]); |
| 44 | + } |
| 45 | + } |
52 | 46 | $this->code=$code; |
53 | 47 | } |
54 | 48 | |
55 | 49 | /** |
56 | 50 | * Get language names available for i18n, indexed by code. |
57 | | - * If $customisedOnly is true, only returns codes with a messages file |
58 | | - * modified from mediawiki (GPL applies) |
59 | 51 | */ |
60 | 52 | public static function getI18NLanguageNames() { |
61 | | - |
62 | | - $languageNames=Language::getAllLanguageNames(); |
63 | | - |
64 | | - $messageFiles = glob( dirname(__FILE__)."/messages/Messages_*.php" ); |
65 | | - $names = array(); |
66 | | - foreach ( $messageFiles as $file ) { |
67 | | - $m = array(); |
68 | | - if( preg_match( '/Messages_([a-z_]+)\.php$/', $file, $m ) ) { |
69 | | - $code = str_replace( '_', '-', strtolower( $m[1] ) ); |
70 | | - if ( isset( $languageNames[$code] ) ) { |
71 | | - $names[$code] = $languageNames[$code]; |
72 | | - } |
| 53 | + include("language.i18n.php"); |
| 54 | + include("Names.php"); |
| 55 | + $keys= array_keys($messages); |
| 56 | + $names=array(); |
| 57 | + foreach ($keys as $key) { |
| 58 | + if (array_key_exists($key,$languageNames)) { |
| 59 | + $names[$key]=$languageNames[$key]; |
73 | 60 | } |
74 | 61 | } |
| 62 | + |
75 | 63 | return $names; |
76 | 64 | } |
77 | 65 | |