MediaWiki  1.30.2
Names.php
Go to the documentation of this file.
1 <?php
25 
47 class Names {
48  public static $names = [
49  'aa' => 'Qafár af', # Afar
50  'ab' => 'Аҧсшәа', # Abkhaz
51  'ace' => 'Acèh', # Aceh
52  'ady' => 'адыгабзэ', # Adyghe
53  'ady-cyrl' => 'адыгабзэ', # Adyghe
54  'aeb' => 'تونسي/Tûnsî', # Tunisian Arabic (multiple scripts - defaults to Arabic)
55  'aeb-arab' => 'تونسي', # Tunisian Arabic (Arabic Script)
56  'aeb-latn' => 'Tûnsî', # Tunisian Arabic (Latin Script)
57  'af' => 'Afrikaans', # Afrikaans
58  'ak' => 'Akan', # Akan
59  'aln' => 'Gegë', # Gheg Albanian
60  'als' => 'Alemannisch', # Alemannic -- not a valid code, for compatibility. See gsw.
61  'am' => 'አማርኛ', # Amharic
62  'an' => 'aragonés', # Aragonese
63  'ang' => 'Ænglisc', # Old English, T25283
64  'anp' => 'अङ्गिका', # Angika
65  'ar' => 'العربية', # Arabic
66  'arc' => 'ܐܪܡܝܐ', # Aramaic
67  'arn' => 'mapudungun', # Mapuche, Mapudungu, Araucanian (Araucano)
68  'arq' => 'جازايرية', # Algerian Spoken Arabic
69  'ary' => 'Maġribi', # Moroccan Spoken Arabic
70  'arz' => 'مصرى', # Egyptian Spoken Arabic
71  'as' => 'অসমীয়া', # Assamese
72  'ase' => 'American sign language', # American sign language
73  'ast' => 'asturianu', # Asturian
74  'atj' => 'Atikamekw', # Atikamekw
75  'av' => 'авар', # Avar
76  'avk' => 'Kotava', # Kotava
77  'awa' => 'अवधी', # Awadhi
78  'ay' => 'Aymar aru', # Aymara
79  'az' => 'azərbaycanca', # Azerbaijani
80  'azb' => 'تۆرکجه', # South Azerbaijani
81  'ba' => 'башҡортса', # Bashkir
82  'ban' => 'Basa Bali', # Balinese
83  'bar' => 'Boarisch', # Bavarian (Austro-Bavarian and South Tyrolean)
84  'bat-smg' => 'žemaitėška', # Samogitian (deprecated code, 'sgs' in ISO 693-3 since 2010-06-30 )
85  'bbc' => 'Batak Toba', # Batak Toba (falls back to bbc-latn)
86  'bbc-latn' => 'Batak Toba', # Batak Toba
87  'bcc' => 'جهلسری بلوچی', # Southern Balochi
88  'bcl' => 'Bikol Central', # Bikol: Central Bicolano language
89  'be' => 'беларуская', # Belarusian normative
90  'be-tarask' => "беларуская (тарашкевіца)\xE2\x80\x8E", # Belarusian in Taraskievica orthography
91  'be-x-old' => "беларуская (тарашкевіца)\xE2\x80\x8E", # (be-tarask compat)
92  'bg' => 'български', # Bulgarian
93  'bgn' => 'روچ کپتین بلوچی', # Western Balochi
94  'bh' => 'भोजपुरी', # Bihari macro language. Falls back to Bhojpuri (bho)
95  'bho' => 'भोजपुरी', # Bhojpuri
96  'bi' => 'Bislama', # Bislama
97  'bjn' => 'Bahasa Banjar', # Banjarese
98  'bm' => 'bamanankan', # Bambara
99  'bn' => 'বাংলা', # Bengali
100  'bo' => 'བོད་ཡིག', # Tibetan
101  'bpy' => 'বিষ্ণুপ্রিয়া মণিপুরী', # Bishnupriya Manipuri
102  'bqi' => 'بختیاری', # Bakthiari
103  'br' => 'brezhoneg', # Breton
104  'brh' => 'Bráhuí', # Brahui
105  'bs' => 'bosanski', # Bosnian
106  'bto' => 'Iriga Bicolano', # Rinconada Bikol
107  'bug' => 'ᨅᨔ ᨕᨘᨁᨗ', # Buginese
108  'bxr' => 'буряад', # Buryat (Russia)
109  'ca' => 'català', # Catalan
110  'cbk-zam' => 'Chavacano de Zamboanga', # Zamboanga Chavacano
111  'cdo' => 'Mìng-dĕ̤ng-ngṳ̄', # Min Dong
112  'ce' => 'нохчийн', # Chechen
113  'ceb' => 'Cebuano', # Cebuano
114  'ch' => 'Chamoru', # Chamorro
115  'cho' => 'Choctaw', # Choctaw
116  'chr' => 'ᏣᎳᎩ', # Cherokee
117  'chy' => 'Tsetsêhestâhese', # Cheyenne
118  'ckb' => 'کوردی', # Central Kurdish
119  'co' => 'corsu', # Corsican
120  'cps' => 'Capiceño', # Capiznon
121  'cr' => 'Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ', # Cree
122  'crh' => 'qırımtatarca', # Crimean Tatar (multiple scripts - defaults to Latin)
123  'crh-latn' => "qırımtatarca (Latin)\xE2\x80\x8E", # Crimean Tatar (Latin)
124  'crh-cyrl' => "къырымтатарджа (Кирилл)\xE2\x80\x8E", # Crimean Tatar (Cyrillic)
125  'cs' => 'čeština', # Czech
126  'csb' => 'kaszëbsczi', # Cassubian
127  'cu' => 'словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ', # Old Church Slavonic (ancient language)
128  'cv' => 'Чӑвашла', # Chuvash
129  'cy' => 'Cymraeg', # Welsh
130  'da' => 'dansk', # Danish
131  'de' => 'Deutsch', # German ("Du")
132  'de-at' => 'Österreichisches Deutsch', # Austrian German
133  'de-ch' => 'Schweizer Hochdeutsch', # Swiss Standard German
134  'de-formal' => "Deutsch (Sie-Form)\xE2\x80\x8E", # German - formal address ("Sie")
135  'din' => 'Thuɔŋjäŋ', # Dinka
136  'diq' => 'Zazaki', # Zazaki
137  'dsb' => 'dolnoserbski', # Lower Sorbian
138  'dtp' => 'Dusun Bundu-liwan', # Central Dusun
139  'dty' => 'डोटेली', # Doteli
140  'dv' => 'ދިވެހިބަސް', # Dhivehi
141  'dz' => 'ཇོང་ཁ', # Dzongkha (Bhutan)
142  'ee' => 'eʋegbe', # Éwé
143  'egl' => 'Emiliàn', # Emilian
144  'el' => 'Ελληνικά', # Greek
145  'eml' => 'emiliàn e rumagnòl', # Emiliano-Romagnolo / Sammarinese
146  'en' => 'English', # English
147  'en-ca' => 'Canadian English', # Canadian English
148  'en-gb' => 'British English', # British English
149  'eo' => 'Esperanto', # Esperanto
150  'es' => 'español', # Spanish
151  'et' => 'eesti', # Estonian
152  'eu' => 'euskara', # Basque
153  'ext' => 'estremeñu', # Extremaduran
154  'fa' => 'فارسی', # Persian
155  'ff' => 'Fulfulde', # Fulfulde, Maasina
156  'fi' => 'suomi', # Finnish
157  'fit' => 'meänkieli', # Tornedalen Finnish
158  'fiu-vro' => 'Võro', # Võro (deprecated code, 'vro' in ISO 639-3 since 2009-01-16)
159  'fj' => 'Na Vosa Vakaviti', # Fijian
160  'fo' => 'føroyskt', # Faroese
161  'fr' => 'français', # French
162  'frc' => 'français cadien', # Cajun French
163  'frp' => 'arpetan', # Franco-Provençal/Arpitan
164  'frr' => 'Nordfriisk', # North Frisian
165  'fur' => 'furlan', # Friulian
166  'fy' => 'Frysk', # Frisian
167  'ga' => 'Gaeilge', # Irish
168  'gag' => 'Gagauz', # Gagauz
169  'gan' => '贛語', # Gan (multiple scripts - defaults to Traditional)
170  'gan-hans' => "赣语(简体)\xE2\x80\x8E", # Gan (Simplified Han)
171  'gan-hant' => "贛語(繁體)\xE2\x80\x8E", # Gan (Traditional Han)
172  'gd' => 'Gàidhlig', # Scots Gaelic
173  'gl' => 'galego', # Galician
174  'glk' => 'گیلکی', # Gilaki
175  'gn' => 'Avañe\'ẽ', # Guaraní, Paraguayan
176  'gom' => 'गोंयची कोंकणी / Gõychi Konknni', # Goan Konkani
177  'gom-deva' => 'गोंयची कोंकणी', # Goan Konkani (Devanagari script)
178  'gom-latn' => 'Gõychi Konknni', # Goan Konkani (Latin script)
179  'gor' => 'Bahasa Hulontalo', # Gorontalo
180  'got' => '𐌲𐌿𐍄𐌹𐍃𐌺', # Gothic
181  'grc' => 'Ἀρχαία ἑλληνικὴ', # Ancient Greek
182  'gsw' => 'Alemannisch', # Alemannic
183  'gu' => 'ગુજરાતી', # Gujarati
184  'gv' => 'Gaelg', # Manx
185  'ha' => 'Hausa', # Hausa
186  'hak' => '客家語/Hak-kâ-ngî', # Hakka
187  'haw' => 'Hawaiʻi', # Hawaiian
188  'he' => 'עברית', # Hebrew
189  'hi' => 'हिन्दी', # Hindi
190  'hif' => 'Fiji Hindi', # Fijian Hindi (multiple scripts - defaults to Latin)
191  'hif-latn' => 'Fiji Hindi', # Fiji Hindi (latin)
192  'hil' => 'Ilonggo', # Hiligaynon
193  'ho' => 'Hiri Motu', # Hiri Motu
194  'hr' => 'hrvatski', # Croatian
195  'hrx' => 'Hunsrik', # Riograndenser Hunsrückisch
196  'hsb' => 'hornjoserbsce', # Upper Sorbian
197  'ht' => 'Kreyòl ayisyen', # Haitian Creole French
198  'hu' => 'magyar', # Hungarian
199  'hy' => 'Հայերեն', # Armenian
200  'hz' => 'Otsiherero', # Herero
201  'ia' => 'interlingua', # Interlingua (IALA)
202  'id' => 'Bahasa Indonesia', # Indonesian
203  'ie' => 'Interlingue', # Interlingue (Occidental)
204  'ig' => 'Igbo', # Igbo
205  'ii' => 'ꆇꉙ', # Sichuan Yi
206  'ik' => 'Iñupiak', # Inupiak (Inupiatun, Northwest Alaska / Inupiatun, North Alaskan)
207  'ike-cans' => 'ᐃᓄᒃᑎᑐᑦ', # Inuktitut, Eastern Canadian (Unified Canadian Aboriginal Syllabics)
208  'ike-latn' => 'inuktitut', # Inuktitut, Eastern Canadian (Latin script)
209  'ilo' => 'Ilokano', # Ilokano
210  'inh' => 'ГӀалгӀай', # Ingush
211  'io' => 'Ido', # Ido
212  'is' => 'íslenska', # Icelandic
213  'it' => 'italiano', # Italian
214  'iu' => 'ᐃᓄᒃᑎᑐᑦ/inuktitut', # Inuktitut (macro language, see ike/ikt, falls back to ike-cans)
215  'ja' => '日本語', # Japanese
216  'jam' => 'Patois', # Jamaican Creole English
217  'jbo' => 'la .lojban.', # Lojban
218  'jut' => 'jysk', # Jutish / Jutlandic
219  'jv' => 'Basa Jawa', # Javanese
220  'ka' => 'ქართული', # Georgian
221  'kaa' => 'Qaraqalpaqsha', # Karakalpak
222  'kab' => 'Taqbaylit', # Kabyle
223  'kbd' => 'Адыгэбзэ', # Kabardian
224  'kbd-cyrl' => 'Адыгэбзэ', # Kabardian (Cyrillic)
225  'kbp' => 'Kabɩyɛ', # Kabiyè
226  'kg' => 'Kongo', # Kongo, (FIXME!) should probaly be KiKongo or KiKoongo
227  'khw' => 'کھوار', # Khowar
228  'ki' => 'Gĩkũyũ', # Gikuyu
229  'kiu' => 'Kırmancki', # Kirmanjki
230  'kj' => 'Kwanyama', # Kwanyama
231  'kk' => 'қазақша', # Kazakh (multiple scripts - defaults to Cyrillic)
232  'kk-arab' => "قازاقشا (تٴوتە)\xE2\x80\x8F", # Kazakh Arabic
233  'kk-cyrl' => "қазақша (кирил)\xE2\x80\x8E", # Kazakh Cyrillic
234  'kk-latn' => "qazaqşa (latın)\xE2\x80\x8E", # Kazakh Latin
235  'kk-cn' => "قازاقشا (جۇنگو)\xE2\x80\x8F", # Kazakh (China)
236  'kk-kz' => "қазақша (Қазақстан)\xE2\x80\x8E", # Kazakh (Kazakhstan)
237  'kk-tr' => "qazaqşa (Türkïya)\xE2\x80\x8E", # Kazakh (Turkey)
238  'kl' => 'kalaallisut', # Inuktitut, Greenlandic/Greenlandic/Kalaallisut (kal)
239  'km' => 'ភាសាខ្មែរ', # Khmer, Central
240  'kn' => 'ಕನ್ನಡ', # Kannada
241  'ko' => '한국어', # Korean
242  'ko-kp' => '한국어 (조선)', # Korean (DPRK)
243  'koi' => 'Перем Коми', # Komi-Permyak
244  'kr' => 'Kanuri', # Kanuri, Central
245  'krc' => 'къарачай-малкъар', # Karachay-Balkar
246  'kri' => 'Krio', # Krio
247  'krj' => 'Kinaray-a', # Kinaray-a
248  'krl' => 'karjal', # Karelian
249  'ks' => 'कॉशुर / کٲشُر', # Kashmiri (multiple scripts - defaults to Perso-Arabic)
250  'ks-arab' => 'کٲشُر', # Kashmiri (Perso-Arabic script)
251  'ks-deva' => 'कॉशुर', # Kashmiri (Devanagari script)
252  'ksh' => 'Ripoarisch', # Ripuarian
253  'ku' => 'Kurdî', # Kurdish (multiple scripts - defaults to Latin)
254  'ku-latn' => "Kurdî (latînî)\xE2\x80\x8E", # Northern Kurdish (Latin script)
255  'ku-arab' => "كوردي (عەرەبی)\xE2\x80\x8F", # Northern Kurdish (Arabic script) (falls back to ckb)
256  'kv' => 'коми', # Komi-Zyrian (Cyrillic is common script but also written in Latin script)
257  'kw' => 'kernowek', # Cornish
258  'ky' => 'Кыргызча', # Kirghiz
259  'la' => 'Latina', # Latin
260  'lad' => 'Ladino', # Ladino
261  'lb' => 'Lëtzebuergesch', # Luxemburguish
262  'lbe' => 'лакку', # Lak
263  'lez' => 'лезги', # Lezgi
264  'lfn' => 'Lingua Franca Nova', # Lingua Franca Nova
265  'lg' => 'Luganda', # Ganda
266  'li' => 'Limburgs', # Limburgian
267  'lij' => 'Ligure', # Ligurian
268  'liv' => 'Līvõ kēļ', # Livonian
269  'lki' => 'لەکی‎', # Laki
270  'lmo' => 'lumbaart', # Lombard
271  'ln' => 'lingála', # Lingala
272  'lo' => 'ລາວ', # Laotian
273  'lrc' => 'لۊری شومالی', # Northern Luri
274  'loz' => 'Silozi', # Lozi
275  'lt' => 'lietuvių', # Lithuanian
276  'ltg' => 'latgaļu', # Latgalian
277  'lus' => 'Mizo ţawng', # Mizo/Lushai
278  'luz' => 'لئری دوٙمینی', # Southern Luri
279  'lv' => 'latviešu', # Latvian
280  'lzh' => '文言', # Literary Chinese, T10217
281  'lzz' => 'Lazuri', # Laz
282  'mai' => 'मैथिली', # Maithili
283  'map-bms' => 'Basa Banyumasan', # Banyumasan
284  'mdf' => 'мокшень', # Moksha
285  'mg' => 'Malagasy', # Malagasy
286  'mh' => 'Ebon', # Marshallese
287  'mhr' => 'олык марий', # Eastern Mari
288  'mi' => 'Māori', # Maori
289  'min' => 'Baso Minangkabau', # Minangkabau
290  'mk' => 'македонски', # Macedonian
291  'ml' => 'മലയാളം', # Malayalam
292  'mn' => 'монгол', # Halh Mongolian (Cyrillic) (ISO 639-3: khk)
293  'mo' => 'молдовеняскэ', # Moldovan, deprecated
294  'mr' => 'मराठी', # Marathi
295  'mrj' => 'кырык мары', # Hill Mari
296  'ms' => 'Bahasa Melayu', # Malay
297  'mt' => 'Malti', # Maltese
298  'mus' => 'Mvskoke', # Muskogee/Creek
299  'mwl' => 'Mirandés', # Mirandese
300  'my' => 'မြန်မာဘာသာ', # Burmese
301  'myv' => 'эрзянь', # Erzya
302  'mzn' => 'مازِرونی', # Mazanderani
303  'na' => 'Dorerin Naoero', # Nauruan
304  'nah' => 'Nāhuatl', # Nahuatl (not in ISO 639-3)
305  'nan' => 'Bân-lâm-gú', # Min-nan, T10217
306  'nap' => 'Napulitano', # Neapolitan, T45793
307  'nb' => 'norsk bokmål', # Norwegian (Bokmal)
308  'nds' => 'Plattdüütsch', # Low German ''or'' Low Saxon
309  'nds-nl' => 'Nedersaksies', # aka Nedersaksisch: Dutch Low Saxon
310  'ne' => 'नेपाली', # Nepali
311  'new' => 'नेपाल भाषा', # Newar / Nepal Bhasha
312  'ng' => 'Oshiwambo', # Ndonga
313  'niu' => 'Niuē', # Niuean
314  'nl' => 'Nederlands', # Dutch
315  'nl-informal' => "Nederlands (informeel)\xE2\x80\x8E", # Dutch (informal address ("je"))
316  'nn' => 'norsk nynorsk', # Norwegian (Nynorsk)
317  'no' => 'norsk', # Norwegian macro language (falls back to nb).
318  'nov' => 'Novial', # Novial
319  'nrm' => 'Nouormand', # Norman
320  'nso' => 'Sesotho sa Leboa', # Northern Sotho
321  'nv' => 'Diné bizaad', # Navajo
322  'ny' => 'Chi-Chewa', # Chichewa
323  'oc' => 'occitan', # Occitan
324  'olo' => 'Livvinkarjala', # Livvi-Karelian
325  'om' => 'Oromoo', # Oromo
326  'or' => 'ଓଡ଼ିଆ', # Oriya
327  'os' => 'Ирон', # Ossetic, T31091
328  'pa' => 'ਪੰਜਾਬੀ', # Eastern Punjabi (Gurmukhi script) (pan)
329  'pag' => 'Pangasinan', # Pangasinan
330  'pam' => 'Kapampangan', # Pampanga
331  'pap' => 'Papiamentu', # Papiamentu
332  'pcd' => 'Picard', # Picard
333  'pdc' => 'Deitsch', # Pennsylvania German
334  'pdt' => 'Plautdietsch', # Plautdietsch/Mennonite Low German
335  'pfl' => 'Pälzisch', # Palatinate German
336  'pi' => 'पालि', # Pali
337  'pih' => 'Norfuk / Pitkern', # Norfuk/Pitcairn/Norfolk
338  'pl' => 'polski', # Polish
339  'pms' => 'Piemontèis', # Piedmontese
340  'pnb' => 'پنجابی', # Western Punjabi
341  'pnt' => 'Ποντιακά', # Pontic/Pontic Greek
342  'prg' => 'Prūsiskan', # Prussian
343  'ps' => 'پښتو', # Pashto
344  'pt' => 'português', # Portuguese
345  'pt-br' => 'português do Brasil', # Brazilian Portuguese
346  'qu' => 'Runa Simi', # Southern Quechua
347  'qug' => 'Runa shimi', # Kichwa/Northern Quechua (temporarily used until Kichwa has its own)
348  'rgn' => 'Rumagnôl', # Romagnol
349  'rif' => 'Tarifit', # Tarifit
350  'rm' => 'rumantsch', # Raeto-Romance
351  'rmy' => 'Romani', # Vlax Romany
352  'rn' => 'Kirundi', # Rundi/Kirundi/Urundi
353  'ro' => 'română', # Romanian
354  'roa-rup' => 'armãneashti', # Aromanian (deprecated code, 'rup' exists in ISO 693-3)
355  'roa-tara' => 'tarandíne', # Tarantino
356  'ru' => 'русский', # Russian
357  'rue' => 'русиньскый', # Rusyn
358  'rup' => 'armãneashti', # Aromanian
359  'ruq' => 'Vlăheşte', # Megleno-Romanian (multiple scripts - defaults to Latin)
360  'ruq-cyrl' => 'Влахесте', # Megleno-Romanian (Cyrillic script)
361  # 'ruq-grek' => 'Βλαεστε', # Megleno-Romanian (Greek script)
362  'ruq-latn' => 'Vlăheşte', # Megleno-Romanian (Latin script)
363  'rw' => 'Kinyarwanda', # Kinyarwanda, should possibly be Kinyarwandi
364  'sa' => 'संस्कृतम्', # Sanskrit
365  'sah' => 'саха тыла', # Sakha
366  'sat' => 'Santali', # Santali
367  'sc' => 'sardu', # Sardinian
368  'scn' => 'sicilianu', # Sicilian
369  'sco' => 'Scots', # Scots
370  'sd' => 'سنڌي', # Sindhi
371  'sdc' => 'Sassaresu', # Sassarese
372  'sdh' => 'کوردی خوارگ', # Southern Kurdish
373  'se' => 'sámegiella', # Northern Sami
374  'sei' => 'Cmique Itom', # Seri
375  'ses' => 'Koyraboro Senni', # Koyraboro Senni
376  'sg' => 'Sängö', # Sango/Sangho
377  'sgs' => 'žemaitėška', # Samogitian
378  'sh' => 'srpskohrvatski / српскохрватски', # Serbocroatian
379  'shi' => 'Tašlḥiyt/ⵜⴰⵛⵍⵃⵉⵜ', # Tachelhit (multiple scripts - defaults to Latin)
380  'shi-tfng' => 'ⵜⴰⵛⵍⵃⵉⵜ', # Tachelhit (Tifinagh script)
381  'shi-latn' => 'Tašlḥiyt', # Tachelhit (Latin script)
382  'shn' => 'ၽႃႇသႃႇတႆး ', # Shan
383  'si' => 'සිංහල', # Sinhalese
384  'simple' => 'Simple English', # Simple English
385  'sk' => 'slovenčina', # Slovak
386  'skr' => 'سرائیکی', # Saraiki (multiple scripts - defaults to Arabic)
387  'skr-arab' => 'سرائیکی', # Saraiki (Arabic script)
388  'sl' => 'slovenščina', # Slovenian
389  'sli' => 'Schläsch', # Lower Selisian
390  'sm' => 'Gagana Samoa', # Samoan
391  'sma' => 'Åarjelsaemien', # Southern Sami
392  'sn' => 'chiShona', # Shona
393  'so' => 'Soomaaliga', # Somali
394  'sq' => 'shqip', # Albanian
395  'sr' => 'српски / srpski', # Serbian (multiple scripts - defaults to Cyrillic)
396  'sr-ec' => "српски (ћирилица)\xE2\x80\x8E", # Serbian Cyrillic ekavian
397  'sr-el' => "srpski (latinica)\xE2\x80\x8E", # Serbian Latin ekavian
398  'srn' => 'Sranantongo', # Sranan Tongo
399  'ss' => 'SiSwati', # Swati
400  'st' => 'Sesotho', # Southern Sotho
401  'stq' => 'Seeltersk', # Saterland Frisian
402  'su' => 'Basa Sunda', # Sundanese
403  'sv' => 'svenska', # Swedish
404  'sw' => 'Kiswahili', # Swahili
405  'szl' => 'ślůnski', # Silesian
406  'ta' => 'தமிழ்', # Tamil
407  'tay' => 'Tayal', # Atayal
408  'tcy' => 'ತುಳು', # Tulu
409  'te' => 'తెలుగు', # Telugu
410  'tet' => 'tetun', # Tetun
411  'tg' => 'тоҷикӣ', # Tajiki (falls back to tg-cyrl)
412  'tg-cyrl' => 'тоҷикӣ', # Tajiki (Cyrllic script) (default)
413  'tg-latn' => 'tojikī', # Tajiki (Latin script)
414  'th' => 'ไทย', # Thai
415  'ti' => 'ትግርኛ', # Tigrinya
416  'tk' => 'Türkmençe', # Turkmen
417  'tl' => 'Tagalog', # Tagalog
418  'tly' => 'толышә зывон', # Talysh
419  'tn' => 'Setswana', # Setswana
420  'to' => 'lea faka-Tonga', # Tonga (Tonga Islands)
421  'tpi' => 'Tok Pisin', # Tok Pisin
422  'tr' => 'Türkçe', # Turkish
423  'tru' => 'Ṫuroyo', # Turoyo
424  'ts' => 'Xitsonga', # Tsonga
425  'tt' => 'татарча/tatarça', # Tatar (multiple scripts - defaults to Cyrillic)
426  'tt-cyrl' => 'татарча', # Tatar (Cyrillic script) (default)
427  'tt-latn' => 'tatarça', # Tatar (Latin script)
428  'tum' => 'chiTumbuka', # Tumbuka
429  'tw' => 'Twi', # Twi, (FIXME!)
430  'ty' => 'reo tahiti', # Tahitian
431  'tyv' => 'тыва дыл', # Tyvan
432  'tzm' => 'ⵜⴰⵎⴰⵣⵉⵖⵜ', # Tamazight
433  'udm' => 'удмурт', # Udmurt
434  'ug' => 'ئۇيغۇرچە / Uyghurche', # Uyghur (multiple scripts - defaults to Arabic)
435  'ug-arab' => 'ئۇيغۇرچە', # Uyghur (Arabic script) (default)
436  'ug-latn' => 'Uyghurche', # Uyghur (Latin script)
437  'uk' => 'українська', # Ukrainian
438  'ur' => 'اردو', # Urdu
439  'uz' => 'oʻzbekcha/ўзбекча', # Uzbek (multiple scripts - defaults to Latin)
440  'uz-cyrl' => 'ўзбекча', # Uzbek Cyrillic
441  'uz-latn' => 'oʻzbekcha', # Uzbek Latin (default)
442  've' => 'Tshivenda', # Venda
443  'vec' => 'vèneto', # Venetian
444  'vep' => 'vepsän kel’', # Veps
445  'vi' => 'Tiếng Việt', # Vietnamese
446  'vls' => 'West-Vlams', # West Flemish
447  'vmf' => 'Mainfränkisch', # Upper Franconian, Main-Franconian
448  'vo' => 'Volapük', # Volapük
449  'vot' => 'Vaďďa', # Vod/Votian
450  'vro' => 'Võro', # Võro
451  'wa' => 'walon', # Walloon
452  'war' => 'Winaray', # Waray-Waray
453  'wo' => 'Wolof', # Wolof
454  'wuu' => '吴语', # Wu Chinese
455  'xal' => 'хальмг', # Kalmyk-Oirat
456  'xh' => 'isiXhosa', # Xhosan
457  'xmf' => 'მარგალური', # Mingrelian
458  'yi' => 'ייִדיש', # Yiddish
459  'yo' => 'Yorùbá', # Yoruba
460  'yue' => '粵語', # Cantonese
461  'za' => 'Vahcuengh', # Zhuang
462  'zea' => 'Zeêuws', # Zeeuws/Zeaws
463  'zh' => '中文', # (Zhōng Wén) - Chinese
464  'zh-classical' => '文言', # Classical Chinese/Literary Chinese -- (see T10217)
465  'zh-cn' => "中文(中国大陆)\xE2\x80\x8E", # Chinese (PRC)
466  'zh-hans' => "中文(简体)\xE2\x80\x8E", # Mandarin Chinese (Simplified Chinese script) (cmn-hans)
467  'zh-hant' => "中文(繁體)\xE2\x80\x8E", # Mandarin Chinese (Traditional Chinese script) (cmn-hant)
468  'zh-hk' => "中文(香港)\xE2\x80\x8E", # Chinese (Hong Kong)
469  'zh-min-nan' => 'Bân-lâm-gú', # Min-nan -- (see T10217)
470  'zh-mo' => "中文(澳門)\xE2\x80\x8E", # Chinese (Macau)
471  'zh-my' => "中文(马来西亚)\xE2\x80\x8E", # Chinese (Malaysia)
472  'zh-sg' => "中文(新加坡)\xE2\x80\x8E", # Chinese (Singapore)
473  'zh-tw' => "中文(台灣)\xE2\x80\x8E", # Chinese (Taiwan)
474  'zh-yue' => '粵語', # Cantonese -- (see T10217)
475  'zu' => 'isiZulu' # Zulu
476  ];
477 }
MediaWiki\Languages\Data\Names
Language names in their own languages (language autonyms).
Definition: Names.php:47
is
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------ Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server. Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It 's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use. Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves. The master writes thequery to the binlog when the transaction is committed. The slaves pollthe binlog and start executing the query as soon as it appears. They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes. Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load. MediaWiki 's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database. All edits and other write operations will berefused, with an error returned to the user. This gives the slaves achance to catch up. Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order. A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests. This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it. Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in "lagged slave mode". Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode(). The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time. Multi-row INSERT ...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it 's not practical to guarantee a low-lagenvironment. Lag will usually be less than one second, but mayoccasionally be up to 30 seconds. For scalability, it 's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer. So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn 't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum. In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------ Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks. By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent. Locks willbe held from the time when the query is done until the commit. So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction. Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
own
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your own(ChangesListBooleanFilterGroup or ChangesListStringOptionsFilterGroup). If you create new groups
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:89
script
script(document.cookie)%253c/script%253e</pre ></div > !! end !! test XSS is escaped(inline) !!input< source lang
MediaWiki\Languages\Data
Definition: Names.php:24
in
null for the wiki Added in
Definition: hooks.txt:1581
not
if not
Definition: COPYING.txt:307
or
or
Definition: COPYING.txt:140
code
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline code
Definition: hooks.txt:23
see
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their please see
Definition: database.txt:2
language
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
scripts
The package scripts
Definition: README.txt:1
and
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
used
you don t have to do a grep find to see where the $wgReverseTitle variable is used
Definition: hooks.txt:115
MediaWiki\Languages\Data\Names\$names
static $names
Definition: Names.php:48