r85935 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85934‎ | r85935 | r85936 >
Date:02:05, 13 April 2011
Author:kaldari
Status:ok (Comments)
Tags:
Comment:
let Commons admins override our language list since they know which languages have language templates on Commons
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.LanguageUpWiz.js (modified) (history)
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.LanguageUpWiz.js
@@ -16,368 +16,20 @@
1717 UNKNOWN: 'unknown',
1818
1919 /**
20 - * List of all languages mediaWiki supports ( Avoid an api call to get this same info )
21 - * http://commons.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=languages&format=jsonfm
22 - *
23 - * Languages sorted by name, using tools in $SVNROOT/mediawiki/trunk/tools/langcodes
24 - * This is somewhat better than sorting by code (which produces totally bizarre results) but is not
25 - * a true lexicographic sort
 20+ * List of default languages
2621 */
2722 languages: [
28 - { code: "ace", text: "Ac\u00e8h" },
29 - { code: "af", text: "Afrikaans" },
30 - { code: "ak", text: "Akan" },
31 - { code: "als", text: "Alemannisch" }, // XXX someone fix this please
32 - { code: "gsw", text: "Alemannisch" }, //
33 - { code: "ang", text: "Anglo-Saxon" },
34 - { code: "an", text: "Aragon\u00e9s" },
35 - { code: "roa-rup", text: "Arm\u00e3neashce" },
36 - { code: "frp", text: "Arpetan" },
37 - { code: "ast", text: "Asturianu" },
38 - { code: "gn", text: "Ava\u00f1e'\u1ebd" },
39 - { code: "ay", text: "Aymar aru" },
40 - { code: "az", text: "Az\u0259rbaycan" },
41 - { code: "id", text: "Bahasa Indonesia" },
42 - { code: "ms", text: "Bahasa Melayu" },
43 - { code: "bm", text: "Bamanankan" },
44 - { code: "map-bms", text: "Basa Banyumasan" },
45 - { code: "jv", text: "Basa Jawa" },
46 - { code: "su", text: "Basa Sunda" },
47 - { code: "bcl", text: "Bikol Central" },
48 - { code: "bi", text: "Bislama" },
49 - { code: "bar", text: "Boarisch" },
50 - { code: "bs", text: "Bosanski" },
51 - { code: "br", text: "Brezhoneg" },
52 - { code: "en-gb", text: "British English" },
53 - { code: "nan", text: "B\u00e2n-l\u00e2m-g\u00fa" },
54 - { code: "zh-min-nan", text: "B\u00e2n-l\u00e2m-g\u00fa" },
55 - { code: "ca", text: "Catal\u00e0" },
56 - { code: "ceb", text: "Cebuano" },
57 - { code: "ch", text: "Chamoru" },
58 - { code: "cbk-zam", text: "Chavacano de Zamboanga" },
59 - { code: "ny", text: "Chi-Chewa" },
60 - { code: "cho", text: "Choctaw" },
61 - { code: "sei", text: "Cmique Itom" },
62 - { code: "co", text: "Corsu" },
63 - { code: "cy", text: "Cymraeg" },
64 - { code: "da", text: "Dansk" },
65 - { code: "dk", text: "Dansk (deprecated:da)" }, // XXX deprecated?
66 - { code: "pdc", text: "Deitsch" },
67 - { code: "de", text: "Deutsch" },
68 - { code: "de-formal", text: "Deutsch (Sie-Form)" },
69 - { code: "nv", text: "Din\u00e9 bizaad" },
70 - { code: "dsb", text: "Dolnoserbski" },
71 - { code: "na", text: "Dorerin Naoero" },
72 - { code: "mh", text: "Ebon" },
73 - { code: "et", text: "Eesti" },
74 - { code: "eml", text: "Emili\u00e0n e rumagn\u00f2l" },
75 - { code: "en", text: "English" },
76 - { code: "es", text: "Espa\u00f1ol" },
77 - { code: "eo", text: "Esperanto" },
78 - { code: "ext", text: "Estreme\u00f1u" },
79 - { code: "eu", text: "Euskara" },
80 - { code: "ee", text: "E\u028begbe" },
81 - { code: "hif", text: "Fiji Hindi" }, // XXX fix this
82 - { code: "hif-latn", text: "Fiji Hindi" }, //
83 - { code: "fr", text: "Fran\u00e7ais" },
84 - { code: "frc", text: "Fran\u00e7ais canadien" },
85 - { code: "fy", text: "Frysk" },
86 - { code: "ff", text: "Fulfulde" },
87 - { code: "fur", text: "Furlan" },
88 - { code: "fo", text: "F\u00f8royskt" },
89 - { code: "ga", text: "Gaeilge" },
90 - { code: "gv", text: "Gaelg" },
91 - { code: "sm", text: "Gagana Samoa" },
92 - { code: "gag", text: "Gagauz" },
93 - { code: "gl", text: "Galego" },
94 - { code: "aln", text: "Geg\u00eb" },
95 - { code: "gd", text: "G\u00e0idhlig" },
96 - { code: "ki", text: "G\u0129k\u0169y\u0169" },
97 - { code: "hak", text: "Hak-k\u00e2-fa" },
98 - { code: "haw", text: "Hawai`i" },
99 - { code: "ho", text: "Hiri Motu" },
100 - { code: "hsb", text: "Hornjoserbsce" },
101 - { code: "hr", text: "Hrvatski" },
102 - { code: "io", text: "Ido" },
103 - { code: "ig", text: "Igbo" },
104 - { code: "ilo", text: "Ilokano" },
105 - { code: "hil", text: "Ilonggo" },
106 - { code: "ia", text: "Interlingua" },
107 - { code: "ie", text: "Interlingue" },
108 - { code: "it", text: "Italiano" },
109 - { code: "ik", text: "I\u00f1upiak" },
110 - { code: "jut", text: "Jysk" },
111 - { code: "kl", text: "Kalaallisut" },
112 - { code: "kr", text: "Kanuri" },
113 - { code: "pam", text: "Kapampangan" },
114 - { code: "csb", text: "Kasz\u00ebbsczi" },
115 - { code: "kw", text: "Kernowek" },
116 - { code: "krj", text: "Kinaray-a" },
117 - { code: "rw", text: "Kinyarwanda" },
118 - { code: "rn", text: "Kirundi" },
119 - { code: "sw", text: "Kiswahili" },
120 - { code: "kg", text: "Kongo" },
121 - { code: "avk", text: "Kotava" },
122 - { code: "ht", text: "Krey\u00f2l ayisyen" },
123 - { code: "kri", text: "Krio" },
124 - { code: "ku", text: "Kurd\u00ee \/ \u0643\u0648\u0631\u062f\u06cc" },
125 - { code: "kiu", text: "Kurmanc\u00ee" },
126 - { code: "kj", text: "Kwanyama" },
127 - { code: "lad", text: "Ladino" },
128 - { code: "la", text: "Latina" },
129 - { code: "lv", text: "Latvie\u0161u" },
130 - { code: "lt", text: "Lietuvi\u0173" },
131 - { code: "li", text: "Limburgs" },
132 - { code: "lfn", text: "Lingua Franca Nova" },
133 - { code: "ln", text: "Ling\u00e1la" },
134 - { code: "jbo", text: "Lojban" },
135 - { code: "lg", text: "Luganda" },
136 - { code: "lmo", text: "Lumbaart" },
137 - { code: "lb", text: "L\u00ebtzebuergesch" },
138 - { code: "lij", text: "L\u00edguru" },
139 - { code: "hu", text: "Magyar" },
140 - { code: "mg", text: "Malagasy" },
141 - { code: "mt", text: "Malti" },
142 - { code: "arn", text: "Mapudungun" },
143 - { code: "mwl", text: "Mirand\u00e9s" },
144 - { code: "mus", text: "Mvskoke" },
145 - { code: "cdo", text: "M\u00ecng-d\u0115\u0324ng-ng\u1e73\u0304" },
146 - { code: "mi", text: "M\u0101ori" },
147 - { code: "fj", text: "Na Vosa Vakaviti" },
148 - { code: "nl", text: "Nederlands" },
149 - { code: "nds-nl", text: "Nedersaksisch" },
150 - { code: "niu", text: "Niu\u0113" },
151 - { code: "nap", text: "Nnapulitano" },
152 - { code: "pih", text: "Norfuk \/ Pitkern" },
153 - { code: "nb", text: "Norsk (bokm\u00e5l)" },
154 - { code: "no", text: "Norsk (bokm\u00e5l)" },
155 - { code: "nn", text: "Norsk (nynorsk)" },
156 - { code: "nrm", text: "Nouormand" },
157 - { code: "nov", text: "Novial" },
158 - { code: "nah", text: "N\u0101huatl" },
159 - { code: "cr", text: "N\u0113hiyaw\u0113win \/ \u14c0\u1426\u1403\u152d\u140d\u140f\u1423" },
160 - { code: "uz", text: "O'zbek" },
161 - { code: "oc", text: "Occitan" },
162 - { code: "om", text: "Oromoo" },
163 - { code: "ng", text: "Oshiwambo" },
164 - { code: "hz", text: "Otsiherero" },
165 - { code: "pag", text: "Pangasinan" },
166 - { code: "pap", text: "Papiamentu" },
167 - { code: "pfl", text: "Pf\u00e4lzisch" },
168 - { code: "pcd", text: "Picard" },
169 - { code: "pms", text: "Piemont\u00e8is" },
170 - { code: "nds", text: "Plattd\u00fc\u00fctsch" },
171 - { code: "pdt", text: "Plautdietsch" },
172 - { code: "pl", text: "Polski" },
173 - { code: "pt", text: "Portugu\u00eas" },
174 - { code: "pt-br", text: "Portugu\u00eas do Brasil" },
175 - { code: "aa", text: "Qaf\u00e1r af" },
176 - { code: "kaa", text: "Qaraqalpaqsha" },
177 - { code: "crh", text: "Q\u0131r\u0131mtatarca" },
178 - { code: "ty", text: "Reo M\u0101`ohi" },
179 - { code: "ksh", text: "Ripoarisch" },
180 - { code: "rmy", text: "Romani" },
181 - { code: "ro", text: "Rom\u00e2n\u0103" },
182 - { code: "rm", text: "Rumantsch" },
183 - { code: "qu", text: "Runa Simi" },
184 - { code: "sc", text: "Sardu" },
185 - { code: "sdc", text: "Sassaresu" },
186 - { code: "sli", text: "Schl\u00e4sch" },
187 - { code: "de-ch", text: "Schweizer Hochdeutsch" },
188 - { code: "sco", text: "Scots" },
189 - { code: "stq", text: "Seeltersk" },
190 - { code: "st", text: "Sesotho" },
191 - { code: "nso", text: "Sesotho sa Leboa" },
192 - { code: "tn", text: "Setswana" },
193 - { code: "sq", text: "Shqip" },
194 - { code: "ss", text: "SiSwati" },
195 - { code: "scn", text: "Sicilianu" },
196 - { code: "loz", text: "Silozi" },
197 - { code: "simple", text: "Simple English" },
198 - { code: "sk", text: "Sloven\u010dina" },
199 - { code: "sl", text: "Sloven\u0161\u010dina" },
200 - { code: "so", text: "Soomaaliga" },
201 - { code: "ckb", text: "Soran\u00ee \/ \u06a9\u0648\u0631\u062f\u06cc" },
202 - { code: "srn", text: "Sranantongo" },
203 - { code: "sr-el", text: "Srpski (latinica)" },
204 - { code: "sh", text: "Srpskohrvatski \/ \u0421\u0440\u043f\u0441\u043a\u043e\u0445\u0440\u0432\u0430\u0442\u0441\u043a\u0438" },
205 - { code: "fi", text: "Suomi" },
206 - { code: "sv", text: "Svenska" },
207 - { code: "se", text: "S\u00e1megiella" },
208 - { code: "sg", text: "S\u00e4ng\u00f6" },
209 - { code: "tl", text: "Tagalog" },
210 - { code: "kab", text: "Taqbaylit" },
211 - { code: "roa-tara", text: "Tarand\u00edne" },
212 - { code: "rif", text: "Tarifit" },
213 - { code: "tt-latn", text: "Tatar\u00e7a" },
214 - { code: "shi", text: "Ta\u0161l\u1e25iyt" },
215 - { code: "tet", text: "Tetun" },
216 - { code: "vi", text: "Ti\u1ebfng Vi\u1ec7t" },
217 - { code: "tpi", text: "Tok Pisin" },
218 - { code: "tokipona", text: "Toki Pona" },
219 - { code: "tp", text: "Toki Pona (deprecated:tokipona)" }, // XXX deprecated?
220 - { code: "chy", text: "Tsets\u00eahest\u00e2hese" },
221 - { code: "ve", text: "Tshivenda" },
222 - { code: "tw", text: "Twi" },
223 - { code: "tk", text: "T\u00fcrkmen\u00e7e" },
224 - { code: "tr", text: "T\u00fcrk\u00e7e" },
225 - { code: "ug-latn", text: "Uyghurche\u200e" },
226 - { code: "ug", text: "Uyghurche\u200e \/ \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5" },
227 - { code: "za", text: "Vahcuengh" },
228 - { code: "vep", text: "Vepsan kel'" },
229 - { code: "ruq", text: "Vl\u0103he\u015fte" },
230 - { code: "ruq-latn", text: "Vl\u0103he\u015fte" },
231 - { code: "vo", text: "Volap\u00fck" },
232 - { code: "vec", text: "V\u00e8neto" },
233 - { code: "fiu-vro", text: "V\u00f5ro" },
234 - { code: "vro", text: "V\u00f5ro" },
235 - { code: "wa", text: "Walon" },
236 - { code: "vls", text: "West-Vlams" },
237 - { code: "war", text: "Winaray" },
238 - { code: "wo", text: "Wolof" },
239 - { code: "ts", text: "Xitsonga" },
240 - { code: "yo", text: "Yor\u00f9b\u00e1" },
241 - { code: "diq", text: "Zazaki" },
242 - { code: "zea", text: "Ze\u00eauws" },
243 - { code: "sn", text: "chiShona" },
244 - { code: "tum", text: "chiTumbuka" },
245 - { code: "ike-latn", text: "inuktitut" },
246 - { code: "xh", text: "isiXhosa" },
247 - { code: "zu", text: "isiZulu" },
248 - { code: "to", text: "lea faka-Tonga" },
249 - { code: "tg-latn", text: "tojik\u012b" },
250 - { code: "is", text: "\u00cdslenska" },
251 - { code: "de-at", text: "\u00d6sterreichisches Deutsch" },
252 - { code: "szl", text: "\u015al\u016fnski" },
253 - { code: "el", text: "\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac" },
254 - { code: "pnt", text: "\u03a0\u03bf\u03bd\u03c4\u03b9\u03b1\u03ba\u03ac" },
255 - { code: "av", text: "\u0410\u0432\u0430\u0440" },
256 - { code: "ab", text: "\u0410\u04a7\u0441\u0443\u0430" },
257 - { code: "ba", text: "\u0411\u0430\u0448\u04a1\u043e\u0440\u0442" },
258 - { code: "be", text: "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f" },
259 - { code: "be-tarask", text: "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f (\u0442\u0430\u0440\u0430\u0448\u043a\u0435\u0432\u0456\u0446\u0430)" },
260 - { code: "be-x-old", text: "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f (\u0442\u0430\u0440\u0430\u0448\u043a\u0435\u0432\u0456\u0446\u0430)" },
261 - { code: "bxr", text: "\u0411\u0443\u0440\u044f\u0430\u0434" },
262 - { code: "bg", text: "\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438" },
263 - { code: "ruq-cyrl", text: "\u0412\u043b\u0430\u0445\u0435\u0441\u0442\u0435" },
264 - { code: "inh", text: "\u0413\u0406\u0430\u043b\u0433\u0406\u0430\u0439 \u011eal\u011faj" },
265 - { code: "os", text: "\u0418\u0440\u043e\u043d\u0430\u0443" },
266 - { code: "kv", text: "\u041a\u043e\u043c\u0438" },
267 - { code: "ky", text: "\u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430" },
268 - { code: "lbe", text: "\u041b\u0430\u043a\u043a\u0443" },
269 - { code: "lez", text: "\u041b\u0435\u0437\u0433\u0438" },
270 - { code: "mk", text: "\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438" },
271 - { code: "mdf", text: "\u041c\u043e\u043a\u0448\u0435\u043d\u044c" },
272 - { code: "mo", text: "\u041c\u043e\u043b\u0434\u043e\u0432\u0435\u043d\u044f\u0441\u043a\u044d" },
273 - { code: "mn", text: "\u041c\u043e\u043d\u0433\u043e\u043b" },
274 - { code: "ce", text: "\u041d\u043e\u0445\u0447\u0438\u0439\u043d" },
275 - { code: "mhr", text: "\u041e\u043b\u044b\u043a \u041c\u0430\u0440\u0438\u0439" },
276 - { code: "ru", text: "\u0420\u0443\u0441\u0441\u043a\u0438\u0439" },
277 - { code: "sah", text: "\u0421\u0430\u0445\u0430 \u0442\u044b\u043b\u0430" },
278 - { code: "cu", text: "\u0421\u043b\u043e\u0432\u0463\u0301\u043d\u044c\u0441\u043a\u044a \/ \u2c14\u2c0e\u2c11\u2c02\u2c21\u2c10\u2c20\u2c14\u2c0d\u2c1f" },
279 - { code: "sr-ec", text: "\u0421\u0440\u043f\u0441\u043a\u0438 (\u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430)" },
280 - { code: "sr", text: "\u0421\u0440\u043f\u0441\u043a\u0438 \/ Srpski" },
281 - { code: "tt-cyrl", text: "\u0422\u0430\u0442\u0430\u0440\u0447\u0430" },
282 - { code: "tt", text: "\u0422\u0430\u0442\u0430\u0440\u0447\u0430\/Tatar\u00e7a" },
283 - { code: "tg", text: "\u0422\u043e\u04b7\u0438\u043a\u04e3" },
284 - { code: "tg-cyrl", text: "\u0422\u043e\u04b7\u0438\u043a\u04e3" },
285 - { code: "tyv", text: "\u0422\u044b\u0432\u0430 \u0434\u044b\u043b" },
286 - { code: "udm", text: "\u0423\u0434\u043c\u0443\u0440\u0442" },
287 - { code: "uk", text: "\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430" },
288 - { code: "xal", text: "\u0425\u0430\u043b\u044c\u043c\u0433" },
289 - { code: "cv", text: "\u0427\u04d1\u0432\u0430\u0448\u043b\u0430" },
290 - { code: "myv", text: "\u042d\u0440\u0437\u044f\u043d\u044c" },
291 - { code: "kk", text: "\u049a\u0430\u0437\u0430\u049b\u0448\u0430" },
292 - { code: "hy", text: "\u0540\u0561\u0575\u0565\u0580\u0565\u0576" },
293 - { code: "yi", text: "\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9" },
294 - { code: "he", text: "\u05e2\u05d1\u05e8\u05d9\u05ea" },
295 - { code: "ug-arab", text: "\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5" },
296 - { code: "ur", text: "\u0627\u0631\u062f\u0648" },
297 - { code: "ar", text: "\u0627\u0644\u0639\u0631\u0628\u064a\u0629" },
298 - { code: "bqi", text: "\u0628\u062e\u062a\u064a\u0627\u0631\u064a" },
299 - { code: "bcc", text: "\u0628\u0644\u0648\u0686\u06cc \u0645\u06a9\u0631\u0627\u0646\u06cc" },
300 - { code: "sd", text: "\u0633\u0646\u068c\u064a" },
301 - { code: "fa", text: "\u0641\u0627\u0631\u0633\u06cc" },
302 - { code: "arz", text: "\u0645\u0635\u0631\u0649" },
303 - { code: "mzn", text: "\u0645\u064e\u0632\u0650\u0631\u0648\u0646\u064a" },
304 - { code: "ha", text: "\u0647\u064e\u0648\u064f\u0633\u064e" },
305 - { code: "pnb", text: "\u067e\u0646\u062c\u0627\u0628\u06cc" },
306 - { code: "ps", text: "\u067e\u069a\u062a\u0648" },
307 - { code: "glk", text: "\u06af\u06cc\u0644\u06a9\u06cc" },
308 - { code: "arc", text: "\u0710\u072a\u0721\u071d\u0710" },
309 - { code: "dv", text: "\u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0" },
310 - { code: "ks", text: "\u0915\u0936\u094d\u092e\u0940\u0930\u0940 - (\u0643\u0634\u0645\u064a\u0631\u064a)" },
311 - { code: "new", text: "\u0928\u0947\u092a\u093e\u0932 \u092d\u093e\u0937\u093e" },
312 - { code: "ne", text: "\u0928\u0947\u092a\u093e\u0932\u0940" },
313 - { code: "pi", text: "\u092a\u093e\u093f\u0934" },
314 - { code: "hif-deva", text: "\u092b\u093c\u0940\u091c\u0940 \u0939\u093f\u0928\u094d\u0926\u0940" },
315 - { code: "bh", text: "\u092d\u094b\u091c\u092a\u0941\u0930\u0940" },
316 - { code: "mr", text: "\u092e\u0930\u093e\u0920\u0940" },
317 - { code: "mai", text: "\u092e\u0948\u0925\u093f\u0932\u0940" },
318 - { code: "sa", text: "\u0938\u0902\u0938\u094d\u0915\u0943\u0924" },
319 - { code: "hi", text: "\u0939\u093f\u0928\u094d\u0926\u0940" },
320 - { code: "as", text: "\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be" },
321 - { code: "bpy", text: "\u0987\u09ae\u09be\u09b0 \u09a0\u09be\u09b0\/\u09ac\u09bf\u09b7\u09cd\u09a3\u09c1\u09aa\u09cd\u09b0\u09bf\u09af\u09bc\u09be \u09ae\u09a3\u09bf\u09aa\u09c1\u09b0\u09c0" },
322 - { code: "bn", text: "\u09ac\u09be\u0982\u09b2\u09be" },
323 - { code: "pa", text: "\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40" },
324 - { code: "gu", text: "\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0" },
325 - { code: "or", text: "\u0b13\u0b21\u0b3c\u0b3f\u0b06" },
326 - { code: "ta", text: "\u0ba4\u0bae\u0bbf\u0bb4\u0bcd" },
327 - { code: "te", text: "\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" },
328 - { code: "sma", text: "\u00c5arjelsaemien" },
329 - { code: "kn", text: "\u0c95\u0ca8\u0ccd\u0ca8\u0ca1" },
330 - { code: "tcy", text: "\u0ca4\u0cc1\u0cb3\u0cc1" },
331 - { code: "ml", text: "\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" },
332 - { code: "si", text: "\u0dc3\u0dd2\u0d82\u0dc4\u0dbd" },
333 - { code: "th", text: "\u0e44\u0e17\u0e22" },
334 - { code: "lo", text: "\u0ea5\u0eb2\u0ea7" },
335 - { code: "dz", text: "\u0f47\u0f7c\u0f44\u0f0b\u0f41" },
336 - { code: "bo", text: "\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42" },
337 - { code: "my", text: "\u1019\u103c\u1014\u103a\u1019\u102c\u1018\u102c\u101e\u102c" },
338 - { code: "cs", text: "\u010cesky" },
339 - { code: "xmf", text: "\u10db\u10d0\u10e0\u10d2\u10d0\u10da\u10e3\u10e0\u10d8" },
340 - { code: "ka", text: "\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8" },
341 - { code: "ti", text: "\u1275\u130d\u122d\u129b" },
342 - { code: "am", text: "\u12a0\u121b\u122d\u129b" },
343 - { code: "chr", text: "\u13e3\u13b3\u13a9" },
344 - { code: "ike-cans", text: "\u1403\u14c4\u1483\u144e\u1450\u1466" },
345 - { code: "iu", text: "\u1403\u14c4\u1483\u144e\u1450\u1466\/inuktitut" },
346 - { code: "km", text: "\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a" },
347 - { code: "bat-smg", text: "\u017demait\u0117\u0161ka" },
348 - { code: "bug", text: "\u1a05\u1a14 \u1a15\u1a18\u1a01\u1a17" },
349 - { code: "grc", text: "\u1f08\u03c1\u03c7\u03b1\u03af\u03b1 \u1f11\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u1f74" },
350 - { code: "ku-latn", text: "\u202aKurd\u00ee (lat\u00een\u00ee)\u202c" },
351 - { code: "kk-tr", text: "\u202aQazaq\u015fa (T\u00fcrk\u00efya)\u202c" },
352 - { code: "kk-latn", text: "\u202aQazaq\u015fa (lat\u0131n)\u202c" },
353 - { code: "crh-latn", text: "\u202aQ\u0131r\u0131mtatarca (Latin)\u202c" },
354 - { code: "crh-cyrl", text: "\u202a\u041a\u044a\u044b\u0440\u044b\u043c\u0442\u0430\u0442\u0430\u0440\u0434\u0436\u0430 (\u041a\u0438\u0440\u0438\u043b\u043b)\u202c" },
355 - { code: "kk-cyrl", text: "\u202a\u049a\u0430\u0437\u0430\u049b\u0448\u0430 (\u043a\u0438\u0440\u0438\u043b)\u202c" },
356 - { code: "kk-kz", text: "\u202a\u049a\u0430\u0437\u0430\u049b\u0448\u0430 (\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d)\u202c" },
357 - { code: "kk-arab", text: "\u202b\u0642\u0627\u0632\u0627\u0642\u0634\u0627 (\u062a\u0674\u0648\u062a\u06d5)\u202c" },
358 - { code: "kk-cn", text: "\u202b\u0642\u0627\u0632\u0627\u0642\u0634\u0627 (\u062c\u06c7\u0646\u06af\u0648)\u202c" },
359 - { code: "ku-arab", text: "\u202b\u0643\u0648\u0631\u062f\u064a (\u0639\u06d5\u0631\u06d5\u0628\u06cc)\u202c" },
360 - { code: "zh", text: "\u4e2d\u6587" },
361 - { code: "zh-cn", text: "\u4e2d\u6587(\u4e2d\u56fd\u5927\u9646)" },
362 - { code: "zh-tw", text: "\u4e2d\u6587(\u53f0\u7063)" },
363 - { code: "zh-sg", text: "\u4e2d\u6587(\u65b0\u52a0\u5761)" },
364 - { code: "zh-mo", text: "\u4e2d\u6587(\u6fb3\u9580)" },
365 - { code: "zh-hans", text: "\u4e2d\u6587(\u7b80\u4f53)" },
366 - { code: "zh-hant", text: "\u4e2d\u6587(\u7e41\u9ad4)" },
367 - { code: "zh-hk", text: "\u4e2d\u6587(\u9999\u6e2f)" },
368 - { code: "zh-my", text: "\u4e2d\u6587(\u9a6c\u6765\u897f\u4e9a)" },
369 - { code: "wuu", text: "\u5434\u8bed" },
370 - { code: "lzh", text: "\u6587\u8a00" },
371 - { code: "zh-classical", text: "\u6587\u8a00" },
372 - { code: "ja", text: "\u65e5\u672c\u8a9e" },
373 - { code: "yue", text: "\u7cb5\u8a9e" },
374 - { code: "zh-yue", text: "\u7cb5\u8a9e" },
375 - { code: "gan", text: "\u8d1b\u8a9e" },
376 - { code: "gan-hant", text: "\u8d1b\u8a9e(\u7e41\u9ad4)" },
377 - { code: "gan-hans", text: "\u8d63\u8bed(\u7b80\u4f53)" },
378 - { code: "ii", text: "\ua187\ua259" },
379 - { code: "ko", text: "\ud55c\uad6d\uc5b4" },
380 - { code: "ko-kp", text: "\ud55c\uad6d\uc5b4 (\uc870\uc120)" },
381 - { code: "got", text: "\ud800\udf32\ud800\udf3f\ud800\udf44\ud800\udf39\ud800\udf43\ud800\udf3a" }
 23+ { lang: "de", text: "Deutsch" },
 24+ { lang: "en", text: "English" },
 25+ { lang: "es", text: "Español" },
 26+ { lang: "fr", text: "Français" },
 27+ { lang: "it", text: "Italiano" },
 28+ { lang: "nl", text: "Nederlands" },
 29+ { lang: "pl", text: "Polski" },
 30+ { lang: "pt", text: "Português" },
 31+ { lang: "ru", text: "Русский" },
 32+ { lang: "zh", text: "中文" },
 33+ { lang: "ja", text: "日本語" },
38234 ],
38335
38436 /**
@@ -389,15 +41,18 @@
39042 if ( mw.LanguageUpWiz.initialized ) {
39143 return;
39244 }
 45+ if ( typeof LanguageHandler != 'undefined' ) {
 46+ this.languages = LanguageHandler.languages;
 47+ }
39348 mw.LanguageUpWiz._codes = {};
39449 var select = $j( '<select/>' );
39550 $j.each( mw.LanguageUpWiz.languages, function( i, language ) {
39651 select.append(
39752 $j( '<option>' )
398 - .attr( 'value', language.code )
 53+ .attr( 'value', language.lang )
39954 .append( language.text )
40055 );
401 - mw.LanguageUpWiz._codes[language.code] = language.text;
 56+ mw.LanguageUpWiz._codes[language.lang] = language.text;
40257 } );
40358 mw.LanguageUpWiz.$_select = select;
40459 mw.LanguageUpWiz.initialized = true;
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -561,6 +561,11 @@
562562 */
563563 createInterface: function( selector ) {
564564 var _this = this;
 565+
 566+ // load list of languages so we'll have it ready when description interfaces are created
 567+ // XXX replace this code once any of the following bugs are fixed: 25845, 27535, 27561
 568+ var languageHandlerUrl = wgServer + wgScript + '?' + $.param( { 'title': 'MediaWiki:LanguageHandler.js', 'action': 'raw', 'ctype': 'text/javascript' } );
 569+ mw.loader.load( languageHandlerUrl );
565570
566571 // remove first spinner
567572 $j( '#mwe-first-spinner' ).remove();

Follow-up revisions

RevisionCommit summaryAuthorDate
r112250Follow-up r85935: Add key for JavaScript customisation page....siebrand22:14, 23 February 2012

Comments

#Comment by Kaldari (talk | contribs)   17:24, 21 April 2011

Why is this rev deferred?

#Comment by Siebrand (talk | contribs)   21:41, 23 February 2012

bugzilla:34652 was opened for this. I guess an explanation on how to update the list in Commons itself would suffice to have this issue closed. Setting to new.

#Comment by Brion VIBBER (talk | contribs)   22:39, 23 February 2012

There was actually a regression in r107641 which dropped the server portion of the URL, breaking the load. Fixed in r112250

Status & tagging log