MediaWiki  1.29.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  'kg' => 'Kongo', # Kongo, (FIXME!) should probaly be KiKongo or KiKoongo
226  'khw' => 'کھوار', # Khowar
227  'ki' => 'Gĩkũyũ', # Gikuyu
228  'kiu' => 'Kırmancki', # Kirmanjki
229  'kj' => 'Kwanyama', # Kwanyama
230  'kk' => 'қазақша', # Kazakh (multiple scripts - defaults to Cyrillic)
231  'kk-arab' => "قازاقشا (تٴوتە)\xE2\x80\x8F", # Kazakh Arabic
232  'kk-cyrl' => "қазақша (кирил)\xE2\x80\x8E", # Kazakh Cyrillic
233  'kk-latn' => "qazaqşa (latın)\xE2\x80\x8E", # Kazakh Latin
234  'kk-cn' => "قازاقشا (جۇنگو)\xE2\x80\x8F", # Kazakh (China)
235  'kk-kz' => "қазақша (Қазақстан)\xE2\x80\x8E", # Kazakh (Kazakhstan)
236  'kk-tr' => "qazaqşa (Türkïya)\xE2\x80\x8E", # Kazakh (Turkey)
237  'kl' => 'kalaallisut', # Inuktitut, Greenlandic/Greenlandic/Kalaallisut (kal)
238  'km' => 'ភាសាខ្មែរ', # Khmer, Central
239  'kn' => 'ಕನ್ನಡ', # Kannada
240  'ko' => '한국어', # Korean
241  'ko-kp' => '한국어 (조선)', # Korean (DPRK)
242  'koi' => 'Перем Коми', # Komi-Permyak
243  'kr' => 'Kanuri', # Kanuri, Central
244  'krc' => 'къарачай-малкъар', # Karachay-Balkar
245  'kri' => 'Krio', # Krio
246  'krj' => 'Kinaray-a', # Kinaray-a
247  'krl' => 'karjal', # Karelian
248  'ks' => 'कॉशुर / کٲشُر', # Kashmiri (multiple scripts - defaults to Perso-Arabic)
249  'ks-arab' => 'کٲشُر', # Kashmiri (Perso-Arabic script)
250  'ks-deva' => 'कॉशुर', # Kashmiri (Devanagari script)
251  'ksh' => 'Ripoarisch', # Ripuarian
252  'ku' => 'Kurdî', # Kurdish (multiple scripts - defaults to Latin)
253  'ku-latn' => "Kurdî (latînî)\xE2\x80\x8E", # Northern Kurdish (Latin script)
254  'ku-arab' => "كوردي (عەرەبی)\xE2\x80\x8F", # Northern Kurdish (Arabic script) (falls back to ckb)
255  'kv' => 'коми', # Komi-Zyrian (Cyrillic is common script but also written in Latin script)
256  'kw' => 'kernowek', # Cornish
257  'ky' => 'Кыргызча', # Kirghiz
258  'la' => 'Latina', # Latin
259  'lad' => 'Ladino', # Ladino
260  'lb' => 'Lëtzebuergesch', # Luxemburguish
261  'lbe' => 'лакку', # Lak
262  'lez' => 'лезги', # Lezgi
263  'lfn' => 'Lingua Franca Nova', # Lingua Franca Nova
264  'lg' => 'Luganda', # Ganda
265  'li' => 'Limburgs', # Limburgian
266  'lij' => 'Ligure', # Ligurian
267  'liv' => 'Līvõ kēļ', # Livonian
268  'lki' => 'لەکی‎', # Laki
269  'lmo' => 'lumbaart', # Lombard
270  'ln' => 'lingála', # Lingala
271  'lo' => 'ລາວ', # Laotian
272  'lrc' => 'لۊری شومالی', # Northern Luri
273  'loz' => 'Silozi', # Lozi
274  'lt' => 'lietuvių', # Lithuanian
275  'ltg' => 'latgaļu', # Latgalian
276  'lus' => 'Mizo ţawng', # Mizo/Lushai
277  'luz' => 'لئری دوٙمینی', # Southern Luri
278  'lv' => 'latviešu', # Latvian
279  'lzh' => '文言', # Literary Chinese, T10217
280  'lzz' => 'Lazuri', # Laz
281  'mai' => 'मैथिली', # Maithili
282  'map-bms' => 'Basa Banyumasan', # Banyumasan
283  'mdf' => 'мокшень', # Moksha
284  'mg' => 'Malagasy', # Malagasy
285  'mh' => 'Ebon', # Marshallese
286  'mhr' => 'олык марий', # Eastern Mari
287  'mi' => 'Māori', # Maori
288  'min' => 'Baso Minangkabau', # Minangkabau
289  'mk' => 'македонски', # Macedonian
290  'ml' => 'മലയാളം', # Malayalam
291  'mn' => 'монгол', # Halh Mongolian (Cyrillic) (ISO 639-3: khk)
292  'mo' => 'молдовеняскэ', # Moldovan, deprecated
293  'mr' => 'मराठी', # Marathi
294  'mrj' => 'кырык мары', # Hill Mari
295  'ms' => 'Bahasa Melayu', # Malay
296  'mt' => 'Malti', # Maltese
297  'mus' => 'Mvskoke', # Muskogee/Creek
298  'mwl' => 'Mirandés', # Mirandese
299  'my' => 'မြန်မာဘာသာ', # Burmese
300  'myv' => 'эрзянь', # Erzya
301  'mzn' => 'مازِرونی', # Mazanderani
302  'na' => 'Dorerin Naoero', # Nauruan
303  'nah' => 'Nāhuatl', # Nahuatl (not in ISO 639-3)
304  'nan' => 'Bân-lâm-gú', # Min-nan, T10217
305  'nap' => 'Napulitano', # Neapolitan, T45793
306  'nb' => 'norsk bokmål', # Norwegian (Bokmal)
307  'nds' => 'Plattdüütsch', # Low German ''or'' Low Saxon
308  'nds-nl' => 'Nedersaksies', # aka Nedersaksisch: Dutch Low Saxon
309  'ne' => 'नेपाली', # Nepali
310  'new' => 'नेपाल भाषा', # Newar / Nepal Bhasha
311  'ng' => 'Oshiwambo', # Ndonga
312  'niu' => 'Niuē', # Niuean
313  'nl' => 'Nederlands', # Dutch
314  'nl-informal' => "Nederlands (informeel)\xE2\x80\x8E", # Dutch (informal address ("je"))
315  'nn' => 'norsk nynorsk', # Norwegian (Nynorsk)
316  'no' => 'norsk bokmål', # Norwegian (falls back to nb).
317  'nov' => 'Novial', # Novial
318  'nrm' => 'Nouormand', # Norman
319  'nso' => 'Sesotho sa Leboa', # Northern Sotho
320  'nv' => 'Diné bizaad', # Navajo
321  'ny' => 'Chi-Chewa', # Chichewa
322  'oc' => 'occitan', # Occitan
323  'olo' => 'Livvinkarjala', # Livvi-Karelian
324  'om' => 'Oromoo', # Oromo
325  'or' => 'ଓଡ଼ିଆ', # Oriya
326  'os' => 'Ирон', # Ossetic, T31091
327  'pa' => 'ਪੰਜਾਬੀ', # Eastern Punjabi (Gurmukhi script) (pan)
328  'pag' => 'Pangasinan', # Pangasinan
329  'pam' => 'Kapampangan', # Pampanga
330  'pap' => 'Papiamentu', # Papiamentu
331  'pcd' => 'Picard', # Picard
332  'pdc' => 'Deitsch', # Pennsylvania German
333  'pdt' => 'Plautdietsch', # Plautdietsch/Mennonite Low German
334  'pfl' => 'Pälzisch', # Palatinate German
335  'pi' => 'पालि', # Pali
336  'pih' => 'Norfuk / Pitkern', # Norfuk/Pitcairn/Norfolk
337  'pl' => 'polski', # Polish
338  'pms' => 'Piemontèis', # Piedmontese
339  'pnb' => 'پنجابی', # Western Punjabi
340  'pnt' => 'Ποντιακά', # Pontic/Pontic Greek
341  'prg' => 'Prūsiskan', # Prussian
342  'ps' => 'پښتو', # Pashto
343  'pt' => 'português', # Portuguese
344  'pt-br' => 'português do Brasil', # Brazilian Portuguese
345  'qu' => 'Runa Simi', # Southern Quechua
346  'qug' => 'Runa shimi', # Kichwa/Northern Quechua (temporarily used until Kichwa has its own)
347  'rgn' => 'Rumagnôl', # Romagnol
348  'rif' => 'Tarifit', # Tarifit
349  'rm' => 'rumantsch', # Raeto-Romance
350  'rmy' => 'Romani', # Vlax Romany
351  'rn' => 'Kirundi', # Rundi/Kirundi/Urundi
352  'ro' => 'română', # Romanian
353  'roa-rup' => 'armãneashti', # Aromanian (deprecated code, 'rup' exists in ISO 693-3)
354  'roa-tara' => 'tarandíne', # Tarantino
355  'ru' => 'русский', # Russian
356  'rue' => 'русиньскый', # Rusyn
357  'rup' => 'armãneashti', # Aromanian
358  'ruq' => 'Vlăheşte', # Megleno-Romanian (multiple scripts - defaults to Latin)
359  'ruq-cyrl' => 'Влахесте', # Megleno-Romanian (Cyrillic script)
360  # 'ruq-grek' => 'Βλαεστε', # Megleno-Romanian (Greek script)
361  'ruq-latn' => 'Vlăheşte', # Megleno-Romanian (Latin script)
362  'rw' => 'Kinyarwanda', # Kinyarwanda, should possibly be Kinyarwandi
363  'sa' => 'संस्कृतम्', # Sanskrit
364  'sah' => 'саха тыла', # Sakha
365  'sat' => 'Santali', # Santali
366  'sc' => 'sardu', # Sardinian
367  'scn' => 'sicilianu', # Sicilian
368  'sco' => 'Scots', # Scots
369  'sd' => 'سنڌي', # Sindhi
370  'sdc' => 'Sassaresu', # Sassarese
371  'sdh' => 'کوردی خوارگ', # Southern Kurdish
372  'se' => 'sámegiella', # Northern Sami
373  'sei' => 'Cmique Itom', # Seri
374  'ses' => 'Koyraboro Senni', # Koyraboro Senni
375  'sg' => 'Sängö', # Sango/Sangho
376  'sgs' => 'žemaitėška', # Samogitian
377  'sh' => 'srpskohrvatski / српскохрватски', # Serbocroatian
378  'shi' => 'Tašlḥiyt/ⵜⴰⵛⵍⵃⵉⵜ', # Tachelhit (multiple scripts - defaults to Latin)
379  'shi-tfng' => 'ⵜⴰⵛⵍⵃⵉⵜ', # Tachelhit (Tifinagh script)
380  'shi-latn' => 'Tašlḥiyt', # Tachelhit (Latin script)
381  'shn' => 'ၽႃႇသႃႇတႆး ', # Shan
382  'si' => 'සිංහල', # Sinhalese
383  'simple' => 'Simple English', # Simple English
384  'sk' => 'slovenčina', # Slovak
385  'sl' => 'slovenščina', # Slovenian
386  'sli' => 'Schläsch', # Lower Selisian
387  'sm' => 'Gagana Samoa', # Samoan
388  'sma' => 'Åarjelsaemien', # Southern Sami
389  'sn' => 'chiShona', # Shona
390  'so' => 'Soomaaliga', # Somali
391  'sq' => 'shqip', # Albanian
392  'sr' => 'српски / srpski', # Serbian (multiple scripts - defaults to Cyrillic)
393  'sr-ec' => "српски (ћирилица)\xE2\x80\x8E", # Serbian Cyrillic ekavian
394  'sr-el' => "srpski (latinica)\xE2\x80\x8E", # Serbian Latin ekavian
395  'srn' => 'Sranantongo', # Sranan Tongo
396  'ss' => 'SiSwati', # Swati
397  'st' => 'Sesotho', # Southern Sotho
398  'stq' => 'Seeltersk', # Saterland Frisian
399  'su' => 'Basa Sunda', # Sundanese
400  'sv' => 'svenska', # Swedish
401  'sw' => 'Kiswahili', # Swahili
402  'szl' => 'ślůnski', # Silesian
403  'ta' => 'தமிழ்', # Tamil
404  'tcy' => 'ತುಳು', # Tulu
405  'te' => 'తెలుగు', # Telugu
406  'tet' => 'tetun', # Tetun
407  'tg' => 'тоҷикӣ', # Tajiki (falls back to tg-cyrl)
408  'tg-cyrl' => 'тоҷикӣ', # Tajiki (Cyrllic script) (default)
409  'tg-latn' => 'tojikī', # Tajiki (Latin script)
410  'th' => 'ไทย', # Thai
411  'ti' => 'ትግርኛ', # Tigrinya
412  'tk' => 'Türkmençe', # Turkmen
413  'tl' => 'Tagalog', # Tagalog
414  'tly' => 'толышә зывон', # Talysh
415  'tn' => 'Setswana', # Setswana
416  'to' => 'lea faka-Tonga', # Tonga (Tonga Islands)
417  'tokipona' => 'Toki Pona', # Toki Pona
418  'tpi' => 'Tok Pisin', # Tok Pisin
419  'tr' => 'Türkçe', # Turkish
420  'tru' => 'Ṫuroyo', # Turoyo
421  'ts' => 'Xitsonga', # Tsonga
422  'tt' => 'татарча/tatarça', # Tatar (multiple scripts - defaults to Cyrillic)
423  'tt-cyrl' => 'татарча', # Tatar (Cyrillic script) (default)
424  'tt-latn' => 'tatarça', # Tatar (Latin script)
425  'tum' => 'chiTumbuka', # Tumbuka
426  'tw' => 'Twi', # Twi, (FIXME!)
427  'ty' => 'reo tahiti', # Tahitian
428  'tyv' => 'тыва дыл', # Tyvan
429  'tzm' => 'ⵜⴰⵎⴰⵣⵉⵖⵜ', # Tamazight
430  'udm' => 'удмурт', # Udmurt
431  'ug' => 'ئۇيغۇرچە / Uyghurche', # Uyghur (multiple scripts - defaults to Arabic)
432  'ug-arab' => 'ئۇيغۇرچە', # Uyghur (Arabic script) (default)
433  'ug-latn' => 'Uyghurche', # Uyghur (Latin script)
434  'uk' => 'українська', # Ukrainian
435  'ur' => 'اردو', # Urdu
436  'uz' => 'oʻzbekcha/ўзбекча', # Uzbek (multiple scripts - defaults to Latin)
437  'uz-cyrl' => 'ўзбекча', # Uzbek Cyrillic
438  'uz-latn' => 'oʻzbekcha', # Uzbek Latin (default)
439  've' => 'Tshivenda', # Venda
440  'vec' => 'vèneto', # Venetian
441  'vep' => 'vepsän kel’', # Veps
442  'vi' => 'Tiếng Việt', # Vietnamese
443  'vls' => 'West-Vlams', # West Flemish
444  'vmf' => 'Mainfränkisch', # Upper Franconian, Main-Franconian
445  'vo' => 'Volapük', # Volapük
446  'vot' => 'Vaďďa', # Vod/Votian
447  'vro' => 'Võro', # Võro
448  'wa' => 'walon', # Walloon
449  'war' => 'Winaray', # Waray-Waray
450  'wo' => 'Wolof', # Wolof
451  'wuu' => '吴语', # Wu Chinese
452  'xal' => 'хальмг', # Kalmyk-Oirat
453  'xh' => 'isiXhosa', # Xhosan
454  'xmf' => 'მარგალური', # Mingrelian
455  'yi' => 'ייִדיש', # Yiddish
456  'yo' => 'Yorùbá', # Yoruba
457  'yue' => '粵語', # Cantonese
458  'za' => 'Vahcuengh', # Zhuang
459  'zea' => 'Zeêuws', # Zeeuws/Zeaws
460  'zh' => '中文', # (Zhōng Wén) - Chinese
461  'zh-classical' => '文言', # Classical Chinese/Literary Chinese -- (see T10217)
462  'zh-cn' => "中文(中国大陆)\xE2\x80\x8E", # Chinese (PRC)
463  'zh-hans' => "中文(简体)\xE2\x80\x8E", # Mandarin Chinese (Simplified Chinese script) (cmn-hans)
464  'zh-hant' => "中文(繁體)\xE2\x80\x8E", # Mandarin Chinese (Traditional Chinese script) (cmn-hant)
465  'zh-hk' => "中文(香港)\xE2\x80\x8E", # Chinese (Hong Kong)
466  'zh-min-nan' => 'Bân-lâm-gú', # Min-nan -- (see T10217)
467  'zh-mo' => "中文(澳門)\xE2\x80\x8E", # Chinese (Macau)
468  'zh-my' => "中文(马来西亚)\xE2\x80\x8E", # Chinese (Malaysia)
469  'zh-sg' => "中文(新加坡)\xE2\x80\x8E", # Chinese (Singapore)
470  'zh-tw' => "中文(台灣)\xE2\x80\x8E", # Chinese (Taiwan)
471  'zh-yue' => '粵語', # Cantonese -- (see T10217)
472  'zu' => 'isiZulu' # Zulu
473  ];
474 }
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
used
you don t have to do a grep find to see where the $wgReverseTitle variable is used
Definition: hooks.txt:117
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
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
in
null for the wiki Added in
Definition: hooks.txt:1572
not
if not
Definition: COPYING.txt:307
or
or
Definition: COPYING.txt:140
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
MediaWiki\Languages\Data\Names\$names
static $names
Definition: Names.php:48