c580b14a2350e1379df3259132242e3182a15f25
[lhc/web/wiklou.git] / languages / Language.php
1 <?php
2 #--------------------------------------------------------------------------
3 # Constants
4 #--------------------------------------------------------------------------
5
6 # Magic words
7 define("MAG_REDIRECT", 0);
8 define("MAG_NOTOC", 1);
9 define("MAG_START", 2);
10 define("MAG_CURRENTMONTH", 3);
11 define("MAG_CURRENTMONTHNAME", 4);
12 define("MAG_CURRENTDAY", 5);
13 define("MAG_CURRENTDAYNAME", 6);
14 define("MAG_CURRENTYEAR", 7);
15 define("MAG_CURRENTTIME", 8);
16 define("MAG_NUMBEROFARTICLES", 9);
17 define("MAG_CURRENTMONTHNAMEGEN", 10);
18 define("MAG_MSG", 11);
19 define("MAG_SUBST", 12);
20 define("MAG_MSGNW", 13);
21 define("MAG_NOEDITSECTION", 14);
22 define("MAG_END", 15);
23 define("MAG_IMG_THUMBNAIL", 16);
24 define("MAG_IMG_RIGHT", 17);
25 define("MAG_IMG_LEFT", 18);
26 define("MAG_IMG_NONE", 19);
27 define("MAG_IMG_WIDTH", 20);
28 define("MAG_IMG_CENTER", 21);
29
30
31 #--------------------------------------------------------------------------
32 # Language-specific text
33 #--------------------------------------------------------------------------
34
35 # NOTE: To turn off "Current Events" in the sidebar,
36 # set "currentevents" => "-"
37
38 # NOTE: To turn off "Disclaimers" in the title links,
39 # set "disclaimers" => "-"
40
41 # The names of the namespaces can be set here, but the numbers
42 # are magical, so don't change or move them! The Namespace class
43 # encapsulates some of the magic-ness.
44 #
45
46 if($wgMetaNamespace === FALSE)
47 $wgMetaNamespace = str_replace( " ", "_", $wgSitename );
48
49 /* private */ $wgNamespaceNamesEn = array(
50 -2 => "Media",
51 -1 => "Special",
52 0 => "",
53 1 => "Talk",
54 2 => "User",
55 3 => "User_talk",
56 4 => $wgMetaNamespace,
57 5 => $wgMetaNamespace . "_talk",
58 6 => "Image",
59 7 => "Image_talk",
60 8 => "MediaWiki",
61 9 => "MediaWiki_talk"
62
63 # Temporarily commented out:
64 /*,
65 10 => "Template",
66 11 => "Template_talk"*/
67 );
68
69 /* private */ $wgDefaultUserOptionsEn = array(
70 "quickbar" => 1, "underline" => 1, "hover" => 1,
71 "cols" => 80, "rows" => 25, "searchlimit" => 20,
72 "contextlines" => 5, "contextchars" => 50,
73 "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
74 "highlightbroken" => 1, "stubthreshold" => 0,
75 "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
76 "showtoolbar" =>1,
77 "date" => 0
78 );
79
80 /* private */ $wgQuickbarSettingsEn = array(
81 "None", "Fixed left", "Fixed right", "Floating left"
82 );
83
84 /* private */ $wgSkinNamesEn = array(
85 "Standard", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
86 );
87
88 /* private */ $wgMathNamesEn = array(
89 "Always render PNG",
90 "HTML if very simple or else PNG",
91 "HTML if possible or else PNG",
92 "Leave it as TeX (for text browsers)",
93 "Recommended for modern browsers"
94 );
95
96 /* private */ $wgDateFormatsEn = array(
97 "No preference",
98 "January 15, 2001",
99 "15 January 2001",
100 "2001 January 15",
101 "2001-01-15"
102 );
103
104 /* private */ $wgUserTogglesEn = array(
105 "hover" => "Show hoverbox over wiki links",
106 "underline" => "Underline links",
107 "highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like
108 this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
109 "justify" => "Justify paragraphs",
110 "hideminor" => "Hide minor edits in recent changes",
111 "usenewrc" => "Enhanced recent changes (not for all browsers)",
112 "numberheadings" => "Auto-number headings",
113 "showtoolbar"=>"Show edit box toolbar",
114 "editondblclick" => "Edit pages on double click (JavaScript)",
115 "editsection"=>"Enable section editing via [edit] links",
116 "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
117 "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
118 "rememberpassword" => "Remember password across sessions",
119 "editwidth" => "Edit box has full width",
120 "watchdefault" => "Add pages you edit to your watchlist",
121 "minordefault" => "Mark all edits minor by default",
122 "previewontop" => "Show preview before edit box and not after it",
123 "nocache" => "Disable page caching"
124 );
125
126 /* private */ $wgBookstoreListEn = array(
127 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
128 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
129 "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
130 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
131 );
132
133 /* The following list is in native languages, not in English */
134 /* private */ $wgLanguageNames = array(
135 "aa" => "Afar", # Afar
136 "ab" => "Abkhazian", # Abkhazian - FIXME
137 "af" => "Afrikaans", # Afrikaans
138 "ak" => "Akana", # Akan
139 "als" => "Els&auml;ssische", # Alsatian
140 "am" => "&#4768;&#4635;&#4653;&#4763;", # Amharic
141 "ar" => "&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;", # Arabic
142 "arc" => "&#1813;&#1829;&#1810;&#1834;&#1848;&#1821;&#1819;", # Aramaic
143 "as" => "&#2437;&#2488;&#2478;&#2496;&#2527;&#2494;", # Assamese
144 "av" => "&#1040;&#1074;&#1072;&#1088;", # Avar
145 "ay" => "Aymar", # Aymara
146 "az" => "Az&#601;rbaycan", # Azerbaijani
147 "ba" => "&#1041;&#1072;&#1096;&#1185;&#1086;&#1088;&#1090;", # Bashkir
148 "be" => "&#1041;&#1077;&#1083;&#1072;&#1088;&#1091;&#1089;&#1082;&#1072;&#1103; - (Belaruskaya)", # Belarusian ''or'' Byelarussian
149 "bg" => "&#1041;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080; - (Bülgarski)", # Bulgarian
150 "bh" => "Bihara",
151 "bi" => "Bislama", # Bislama
152 "bn" => "&#2476;&#2494;&#2434;&#2482;&#2494; - (Bangla)", # Bengali
153 "bo" => "Bod skad", # Tibetan
154 "br" => "Brezhoneg", # Breton
155 "bs" => "Bosanski", # Bosnian
156 "ca" => "Catal&agrave;", # Catalan
157 "ce" => "&#1053;&#1086;&#1093;&#1095;&#1080;&#1081;&#1085; - (Noxçiyn)", # Chechen
158 "ch" => "Chamoru", # Chamorro
159 "chy" => "Tsets&ecirc;hest&acirc;hese", # Cheyenne
160 "co" => "Corsu", # Corsican
161 "cr" => "Nehiyaw", # Cree
162 "cs" => "&#268;esky", # Czech
163 "cv" => "&#1063;&#1233;&#1074;&#1072;&#1096; - (&#264;&#259;va&#349;)", # Chuvash
164 "cy" => "Cymraeg", # Welsh
165 "da" => "Dansk", # Danish
166 "de" => "Deutsch", # German
167 "dk" => "Dansk", # 'da' is correct for the language.
168 "dv" => "Dhivehi", # Dhivehi
169 "dz" => "(Dzongkha)", # Bhutani
170 "ee" => "Eve", # Eve
171 "el" => "&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;", # Greek
172 "en" => "English", # English
173 "eo" => "Esperanto", # Esperanto
174 "es" => "Espa&ntilde;ol", # Spanish
175 "et" => "Eesti", # Estonian
176 "eu" => "Euskara", # Basque
177 "fa" => "&#1601;&#1575;&#1585;&#1587;&#1740;", # Persian
178 "ff" => "Fulfulde", # Fulfulde
179 "fi" => "Suomi", # Finnish
180 "fj" => "Na Vosa Vakaviti", # Fijian
181 "fo" => "F&oslash;royskt", # Faroese
182 "fr" => "Fran&ccedil;ais", # French
183 "fy" => "Frysk", # Frisian
184 "ga" => "Gaeilge", # Irish
185 "gd" => "G&agrave;idhlig", # Scots Gaelic
186 "gl" => "Galego", # Gallegan
187 "gn" => "Ava&ntilde;e'&#7869;", # Guarani
188 "gu" => "&#2711;&#2753;&#2716;&#2736;&#2750;&#2724;&#2752;", # Gujarati
189 "gv" => "Gaelg", # Manx
190 "ha" => "&#1607;&#1614;&#1608;&#1615;&#1587;&#1614;", # Hausa
191 "haw" => "Hawai`i", # Hawaiian
192 "he" => "&#1506;&#1489;&#1512;&#1497;&#1514;", # Hebrew
193 "hi" => "&#2361;&#2367;&#2344;&#2381;&#2342;&#2368;", # Hindi
194 "hr" => "Hrvatski", # Croatian
195 "hu" => "Magyar", # Hungarian
196 "hy" => "&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;", # Armenian
197 "hz" => "Otsiherero", # Herero
198 "ia" => "Interlingua", # Interlingua (IALA)
199 "id" => "Bahasa Indonesia", # Indonesian
200 "ie" => "Interlingue", # Interlingue (Occidental)
201 "ig" => "Igbo", # Igbo
202 "ik" => "I&ntilde;upiak", # Inupiak
203 "io" => "Ido", # Ido
204 "is" => "&Iacute;slensk", # Icelandic
205 "it" => "Italiano", # Italian
206 "iu" => "&#5123;&#5316;&#5251;&#5198;&#5200;&#5222;", # Inuktitut
207 "ja" => "&#26085;&#26412;&#35486;", # Japanese
208 "jv" => "Bahasa Jawa", # Javanese
209 "ka" => "&#4325;&#4304;&#4320;&#4311;&#4323;&#4314;&#4312;", # Georgian
210 "kk" => "&#1179;&#1072;&#1079;&#1072;&#1179;&#1096;&#1072;", # Kazakh
211 "kl" => "Kalaallisut", # Greenlandic
212 "km" => "&#6039;&#6070;&#6047;&#6070;&#6017;&#6098;&#6040;&#6082;&#6042;", # Cambodian
213 "kn" => "&#3221;&#3240;&#3277;&#3240;&#3233;", # Kannada
214 "ko" => "&#54620;&#44397;&#50612;", # Korean
215 "ks" => "&#2325;&#2358;&#2381;&#2350;&#2368;&#2352;&#2368; - (&#1603;&#1588;&#1605;&#1610;&#1585;&#1610;)", # Kashmiri
216 "ku" => "Kurd&icirc;", # Kurdish
217 "kw" => "Kernewek", # Cornish
218 "ky" => "Kirghiz",
219 "la" => "Latina", # Latin
220 "lb" => "L&euml;tzebuergesch", # Luxemburguish
221 "li" => "Limburgs", # Limburgian
222 "ln" => "Lingala", # Lingala
223 "lo" => "(Pha xa lao)", # Laotian
224 "lt" => "Lietuvi&#371;", # Lithuanian
225 "lv" => "Latvie&scaron;u", # Latvian
226 "mi" => "Malagasy", # Malagasy - FIXME
227 "mh" => "Ebon", # Marshallese
228 "mi" => "M&#257;ori", # Maori
229 "mk" => "&#1052;&#1072;&#1082;&#1077;&#1076;&#1086;&#1085;&#1089;&#1082;&#1080;", # Macedonian
230 "ml" => "&#3374;&#3378;&#3375;&#3390;&#3379;&#3330;", # Malayalam
231 "mn" => "&#1052;&#1086;&#1085;&#1075;&#1086;&#1083;", # Mongoloian
232 "mo" => "Moldoveana", # Moldovan
233 "mr" => "&#2350;&#2352;&#2366;&#2336;&#2368;", # Marathi
234 "ms" => "Bahasa Melayu", # Malay
235 "mt" => "bil-Malti", # Maltese
236 "my" => "(Myanmasa)", # Burmese
237 "na" => "Nauru", # Nauruan
238 "nah" => "Nahuatl",
239 "nds" => "Platd&uuml;&uuml;tsch", # Low German ''or'' Low Saxon
240 "ne" => "&#2344;&#2375;&#2346;&#2366;&#2354;&#2368;", # Nepali
241 "nl" => "Nederlands", # Dutch
242 "nb" => "Norsk", # Norwegian [currently using old '''no''' code]
243 "ne" => "&#2344;&#2375;&#2346;&#2366;&#2354;&#2368;", # Nepali
244 "nn" => "Nynorsk" , # (Norwegian) Nynorsk
245 "no" => "Norsk",
246 "nv" => "Din&eacute; bizaad", # Navajo
247 "ny" => "Chi-Chewa", # Chichewa
248 "oc" => "Occitan", # Occitan
249 "om" => "Oromoo", # Oromo
250 "or" => "Oriya", # Oriya - FIXME
251 "pa" => "&#2346;&#2306;&#2332;&#2366;&#2348;&#2368; / &#2602;&#2588;&#2622;&#2604;&#2624; / &#1662;&#1606;&#1580;&#1575;&#1576;&#1610;", # Punjabi
252 "pi" => "&#2346;&#2366;&#2367;&#2356;", # Pali
253 "pl" => "Polski", # Polish
254 "ps" => "&#1662;&#1690;&#1578;&#1608;", # Pashto
255 "pt" => "Portugu&ecirc;s", # Portuguese
256 "qu" => "Runa Simi", # Quechua
257 "rm" => "Rumantsch", # Raeto-Romance
258 "rn" => "Kirundi", # Kirundi
259 "ro" => "Rom&acirc;n&#259;", # Romanian
260 "ru" => "&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;", # Russian
261 "rw" => "Kinyarwanda",
262 "sa" => "&#2360;&#2306;&#2360;&#2381;&#2325;&#2371;&#2340;", # Sanskrit
263 "sc" => "Sardu", # Sardinian
264 "sd" => "&#2360;&#2367;&#2344;&#2343;&#2367;", # Sindhi
265 "se" => "S&aacute;megiella", # (Northern) Sami
266 "sg" => "Sangro",
267 # "sh" => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1086;&#1093;&#1088;&#1074;&#1072;&#1090;&#1089;&#1082;&#1080; (Srbskohrvatski)", ## -- Obsolete
268 "si" => "(Simhala)", # Sinhalese
269 "simple" => "Simple English",
270 "sk" => "Sloven&#269;ina", # Slovak
271 "sl" => "Sloven&scaron;&#269;ina", # Slovenian
272 "sm" => "Gagana Samoa", # Samoan
273 "sn" => "chiShona", # Shona
274 "so" => "Soomaaliga", # Somali
275 "sq" => "Shqip", # Albanian
276 "sr" => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1080; / Srpski", # Serbian
277 "ss" => "SiSwati", # Swati
278 "st" => "seSotho", # (Southern) Sotho
279 "su" => "Bahasa Sunda", # Sundanese
280 "sv" => "Svenska", # Swedish
281 "sw" => "Kiswahili", # Swahili
282 "ta" => "&#2980;&#2990;&#3007;&#2996;&#3021;", # Tamil
283 "te" => "&#3108;&#3142;&#3122;&#3137;&#3095;&#3137;", # Telugu
284 "tg" => "&#1058;&#1086;&#1207;&#1080;&#1082;&#1251;", # Tajik
285 "th" => "&#3652;&#3607;&#3618;", # Thai
286 "ti" => "Tigrinya", # Tigrinya - FIXME
287 "tk" => "&#1578;&#1585;&#1603;&#1605;&#1606; / &#1058;&#1091;&#1088;&#1082;&#1084;&#1077;&#1085;", # Turkmen
288 "tl" => "Tagalog", # Tagalog (Filipino)
289 "tn" => "Setswana", # Setswana
290 "to" => "Tonga", # Tonga - FIXME
291 "tr" => "T&uuml;rk&ccedil;e", # Turkish
292 "ts" => "Xitsonga", # Tsonga
293 "tt" => "Tatar", # Tatar
294 "tw" => "Twi", # Twi -- FIXME
295 "ty" => "Reo M&#257;`ohi", # Tahitian
296 "ug" => "Oyghurque", # Uyghur
297 "uk" => "&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;", # Ukrainian
298 "ur" => "&#1575;&#1585;&#1583;&#1608;", # Urdu
299 "uz" => "&#1038;&#1079;&#1073;&#1077;&#1082;", # Uzbek
300 "ve" => "Venda", # Venda
301 "vi" => "Ti&#7871;ng Vi&#7879;t", # Vietnamese
302 "vo" => "Volap&uuml;k", # Volapük
303 "wa" => "Walon", # Walloon
304 "wo" => "Wollof", # Wolof
305 "xh" => "isiXhosa", # Xhosan
306 "yi" => "&#1497;&#1497;&#1460;&#1491;&#1497;&#1513;", # Yiddish
307 "yo" => "Yor&ugrave;b&aacute;", # Yoruba
308 "za" => "(Cuengh)", # Zhuang
309 "zh" => "&#20013;&#25991;", # (Zh&#333;ng Wén) - Chinese
310 "zh-cn" => "&#20013;&#25991;(&#31616;&#20307;)", # Simplified
311 "zh-tw" => "&#20013;&#25991;(&#32321;&#20307;)", # Traditional
312 "zu" => "isiZulu", # Zulu
313 );
314
315 $wgLanguageNamesEn =& $wgLanguageNames;
316
317
318 /* private */ $wgWeekdayNamesEn = array(
319 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
320 "Friday", "Saturday"
321 );
322
323 /* private */ $wgMonthNamesEn = array(
324 "January", "February", "March", "April", "May", "June",
325 "July", "August", "September", "October", "November",
326 "December"
327 );
328
329 /* private */ $wgMonthAbbreviationsEn = array(
330 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
331 "Sep", "Oct", "Nov", "Dec"
332 );
333
334 /* private */ $wgMagicWordsEn = array(
335 # ID CASE SYNONYMS
336 MAG_REDIRECT => array( 0, "#redirect" ),
337 MAG_NOTOC => array( 0, "__NOTOC__" ),
338 MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__" ),
339 MAG_START => array( 0, "__START__" ),
340 MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
341 MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),
342 MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}" ),
343 MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}" ),
344 MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}" ),
345 MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}" ),
346 MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}" ),
347 MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}"),
348 MAG_MSG => array( 0, "{{MSG:$1}}" ),
349 MAG_SUBST => array( 0, "{{SUBST:$1}}" ),
350 MAG_MSGNW => array( 0, "{{MSGNW:$1}}" ),
351 MAG_END => array( 0, "__END__" ),
352 MAG_IMG_THUMBNAIL => array( 1, "thumbnail", "thumb" ),
353 MAG_IMG_RIGHT => array( 1, "right" ),
354 MAG_IMG_LEFT => array( 1, "left" ),
355 MAG_IMG_NONE => array( 1, "none" ),
356 MAG_IMG_WIDTH => array( 1, "$1px" ),
357 MAG_IMG_CENTER => array( 1, "center", "centre" )
358
359 );
360
361 # All special pages have to be listed here: a description of ""
362 # will make them not show up on the "Special Pages" page, which
363 # is the right thing for some of them (such as the "targeted" ones).
364 #
365 /* private */ $wgValidSpecialPagesEn = array(
366 "Userlogin" => "",
367 "Userlogout" => "",
368 "Preferences" => "Set my user preferences",
369 "Watchlist" => "My watchlist",
370 "Recentchanges" => "Recently updated pages",
371 "Upload" => "Upload image files",
372 "Imagelist" => "Image list",
373 "Listusers" => "Registered users",
374 "Statistics" => "Site statistics",
375 "Randompage" => "Random article",
376
377 "Lonelypages" => "Orphaned articles",
378 "Unusedimages" => "Orphaned images",
379 "Popularpages" => "Popular articles",
380 "Wantedpages" => "Most wanted articles",
381 "Shortpages" => "Short articles",
382 "Longpages" => "Long articles",
383 "Newpages" => "Newly created articles",
384 "Ancientpages" => "Oldest articles",
385 "Deadendpages" => "Dead-end pages",
386 # "Intl" => "Interlanguage Links",
387 "Allpages" => "All pages by title",
388
389 "Ipblocklist" => "Blocked users/IP addresses",
390 "Maintenance" => "Maintenance page",
391 "Specialpages" => "",
392 "Contributions" => "",
393 "Emailuser" => "",
394 "Whatlinkshere" => "",
395 "Recentchangeslinked" => "",
396 "Movepage" => "",
397 "Blockme" => "",
398 "Booksources" => "External book sources",
399 # "Categories" => "Page categories",
400 "Export" => "XML page export",
401 "Version" => "Show MediaWiki version",
402 );
403
404 /* private */ $wgSysopSpecialPagesEn = array(
405 "Blockip" => "Block a user/IP address",
406 "Asksql" => "Query the database",
407 "Allmessages" => "All system messages",
408 "Undelete" => "Restore deleted pages",
409 "Makesysop" => "Turn a user into a sysop"
410 );
411
412 /* private */ $wgDeveloperSpecialPagesEn = array(
413 "Lockdb" => "Make database read-only",
414 "Unlockdb" => "Restore DB write access"
415 );
416
417 #-------------------------------------------------------------------
418 # Default messages
419 #-------------------------------------------------------------------
420 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
421 # hyphen (-). If you need more characters, you may be able to change
422 # the regex in MagicWord::initRegex
423
424 /* private */ $wgAllMessagesEn = array(
425
426 # Bits of text used by many pages:
427 #
428 "categories" => "Page categories",
429 "category" => "category",
430 "category_header" => "Articles in category \"$1\"",
431 "subcategories" => "Subcategories",
432
433 "linktrail" => "/^([a-z]+)(.*)\$/sD",
434 "mainpage" => "Main Page",
435 "mainpagetext" => "Wiki software successfully installed.",
436 "about" => "About",
437 "aboutwikipedia" => "About $wgSitename",
438 "aboutpage" => "$wgMetaNamespace:About",
439 "help" => "Help",
440 "helppage" => "$wgMetaNamespace:Help",
441 "wikititlesuffix" => "$wgSitename",
442 "bugreports" => "Bug reports",
443 "bugreportspage" => "$wgMetaNamespace:Bug_reports",
444 "sitesupport" => "Donations",
445 "sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
446 "faq" => "FAQ",
447 "faqpage" => "$wgMetaNamespace:FAQ",
448 "edithelp" => "Editing help",
449 "edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
450 "cancel" => "Cancel",
451 "qbfind" => "Find",
452 "qbbrowse" => "Browse",
453 "qbedit" => "Edit",
454 "qbpageoptions" => "This page",
455 "qbpageinfo" => "Context",
456 "qbmyoptions" => "My pages",
457 "qbspecialpages" => "Special pages",
458 "moredotdotdot" => "More...",
459 "mypage" => "My page",
460 "mytalk" => "My talk",
461 "currentevents" => "Current events",
462 "disclaimers" => "Disclaimers",
463 "disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
464 "errorpagetitle" => "Error",
465 "returnto" => "Return to $1.",
466 "fromwikipedia" => "From $wgSitename, the free encyclopedia.",
467 "whatlinkshere" => "Pages that link here",
468 "help" => "Help",
469 "search" => "Search",
470 "go" => "Go",
471 "history" => "Page history",
472 "printableversion" => "Printable version",
473 "editthispage" => "Edit this page",
474 "deletethispage" => "Delete this page",
475 "protectthispage" => "Protect this page",
476 "unprotectthispage" => "Unprotect this page",
477 "newpage" => "New page",
478 "talkpage" => "Discuss this page",
479 "postcomment" => "Post a comment",
480 "articlepage" => "View article",
481 "subjectpage" => "View subject", # For compatibility
482 "userpage" => "View user page",
483 "wikipediapage" => "View meta page",
484 "imagepage" => "View image page",
485 "viewtalkpage" => "View discussion",
486 "otherlanguages" => "Other languages",
487 "redirectedfrom" => "(Redirected from $1)",
488 "lastmodified" => "This page was last modified $1.",
489 "viewcount" => "This page has been accessed $1 times.",
490 "gnunote" => "All text is available under the terms of the <a class=internal href='$wgScriptPath/index.php/GNU_Free_Documentation_License'>GNU Free Documentation License</a>.",
491 "printsubtitle" => "(From $wgServer)",
492 "protectedpage" => "Protected page",
493 "administrators" => "$wgMetaNamespace:Administrators",
494 "sysoptitle" => "Sysop access required",
495 "sysoptext" => "The action you have requested can only be
496 performed by users with \"sysop\" status.
497 See $1.",
498 "developertitle" => "Developer access required",
499 "developertext" => "The action you have requested can only be
500 performed by users with \"developer\" status.
501 See $1.",
502 "bureaucrattitle" => "Bureaucrat access required",
503 "bureaucrattext" => "The action you have requested can only be
504 performed by sysops with \"bureaucrat\" status.",
505 "nbytes" => "$1 bytes",
506 "go" => "Go",
507 "ok" => "OK",
508 "sitetitle" => "$wgSitename",
509 "sitesubtitle" => "The Free Encyclopedia",
510 "retrievedfrom" => "Retrieved from \"$1\"",
511 "newmessages" => "You have $1.",
512 "newmessageslink" => "new messages",
513 "editsection"=>"edit",
514 "toc" => "Table of contents",
515 "showtoc" => "show",
516 "hidetoc" => "hide",
517 "thisisdeleted" => "View or restore $1?",
518 "restorelink" => "$1 deleted edits",
519
520 # Main script and global functions
521 #
522 "nosuchaction" => "No such action",
523 "nosuchactiontext" => "The action specified by the URL is not
524 recognized by the wiki",
525 "nosuchspecialpage" => "No such special page",
526 "nospecialpagetext" => "You have requested a special page that is not
527 recognized by the wiki.",
528
529 # General errors
530 #
531 "error" => "Error",
532 "databaseerror" => "Database error",
533 "dberrortext" => "A database query syntax error has occurred.
534 This could be because of an illegal search query (see $5),
535 or it may indicate a bug in the software.
536 The last attempted database query was:
537 <blockquote><tt>$1</tt></blockquote>
538 from within function \"<tt>$2</tt>\".
539 MySQL returned error \"<tt>$3: $4</tt>\".",
540 "dberrortextcl" => "A database query syntax error has occurred.
541 The last attempted database query was:
542 \"$1\"
543 from within function \"$2\".
544 MySQL returned error \"$3: $4\".\n",
545 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
546 "nodb" => "Could not select database $1",
547 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
548 "readonly" => "Database locked",
549 "enterlockreason" => "Enter a reason for the lock, including an estimate
550 of when the lock will be released",
551 "readonlytext" => "The database is currently locked to new
552 entries and other modifications, probably for routine database maintenance,
553 after which it will be back to normal.
554 The administrator who locked it offered this explanation:
555 <p>$1",
556 "missingarticle" => "The database did not find the text of a page
557 that it should have found, named \"$1\".
558
559 <p>This is usually caused by following an outdated diff or history link to a
560 page that has been deleted.
561
562 <p>If this is not the case, you may have found a bug in the software.
563 Please report this to an administrator, making note of the URL.",
564 "internalerror" => "Internal error",
565 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
566 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
567 "filedeleteerror" => "Could not delete file \"$1\".",
568 "filenotfound" => "Could not find file \"$1\".",
569 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
570 "formerror" => "Error: could not submit form",
571 "badarticleerror" => "This action cannot be performed on this page.",
572 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
573 "badtitle" => "Bad title",
574 "badtitletext" => "The requested page title was invalid, empty, or
575 an incorrectly linked inter-language or inter-wiki title.",
576 "perfdisabled" => "Sorry! This feature has been temporarily disabled
577 because it slows the database down to the point that no one can use
578 the wiki.",
579 "perfdisabledsub" => "Here's a saved copy from $1:",
580 "wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
581 Function: $1<br>
582 Query: $2
583 ",
584 "viewsource" => "View source",
585 "protectedtext" => "This page has been locked to prevent editing; there are
586 a number of reasons why this may be so, please see
587 [[$wgMetaNamespace:Protected page]].
588
589 You can view and copy the source of this page:",
590
591 # Login and logout pages
592 #
593 "logouttitle" => "User logout",
594 "logouttext" => "You are now logged out.
595 You can continue to use $wgSitename anonymously, or you can log in
596 again as the same or as a different user. Note that some pages may
597 continue to be displayed as if you were still logged in, until you clear
598 your browser cache\n",
599
600 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
601 Don't forget to change your $wgSitename preferences.",
602
603 "loginpagetitle" => "User login",
604 "yourname" => "Your user name",
605 "yourpassword" => "Your password",
606 "yourpasswordagain" => "Retype password",
607 "newusersonly" => " (new users only)",
608 "remembermypassword" => "Remember my password across sessions.",
609 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
610 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
611
612 "login" => "Log in",
613 "loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
614 "userlogin" => "Log in",
615 "logout" => "Log out",
616 "userlogout" => "Log out",
617 "notloggedin" => "Not logged in",
618 "createaccount" => "Create new account",
619 "createaccountmail" => "by eMail",
620 "badretype" => "The passwords you entered do not match.",
621 "userexists" => "The user name you entered is already in use. Please choose a different name.",
622 "youremail" => "Your e-mail*",
623 "yournick" => "Your nickname (for signatures)",
624 "emailforlost" => "* Entering an email address is optional. But it enables people to
625 contact you through the website without you having to reveal your
626 email address to them, and it also helps you if you forget your
627 password.",
628 "loginerror" => "Login error",
629 "nocookiesnew" => "The user account was created, but you are not logged in. $wgSitename uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
630 "nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
631 "noname" => "You have not specified a valid user name.",
632 "loginsuccesstitle" => "Login successful",
633 "loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
634 "nosuchuser" => "There is no user by the name \"$1\".
635 Check your spelling, or use the form below to create a new user account.",
636 "wrongpassword" => "The password you entered is incorrect. Please try again.",
637 "mailmypassword" => "Mail me a new password",
638 "passwordremindertitle" => "Password reminder from $wgSitename",
639 "passwordremindertext" => "Someone (probably you, from IP address $1)
640 requested that we send you a new $wgSitename login password.
641 The password for user \"$2\" is now \"$3\".
642 You should log in and change your password now.",
643 "noemail" => "There is no e-mail address recorded for user \"$1\".",
644 "passwordsent" => "A new password has been sent to the e-mail address
645 registered for \"$1\".
646 Please log in again after you receive it.",
647 "loginend" => "",
648
649 # Edit page toolbar
650 "bold_sample"=>"Bold text",
651 "bold_tip"=>"Bold text",
652 "italic_sample"=>"Italic text",
653 "italic_tip"=>"Italic text",
654 "link_sample"=>"Link title",
655 "link_tip"=>"Internal link",
656 "extlink_sample"=>"http://www.example.com link title",
657 "extlink_tip"=>"External link (remember http:// prefix)",
658 "headline_sample"=>"Headline text",
659 "headline_tip"=>"Level 2 headline",
660 "math_sample"=>"Insert formula here",
661 "math_tip"=>"Mathematical formula (LaTeX)",
662 "nowiki_sample"=>"Insert non-formatted text here",
663 "nowiki_tip"=>"Ignore wiki formatting",
664 "image_sample"=>"Example.jpg",
665 "image_tip"=>"Embedded image",
666 "media_sample"=>"Example.mp3",
667 "media_tip"=>"Media file link",
668 "sig_tip"=>"Your signature with timestamp",
669 "hr_tip"=>"Horizontal line (use sparingly)",
670 "infobox"=>"Click a button to get an example text",
671 # alert box shown in browsers where text selection does not work, test e.g. with mozilla or konqueror
672 "infobox_alert"=>"Please enter the text you want to be formatted.\\n It will be shown in the infobox for copy and pasting.\\nExample:\\n$1\\nwill become:\\n$2",
673 # only shown for Mozilla users
674 "infobox_mozvote"=>"\\nPlease vote for bug #231389 to make text selection work in Mozilla!",
675
676 # Edit pages
677 #
678 "summary" => "Summary",
679 "subject" => "Subject/headline",
680 "minoredit" => "This is a minor edit",
681 "watchthis" => "Watch this article",
682 "savearticle" => "Save page",
683 "preview" => "Preview",
684 "showpreview" => "Show preview",
685 "blockedtitle" => "User is blocked",
686 "blockedtext" => "Your user name or IP address has been blocked by $1.
687 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
688 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
689
690 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
691
692 Your IP address is $3. Please include this address in any queries you make.
693 ",
694 "whitelistedittitle" => "Login required to edit",
695 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
696 "whitelistreadtitle" => "Login required to read",
697 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
698 "whitelistacctitle" => "You are not allowed to create an account",
699 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
700 "loginreqtitle" => "Login Required",
701 "loginreqtext" => "You must [[special:Userlogin|login]] to view other pages.",
702 "accmailtitle" => "Password sent.",
703 "accmailtext" => "The Password for '$1' has been sent to $2.",
704 "newarticle" => "(New)",
705 "newarticletext" =>
706 "You've followed a link to a page that doesn't exist yet.
707 To create the page, start typing in the box below
708 (see the [[$wgMetaNamespace:Help|help page]] for more info).
709 If you are here by mistake, just click your browser's '''back''' button.",
710 "talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
711 "anontalkpagetext" => "---- ''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
712 "noarticletext" => "(There is currently no text in this page)",
713 "updated" => "(Updated)",
714 "note" => "<strong>Note:</strong> ",
715 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
716 "previewconflict" => "This preview reflects the text in the upper
717 text editing area as it will appear if you choose to save.",
718 "editing" => "Editing $1",
719 "sectionedit" => " (section)",
720 "commentedit" => " (comment)",
721 "editconflict" => "Edit conflict: $1",
722 "explainconflict" => "Someone else has changed this page since you
723 started editing it.
724 The upper text area contains the page text as it currently exists.
725 Your changes are shown in the lower text area.
726 You will have to merge your changes into the existing text.
727 <b>Only</b> the text in the upper text area will be saved when you
728 press \"Save page\".\n<p>",
729 "yourtext" => "Your text",
730 "storedversion" => "Stored version",
731 "editingold" => "<strong>WARNING: You are editing an out-of-date
732 revision of this page.
733 If you save it, any changes made since this revision will be lost.</strong>\n",
734 "yourdiff" => "Differences",
735 # FIXME: This is inappropriate for third-party use!
736 "copyrightwarning" => "Please note that all contributions to $wgSitename are
737 considered to be released under the GNU Free Documentation License
738 (see $1 for details).
739 If you don't want your writing to be edited mercilessly and redistributed
740 at will, then don't submit it here.<br>
741 You are also promising us that you wrote this yourself, or copied it from a
742 public domain or similar free resource.
743 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
744 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
745 browsers may have problems editing pages approaching or longer than 32kb.
746 Please consider breaking the page into smaller sections.",
747 "readonlywarning" => "WARNING: The database has been locked for maintenance,
748 so you will not be able to save your edits right now. You may wish to cut-n-paste
749 the text into a text file and save it for later.",
750 "protectedpagewarning" => "WARNING: This page has been locked so that only
751 users with sysop privileges can edit it. Be sure you are following the
752 <a href='$wgScriptPath/$wgMetaNamespace:Protected_page_guidelines'>protected page
753 guidelines</a>.",
754
755 # History pages
756 #
757 "revhistory" => "Revision history",
758 "nohistory" => "There is no edit history for this page.",
759 "revnotfound" => "Revision not found",
760 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
761 Please check the URL you used to access this page.\n",
762 "loadhist" => "Loading page history",
763 "currentrev" => "Current revision",
764 "revisionasof" => "Revision as of $1",
765 "cur" => "cur",
766 "next" => "next",
767 "last" => "last",
768 "orig" => "orig",
769 "histlegend" => "Legend: (cur) = difference with current version,
770 (last) = difference with preceding version, M = minor edit",
771
772 # Diffs
773 #
774 "difference" => "(Difference between revisions)",
775 "loadingrev" => "loading revision for diff",
776 "lineno" => "Line $1:",
777 "editcurrent" => "Edit the current version of this page",
778
779 # Search results
780 #
781 "searchresults" => "Search results",
782 "searchhelppage" => "$wgMetaNamespace:Searching",
783 "searchingwikipedia" => "Searching $wgSitename",
784 "searchresulttext" => "For more information about searching $wgSitename, see $1.",
785 "searchquery" => "For query \"$1\"",
786 "badquery" => "Badly formed search query",
787 "badquerytext" => "We could not process your query.
788 This is probably because you have attempted to search for a
789 word fewer than three letters long, which is not yet supported.
790 It could also be that you have mistyped the expression, for
791 example \"fish and and scales\".
792 Please try another query.",
793 "matchtotals" => "The query \"$1\" matched $2 article titles
794 and the text of $3 articles.",
795 "nogomatch" => "No page with this exact title exists, trying full text search.",
796 "titlematches" => "Article title matches",
797 "notitlematches" => "No article title matches",
798 "textmatches" => "Article text matches",
799 "notextmatches" => "No article text matches",
800 "prevn" => "previous $1",
801 "nextn" => "next $1",
802 "viewprevnext" => "View ($1) ($2) ($3).",
803 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
804 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
805 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
806 often caused by searching for common words like \"have\" and \"from\",
807 which are not indexed, or by specifying more than one search term (only pages
808 containing all of the search terms will appear in the result).",
809 "powersearch" => "Search",
810 "powersearchtext" => "
811 Search in namespaces :<br>
812 $1<br>
813 $2 List redirects &nbsp; Search for $3 $9",
814 "searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>",
815 "googlesearch" => "
816 <!-- SiteSearch Google -->
817 <FORM method=GET action=\"http://www.google.com/search\">
818 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
819 <A HREF=\"http://www.google.com/\">
820 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
821 border=\"0\" ALT=\"Google\"></A>
822 </td>
823 <td>
824 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
825 <INPUT type=submit name=btnG VALUE=\"Google Search\">
826 <font size=-1>
827 <input type=hidden name=domains value=\"{$wgServer}\"><br><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br>
828 <input type='hidden' name='ie' value='$2'>
829 <input type='hidden' name='oe' value='$2'>
830 </font>
831 </td></tr></TABLE>
832 </FORM>
833 <!-- SiteSearch Google -->",
834 "blanknamespace" => "(Main)",
835
836 # Preferences page
837 #
838 "preferences" => "Preferences",
839 "prefsnologin" => "Not logged in",
840 "prefsnologintext" => "You must be <a href=\"" .
841 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
842 to set user preferences.",
843 "prefslogintext" => "You are logged in as \"$1\".
844 Your internal ID number is $2.
845
846 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
847 "prefsreset" => "Preferences have been reset from storage.",
848 "qbsettings" => "Quickbar settings",
849 "changepassword" => "Change password",
850 "skin" => "Skin",
851 "math" => "Rendering math",
852 "dateformat" => "Date format",
853 "math_failure" => "Failed to parse",
854 "math_unknown_error" => "unknown error",
855 "math_unknown_function" => "unknown function ",
856 "math_lexing_error" => "lexing error",
857 "math_syntax_error" => "syntax error",
858 "math_image_error" => "PNG conversion failed",
859 "saveprefs" => "Save preferences",
860 "resetprefs" => "Reset preferences",
861 "oldpassword" => "Old password",
862 "newpassword" => "New password",
863 "retypenew" => "Retype new password",
864 "textboxsize" => "Textbox dimensions",
865 "rows" => "Rows",
866 "columns" => "Columns",
867 "searchresultshead" => "Search result settings",
868 "resultsperpage" => "Hits to show per page",
869 "contextlines" => "Lines to show per hit",
870 "contextchars" => "Characters of context per line",
871 "stubthreshold" => "Threshold for stub display",
872 "recentchangescount" => "Number of titles in recent changes",
873 "savedprefs" => "Your preferences have been saved.",
874 "timezonetext" => "Enter number of hours your local time differs
875 from server time (UTC).",
876 "localtime" => "Local time display",
877 "timezoneoffset" => "Offset",
878 "servertime" => "Server time is now",
879 "guesstimezone" => "Fill in from browser",
880 "emailflag" => "Disable e-mail from other users",
881 "defaultns" => "Search in these namespaces by default:",
882
883 # Recent changes
884 #
885 "changes" => "changes",
886 "recentchanges" => "Recent changes",
887 "recentchangestext" => "Track the most recent changes to the wiki on this page.",
888 "rcloaderr" => "Loading recent changes",
889 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
890 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
891 "rclistfrom" => "Show new changes starting from $1",
892 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
893 # "rclinks" => "Show last $1 changes in last $2 days.",
894 "showhideminor" => "$1 minor edits | $2 bots | $3 logged in users ",
895 "rclinks" => "Show last $1 changes in last $2 days<br>$3",
896 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
897 "rcliu" => "; $1 edits from logged in users",
898 "diff" => "diff",
899 "hist" => "hist",
900 "hide" => "hide",
901 "show" => "show",
902 "tableform" => "table",
903 "listform" => "list",
904 "nchanges" => "$1 changes",
905 "minoreditletter" => "M",
906 "newpageletter" => "N",
907
908 # Upload
909 #
910 "upload" => "Upload file",
911 "uploadbtn" => "Upload file",
912 "uploadlink" => "Upload images",
913 "reupload" => "Re-upload",
914 "reuploaddesc" => "Return to the upload form.",
915 "uploadnologin" => "Not logged in",
916 "uploadnologintext" => "You must be <a href=\"" .
917 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
918 to upload files.",
919 "uploadfile" => "Upload images, sounds, documents etc.",
920 "uploaderror" => "Upload error",
921 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
922 make sure to read and follow the <a href=\"" .
923 wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
924 <p>If a file with the name you are specifying already
925 exists on the wiki, it'll be replaced without warning.
926 So unless you mean to update a file, it's a good idea
927 to first check if such a file exists.
928 <p>To view or search previously uploaded images,
929 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
930 "\">list of uploaded images</a>.
931 Uploads and deletions are logged on the <a href=\"" .
932 wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
933 <p>Use the form below to upload new image files for use in
934 illustrating your articles.
935 On most browsers, you will see a \"Browse...\" button, which will
936 bring up your operating system's standard file open dialog.
937 Choosing a file will fill the name of that file into the text
938 field next to the button.
939 You must also check the box affirming that you are not
940 violating any copyrights by uploading the file.
941 Press the \"Upload\" button to finish the upload.
942 This may take some time if you have a slow internet connection.
943 <p>The preferred formats are JPEG for photographic images, PNG
944 for drawings and other iconic images, and OGG for sounds.
945 Please name your files descriptively to avoid confusion.
946 To include the image in an article, use a link in the form
947 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
948 or <b>[[media:file.ogg]]</b> for sounds.
949 <p>Please note that as with wiki pages, others may edit or
950 delete your uploads if they think it serves the encyclopedia, and
951 you may be blocked from uploading if you abuse the system.",
952
953 "uploadlog" => "upload log",
954 "uploadlogpage" => "Upload_log",
955 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
956 All times shown are server time (UTC).
957 <ul>
958 </ul>
959 ",
960 "filename" => "Filename",
961 "filedesc" => "Summary",
962 "filestatus" => "Copyright status",
963 "filesource" => "Source",
964 "affirmation" => "I affirm that the copyright holder of this file
965 agrees to license it under the terms of the $1.",
966 "copyrightpage" => "$wgMetaNamespace:Copyrights",
967 "copyrightpagename" => "$wgSitename copyright",
968 "uploadedfiles" => "Uploaded files",
969 "noaffirmation" => "You must affirm that your upload does not violate
970 any copyrights.",
971 "ignorewarning" => "Ignore warning and save file anyway.",
972 "minlength" => "Image names must be at least three letters.",
973 "badfilename" => "Image name has been changed to \"$1\".",
974 "badfiletype" => "\".$1\" is not a recommended image file format.",
975 "largefile" => "It is recommended that images not exceed 100k in size.",
976 "successfulupload" => "Successful upload",
977 "fileuploaded" => "File \"$1\" uploaded successfully.
978 Please follow this link: ($2) to the description page and fill
979 in information about the file, such as where it came from, when it was
980 created and by whom, and anything else you may know about it.",
981 "uploadwarning" => "Upload warning",
982 "savefile" => "Save file",
983 "uploadedimage" => "uploaded \"$1\"",
984 "uploaddisabled" => "Sorry, uploading is disabled.",
985
986 # Image list
987 #
988 "imagelist" => "Image list",
989 "imagelisttext" => "Below is a list of $1 images sorted $2.",
990 "getimagelist" => "fetching image list",
991 "ilshowmatch" => "Show all images with names matching",
992 "ilsubmit" => "Search",
993 "showlast" => "Show last $1 images sorted $2.",
994 "all" => "all",
995 "byname" => "by name",
996 "bydate" => "by date",
997 "bysize" => "by size",
998 "imgdelete" => "del",
999 "imgdesc" => "desc",
1000 "imglegend" => "Legend: (desc) = show/edit image description.",
1001 "imghistory" => "Image history",
1002 "revertimg" => "rev",
1003 "deleteimg" => "del",
1004 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
1005 this old version, (rev) = revert to this old version.
1006 <br><i>Click on date to see image uploaded on that date</i>.",
1007 "imagelinks" => "Image links",
1008 "linkstoimage" => "The following pages link to this image:",
1009 "nolinkstoimage" => "There are no pages that link to this image.",
1010
1011 # Statistics
1012 #
1013 "statistics" => "Statistics",
1014 "sitestats" => "Site statistics",
1015 "userstats" => "User statistics",
1016 "sitestatstext" => "There are <b>$1</b> total pages in the database.
1017 This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
1018 pages, redirects, and others that probably don't qualify as articles.
1019 Excluding those, there are <b>$2</b> pages that are probably legitimate
1020 articles.<p>
1021 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
1022 since the software was upgraded (July 20, 2002).
1023 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
1024 "userstatstext" => "There are <b>$1</b> registered users.
1025 <b>$2</b> of these are administrators (see $3).",
1026
1027 # Maintenance Page
1028 #
1029 "maintenance" => "Maintenance page",
1030 "maintnancepagetext" => "This page includes several handy tools for everyday maintenance. Some of these functions tend to stress the database, so please do not hit reload after every item you fixed ;-)",
1031 "maintenancebacklink" => "Back to Maintenance Page",
1032 "disambiguations" => "Disambiguation pages",
1033 "disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
1034 "disambiguationstext" => "The following articles link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br>A page is treated as dismbiguation if it is linked from $1.<br>Links from other namespaces are <i>not</i> listed here.",
1035 "doubleredirects" => "Double Redirects",
1036 "doubleredirectstext" => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br>\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" taget article, which the first redirect should point to.",
1037 "brokenredirects" => "Broken Redirects",
1038 "brokenredirectstext" => "The following redirects link to a non-existing article.",
1039 "selflinks" => "Pages with Self Links",
1040 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
1041 "mispeelings" => "Pages with misspellings",
1042 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1043 "mispeelingspage" => "List of common misspellings",
1044 "missinglanguagelinks" => "Missing Language Links",
1045 "missinglanguagelinksbutton" => "Find missing language links for",
1046 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1047
1048
1049 # Miscellaneous special pages
1050 #
1051 "orphans" => "Orphaned pages",
1052 "lonelypages" => "Orphaned pages",
1053 "unusedimages" => "Unused images",
1054 "popularpages" => "Popular pages",
1055 "nviews" => "$1 views",
1056 "wantedpages" => "Wanted pages",
1057 "nlinks" => "$1 links",
1058 "allpages" => "All pages",
1059 "randompage" => "Random page",
1060 "shortpages" => "Short pages",
1061 "longpages" => "Long pages",
1062 "deadendpages" => "Dead-end pages",
1063 "listusers" => "User list",
1064 "specialpages" => "Special pages",
1065 "spheading" => "Special pages for all users",
1066 "sysopspheading" => "For sysop use only",
1067 "developerspheading" => "For developer use only",
1068 "protectpage" => "Protect page",
1069 "recentchangeslinked" => "Related changes",
1070 "rclsub" => "(to pages linked from \"$1\")",
1071 "debug" => "Debug",
1072 "newpages" => "New pages",
1073 "ancientpages" => "Oldest articles",
1074 "intl" => "Interlanguage links",
1075 "movethispage" => "Move this page",
1076 "unusedimagestext" => "<p>Please note that other web sites may link to an image with
1077 a direct URL, and so may still be listed here despite being
1078 in active use.",
1079 "booksources" => "Book sources",
1080 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1081 "booksourcetext" => "Below is a list of links to other sites that
1082 sell new and used books, and may also have further information
1083 about books you are looking for.
1084 $wgSitename is not affiliated with any of these businesses, and
1085 this list should not be construed as an endorsement.",
1086 "rfcurl" => "http://www.faqs.org/rfcs/rfc$1.html",
1087 "alphaindexline" => "$1 to $2",
1088 "version" => "Version",
1089
1090 # Email this user
1091 #
1092 "mailnologin" => "No send address",
1093 "mailnologintext" => "You must be <a href=\"" .
1094 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1095 and have a valid e-mail address in your <a href=\"" .
1096 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
1097 to send e-mail to other users.",
1098 "emailuser" => "E-mail this user",
1099 "emailpage" => "E-mail user",
1100 "emailpagetext" => "If this user has entered a valid e-mail address in
1101 his or her user preferences, the form below will send a single message.
1102 The e-mail address you entered in your user preferences will appear
1103 as the \"From\" address of the mail, so the recipient will be able
1104 to reply.",
1105 "usermailererror" => "Mail object returned error: ",
1106 "defemailsubject" => "$wgSitename e-mail",
1107 "noemailtitle" => "No e-mail address",
1108 "noemailtext" => "This user has not specified a valid e-mail address,
1109 or has chosen not to receive e-mail from other users.",
1110 "emailfrom" => "From",
1111 "emailto" => "To",
1112 "emailsubject" => "Subject",
1113 "emailmessage" => "Message",
1114 "emailsend" => "Send",
1115 "emailsent" => "E-mail sent",
1116 "emailsenttext" => "Your e-mail message has been sent.",
1117
1118 # Watchlist
1119 #
1120 "watchlist" => "My watchlist",
1121 "watchlistsub" => "(for user \"$1\")",
1122 "nowatchlist" => "You have no items on your watchlist.",
1123 "watchnologin" => "Not logged in",
1124 "watchnologintext" => "You must be <a href=\"" .
1125 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1126 to modify your watchlist.",
1127 "addedwatch" => "Added to watchlist",
1128 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
1129 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
1130 Future changes to this page and its associated Talk page will be listed there,
1131 and the page will appear <b>bolded</b> in the <a href=\"" .
1132 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
1133 make it easier to pick out.</p>
1134
1135 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1136 "removedwatch" => "Removed from watchlist",
1137 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
1138 "watchthispage" => "Watch this page",
1139 "unwatchthispage" => "Stop watching",
1140 "notanarticle" => "Not an article",
1141 "watchnochange" => "None of your watched items were edited in the time period displayed.",
1142 "watchdetails" => "($1 pages watched not counting talk pages;
1143 $2 total pages edited since cutoff;
1144 $3...
1145 <a href='$4'>show and edit complete list</a>.)",
1146 "watchmethod-recent"=> "checking recent edits for watched pages",
1147 "watchmethod-list" => "checking watched pages for recent edits",
1148 "removechecked" => "Remove checked items from watchlist",
1149 "watchlistcontains" => "Your watchlist contains $1 pages.",
1150 "watcheditlist" => "Here's an alphabetical list of your
1151 watched pages. Check the boxes of pages you want to remove
1152 from your watchlist and click the 'remove checked' button
1153 at the bottom of the screen.",
1154 "removingchecked" => "Removing requested items from watchlist...",
1155 "couldntremove" => "Couldn't remove item '$1'...",
1156 "iteminvalidname" => "Problem with item '$1', invalid name...",
1157 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
1158 "wlshowlast" => "Show last $1 hours $2 days $3",
1159 "wlsaved" => "This is a saved version of your watchlist.",
1160
1161
1162 # Delete/protect/revert
1163 #
1164 "deletepage" => "Delete page",
1165 "confirm" => "Confirm",
1166 "excontent" => "content was:",
1167 "exbeforeblank" => "content before blanking was:",
1168 "exblank" => "page was empty",
1169 "confirmdelete" => "Confirm delete",
1170 "deletesub" => "(Deleting \"$1\")",
1171 "historywarning" => "Warning: The page you are about to delete has a history: ",
1172 "confirmdeletetext" => "You are about to permanently delete a page
1173 or image along with all of its history from the database.
1174 Please confirm that you intend to do this, that you understand the
1175 consequences, and that you are doing this in accordance with
1176 [[$wgMetaNamespace:Policy]].",
1177 "confirmcheck" => "Yes, I really want to delete this.",
1178 "actioncomplete" => "Action complete",
1179 "deletedtext" => "\"$1\" has been deleted.
1180 See $2 for a record of recent deletions.",
1181 "deletedarticle" => "deleted \"$1\"",
1182 "dellogpage" => "Deletion_log",
1183 "dellogpagetext" => "Below is a list of the most recent deletions.
1184 All times shown are server time (UTC).
1185 <ul>
1186 </ul>
1187 ",
1188 "deletionlog" => "deletion log",
1189 "reverted" => "Reverted to earlier revision",
1190 "deletecomment" => "Reason for deletion",
1191 "imagereverted" => "Revert to earlier version was successful.",
1192 "rollback" => "Roll back edits",
1193 "rollbacklink" => "rollback",
1194 "rollbackfailed" => "Rollback failed",
1195 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1196 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1197 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1198
1199 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1200 # only shown if there is an edit comment
1201 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1202 "revertpage" => "Reverted edit of $2, changed back to last version by $1",
1203 "protectlogpage" => "Protection_log",
1204 "protectlogtext" => "Below is a list of page locks/unlocks.
1205 See [[$wgMetaNamespace:Protected page]] for more information.",
1206 "protectedarticle" => "protected [[$1]]",
1207 "unprotectedarticle" => "unprotected [[$1]]",
1208
1209 # Undelete
1210 "undelete" => "Restore deleted page",
1211 "undeletepage" => "View and restore deleted pages",
1212 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1213 can be restored. The archive may be periodically cleaned out.",
1214 "undeletearticle" => "Restore deleted article",
1215 "undeleterevisions" => "$1 revisions archived",
1216 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1217 If a new page with the same name has been created since the deletion, the restored
1218 revisions will appear in the prior history, and the current revision of the live page
1219 will not be automatically replaced.",
1220 "undeleterevision" => "Deleted revision as of $1",
1221 "undeletebtn" => "Restore!",
1222 "undeletedarticle" => "restored \"$1\"",
1223 "undeletedtext" => "The article [[$1]] has been successfully restored.
1224 See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
1225
1226 # Contributions
1227 #
1228 "contributions" => "User contributions",
1229 "mycontris" => "My contributions",
1230 "contribsub" => "For $1",
1231 "nocontribs" => "No changes were found matching these criteria.",
1232 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1233 "uclinks" => "View the last $1 changes; view the last $2 days.",
1234 "uctop" => " (top)" ,
1235
1236 # What links here
1237 #
1238 "whatlinkshere" => "What links here",
1239 "notargettitle" => "No target",
1240 "notargettext" => "You have not specified a target page or user
1241 to perform this function on.",
1242 "linklistsub" => "(List of links)",
1243 "linkshere" => "The following pages link to here:",
1244 "nolinkshere" => "No pages link to here.",
1245 "isredirect" => "redirect page",
1246
1247 # Block/unblock IP
1248 #
1249 "blockip" => "Block user",
1250 "blockiptext" => "Use the form below to block write access
1251 from a specific IP address or username.
1252 This should be done only only to prevent vandalism, and in
1253 accordance with [[$wgMetaNamespace:Policy|policy]].
1254 Fill in a specific reason below (for example, citing particular
1255 pages that were vandalized).",
1256 "ipaddress" => "IP Address/username",
1257 "ipbexpiry" => "Expiry",
1258 "ipbreason" => "Reason",
1259 "ipbsubmit" => "Block this user",
1260 "badipaddress" => "Invalid IP address",
1261 "noblockreason" => "You must supply a reason for the block.",
1262 "blockipsuccesssub" => "Block succeeded",
1263 "blockipsuccesstext" => "\"$1\" has been blocked.
1264 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1265 "unblockip" => "Unblock user",
1266 "unblockiptext" => "Use the form below to restore write access
1267 to a previously blocked IP address or username.",
1268 "ipusubmit" => "Unblock this address",
1269 "ipusuccess" => "\"$1\" unblocked",
1270 "ipblocklist" => "List of blocked IP addresses and usernames",
1271 "blocklistline" => "$1, $2 blocked $3 (expires $4)",
1272 "blocklink" => "block",
1273 "unblocklink" => "unblock",
1274 "contribslink" => "contribs",
1275 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1276 "blocklogpage" => "Block_log",
1277 "blocklogentry" => 'blocked "$1" with an expiry time of $2',
1278 "blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
1279 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1280 the list of currently operational bans and blocks.",
1281 "unblocklogentry" => 'unblocked "$1"',
1282 "range_block_disabled" => "The sysop ability to create range blocks is disabled.",
1283 "ipb_expiry_invalid" => "Expiry time invalid.",
1284 "ip_range_invalid" => "Invalid IP range.\n",
1285 "proxyblocker" => "Proxy blocker",
1286 "proxyblockreason" => "Your IP address has been blocked because it is an open proxy. Please contact your Internet service provider or tech support and inform them of this serious security problem.",
1287 "proxyblocksuccess" => "Done.\n",
1288
1289 # Developer tools
1290 #
1291 "lockdb" => "Lock database",
1292 "unlockdb" => "Unlock database",
1293 "lockdbtext" => "Locking the database will suspend the ability of all
1294 users to edit pages, change their preferences, edit their watchlists, and
1295 other things requiring changes in the database.
1296 Please confirm that this is what you intend to do, and that you will
1297 unlock the database when your maintenance is done.",
1298 "unlockdbtext" => "Unlocking the database will restore the ability of all
1299 users to edit pages, change their preferences, edit their watchlists, and
1300 other things requiring changes in the database.
1301 Please confirm that this is what you intend to do.",
1302 "lockconfirm" => "Yes, I really want to lock the database.",
1303 "unlockconfirm" => "Yes, I really want to unlock the database.",
1304 "lockbtn" => "Lock database",
1305 "unlockbtn" => "Unlock database",
1306 "locknoconfirm" => "You did not check the confirmation box.",
1307 "lockdbsuccesssub" => "Database lock succeeded",
1308 "unlockdbsuccesssub" => "Database lock removed",
1309 "lockdbsuccesstext" => "The database has been locked.
1310 <br>Remember to remove the lock after your maintenance is complete.",
1311 "unlockdbsuccesstext" => "The database has been unlocked.",
1312
1313 # SQL query
1314 #
1315 "asksql" => "SQL query",
1316 "asksqltext" => "Use the form below to make a direct query of the
1317 database.
1318 Use single quotes ('like this') to delimit string literals.
1319 This can often add considerable load to the server, so please use
1320 this function sparingly.",
1321 "sqlislogged" => "Please note that all queries are logged.",
1322 "sqlquery" => "Enter query",
1323 "querybtn" => "Submit query",
1324 "selectonly" => "Only read-only queries are allowed.",
1325 "querysuccessful" => "Query successful",
1326
1327 # Make sysop
1328 "makesysoptitle" => "Make a user into a sysop",
1329 "makesysoptext" => "This form is used by bureaucrats to turn ordinary users into administrators.
1330 Type the name of the user in the box and press the button to make the user an administrator",
1331 "makesysopname" => "Name of the user:",
1332 "makesysopsubmit" => "Make this user into a sysop",
1333 "makesysopok" => "<b>User \"$1\" is now a sysop</b>",
1334 "makesysopfail" => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1335 "setbureaucratflag" => "Set bureaucrat flag",
1336 "bureaucratlog" => "Bureaucrat_log",
1337 "bureaucratlogentry" => "Rights for user \"$1\" set \"$2\"",
1338 "rights" => "Rights:",
1339 "set_user_rights" => "Set user rights",
1340 "user_rights_set" => "<b>User rights for \"$1\" updated</b>",
1341 "set_rights_fail" => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1342
1343 # Move page
1344 #
1345 "movepage" => "Move page",
1346 "movepagetext" => "Using the form below will rename a page, moving all
1347 of its history to the new name.
1348 The old title will become a redirect page to the new title.
1349 Links to the old page title will not be changed; be sure to
1350 [[Special:Maintenance|check]] for double or broken redirects.
1351 You are responsible for making sure that links continue to
1352 point where they are supposed to go.
1353
1354 Note that the page will '''not''' be moved if there is already
1355 a page at the new title, unless it is empty or a redirect and has no
1356 past edit history. This means that you can rename a page back to where
1357 it was just renamed from if you make a mistake, and you cannot overwrite
1358 an existing page.
1359
1360 <b>WARNING!</b>
1361 This can be a drastic and unexpected change for a popular page;
1362 please be sure you understand the consequences of this before
1363 proceeding.",
1364 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1365 *You are moving the page across namespaces,
1366 *A non-empty talk page already exists under the new name, or
1367 *You uncheck the box below.
1368
1369 In those cases, you will have to move or merge the page manually if desired.",
1370 "movearticle" => "Move page",
1371 "movenologin" => "Not logged in",
1372 "movenologintext" => "You must be a registered user and <a href=\"" .
1373 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1374 to move a page.",
1375 "newtitle" => "To new title",
1376 "movepagebtn" => "Move page",
1377 "pagemovedsub" => "Move succeeded",
1378 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1379 "articleexists" => "A page of that name already exists, or the
1380 name you have chosen is not valid.
1381 Please choose another name.",
1382 "talkexists" => "The page itself was moved successfully, but the
1383 talk page could not be moved because one already exists at the new
1384 title. Please merge them manually.",
1385 "movedto" => "moved to",
1386 "movetalk" => "Move \"talk\" page as well, if applicable.",
1387 "talkpagemoved" => "The corresponding talk page was also moved.",
1388 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1389 "1movedto2" => "$1 moved to $2",
1390
1391 # Export
1392
1393 "export" => "Export pages",
1394 "exporttext" => "You can export the text and editing history of a particular
1395 page or set of pages wrapped in some XML; this can then be imported into another
1396 wiki running MediaWiki software, transformed, or just kept for your private
1397 amusement.",
1398 "exportcuronly" => "Include only the current revision, not the full history",
1399
1400 # Namespace 8 related
1401
1402 "allmessages" => "All system messages",
1403 "allmessagestext" => "This is a list of all system messages available in the MediaWiki: namespace.",
1404
1405 # Thumbnails
1406
1407 "thumbnail-more" => "Enlarge",
1408 "missingimage" => "<b>Missing image</b><br><i>$1</i>\n"
1409
1410
1411 );
1412
1413 #--------------------------------------------------------------------------
1414 # Internationalisation code
1415 #--------------------------------------------------------------------------
1416
1417 class Language {
1418 function Language(){
1419 # Copies any missing values in the specified arrays from En to the current language
1420 $fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
1421 $name = get_class( $this );
1422 if( strpos( $name, "language" ) == 0){
1423 $lang = ucfirst( substr( $name, 8 ) );
1424 foreach( $fillin as $arrname ){
1425 $langver = "{$arrname}{$lang}";
1426 $enver = "{$arrname}En";
1427 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1428 continue;
1429 foreach($GLOBALS[$enver] as $spage => $text){
1430 if( ! isset( $GLOBALS[$langver][$spage] ) )
1431 $GLOBALS[$langver][$spage] = $text;
1432 }
1433 }
1434 }
1435 }
1436
1437 function getDefaultUserOptions () {
1438 global $wgDefaultUserOptionsEn ;
1439 return $wgDefaultUserOptionsEn ;
1440 }
1441
1442 function getBookstoreList () {
1443 global $wgBookstoreListEn ;
1444 return $wgBookstoreListEn ;
1445 }
1446
1447 function getNamespaces() {
1448 global $wgNamespaceNamesEn;
1449 return $wgNamespaceNamesEn;
1450 }
1451
1452 function getNsText( $index ) {
1453 global $wgNamespaceNamesEn;
1454 return $wgNamespaceNamesEn[$index];
1455 }
1456
1457 function getNsIndex( $text ) {
1458 global $wgNamespaceNamesEn;
1459
1460 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1461 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1462 }
1463 return false;
1464 }
1465
1466 function specialPage( $name ) {
1467 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1468 }
1469
1470 function getQuickbarSettings() {
1471 global $wgQuickbarSettingsEn;
1472 return $wgQuickbarSettingsEn;
1473 }
1474
1475 function getSkinNames() {
1476 global $wgSkinNamesEn;
1477 return $wgSkinNamesEn;
1478 }
1479
1480 function getMathNames() {
1481 global $wgMathNamesEn;
1482 return $wgMathNamesEn;
1483 }
1484
1485 function getDateFormats() {
1486 global $wgDateFormatsEn;
1487 return $wgDateFormatsEn;
1488 }
1489
1490 function getUserToggles() {
1491 global $wgUserTogglesEn;
1492 return $wgUserTogglesEn;
1493 }
1494
1495 function getLanguageNames() {
1496 global $wgLanguageNamesEn;
1497 return $wgLanguageNamesEn;
1498 }
1499
1500 function getLanguageName( $code ) {
1501 global $wgLanguageNamesEn;
1502 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1503 return "";
1504 }
1505 return $wgLanguageNamesEn[$code];
1506 }
1507
1508 function getMonthName( $key )
1509 {
1510 global $wgMonthNamesEn;
1511 return $wgMonthNamesEn[$key-1];
1512 }
1513
1514 /* by default we just return base form */
1515 function getMonthNameGen( $key )
1516 {
1517 return $this->getMonthName( $key );
1518 }
1519
1520 function getMonthAbbreviation( $key )
1521 {
1522 global $wgMonthAbbreviationsEn;
1523 return $wgMonthAbbreviationsEn[$key-1];
1524 }
1525
1526 function getWeekdayName( $key )
1527 {
1528 global $wgWeekdayNamesEn;
1529 return $wgWeekdayNamesEn[$key-1];
1530 }
1531
1532 function userAdjust( $ts )
1533 {
1534 global $wgUser, $wgLocalTZoffset;
1535
1536 $tz = $wgUser->getOption( "timecorrection" );
1537 if ( $tz === "" ) {
1538 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1539 $minDiff = 0;
1540 } elseif ( strpos( $tz, ":" ) !== false ) {
1541 $tzArray = explode( ":", $tz );
1542 $hrDiff = intval($tzArray[0]);
1543 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1544 } else {
1545 $hrDiff = intval( $tz );
1546 }
1547 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1548
1549 $t = mktime( (
1550 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1551 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1552 (int)substr( $ts, 12, 2 ), # Seconds
1553 (int)substr( $ts, 4, 2 ), # Month
1554 (int)substr( $ts, 6, 2 ), # Day
1555 (int)substr( $ts, 0, 4 ) ); #Year
1556 return date( "YmdHis", $t );
1557 }
1558
1559 function date( $ts, $adj = false )
1560 {
1561 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1562
1563 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1564
1565 if ( $wgUseDynamicDates ) {
1566 $datePreference = $wgUser->getOption( 'date' );
1567 if ( $datePreference == 0 ) {
1568 $datePreference = $wgAmericanDates ? 1 : 2;
1569 }
1570 } else {
1571 $datePreference = $wgAmericanDates ? 1 : 2;
1572 }
1573
1574 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
1575 $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
1576 $year = $this->formatNum( substr( $ts, 0, 4 ) );
1577
1578 switch( $datePreference ) {
1579 case 1: return "$month $day, $year";
1580 case 2: return "$day $month $year";
1581 default: return "$year $month $day";
1582 }
1583 }
1584
1585 function time( $ts, $adj = false )
1586 {
1587 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1588
1589 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1590 return $this->formatNum( $t );
1591 }
1592
1593 function timeanddate( $ts, $adj = false )
1594 {
1595 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1596 }
1597
1598 function rfc1123( $ts )
1599 {
1600 return date( "D, d M Y H:i:s T", $ts );
1601 }
1602
1603 function getValidSpecialPages()
1604 {
1605 global $wgValidSpecialPagesEn;
1606 return $wgValidSpecialPagesEn;
1607 }
1608
1609 function getSysopSpecialPages()
1610 {
1611 global $wgSysopSpecialPagesEn;
1612 return $wgSysopSpecialPagesEn;
1613 }
1614
1615 function getDeveloperSpecialPages()
1616 {
1617 global $wgDeveloperSpecialPagesEn;
1618 return $wgDeveloperSpecialPagesEn;
1619 }
1620
1621 function getMessage( $key )
1622 {
1623 global $wgAllMessagesEn;
1624 return $wgAllMessagesEn[$key];
1625 }
1626
1627 function getAllMessages()
1628 {
1629 global $wgAllMessagesEn;
1630 return $wgAllMessagesEn;
1631 }
1632
1633 function iconv( $in, $out, $string ) {
1634 # For most languages, this is a wrapper for iconv
1635 return iconv( $in, $out, $string );
1636 }
1637
1638 function ucfirst( $string ) {
1639 # For most languages, this is a wrapper for ucfirst()
1640 return ucfirst( $string );
1641 }
1642
1643 function lcfirst( $s ) {
1644 return strtolower( $s{0} ). substr( $s, 1 );
1645 }
1646
1647 function checkTitleEncoding( $s ) {
1648 global $wgInputEncoding;
1649
1650 # Check for UTF-8 URLs; Internet Explorer produces these if you
1651 # type non-ASCII chars in the URL bar or follow unescaped links.
1652 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1653 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1654 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1655
1656 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1657 return iconv( "UTF-8", $wgInputEncoding, $s );
1658
1659 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1660 return utf8_encode( $s );
1661
1662 # Other languages can safely leave this function, or replace
1663 # it with one to detect and convert another legacy encoding.
1664 return $s;
1665 }
1666
1667 function stripForSearch( $in ) {
1668 # Some languages have special punctuation to strip out
1669 # or characters which need to be converted for MySQL's
1670 # indexing to grok it correctly. Make such changes here.
1671 return $in;
1672 }
1673
1674
1675 function setAltEncoding() {
1676 # Some languages may have an alternate char encoding option
1677 # (Esperanto X-coding, Japanese furigana conversion, etc)
1678 # If 'altencoding' is checked in user prefs, this gives a
1679 # chance to swap out the default encoding settings.
1680 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1681 }
1682
1683 function recodeForEdit( $s ) {
1684 # For some languages we'll want to explicitly specify
1685 # which characters make it into the edit box raw
1686 # or are converted in some way or another.
1687 # Note that if wgOutputEncoding is different from
1688 # wgInputEncoding, this text will be further converted
1689 # to wgOutputEncoding.
1690 global $wgInputEncoding, $wgEditEncoding;
1691 if( $wgEditEncoding == "" or
1692 $wgEditEncoding == $wgInputEncoding ) {
1693 return $s;
1694 } else {
1695 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1696 }
1697 }
1698
1699 function recodeInput( $s ) {
1700 # Take the previous into account.
1701 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1702 if($wgEditEncoding != "") {
1703 $enc = $wgEditEncoding;
1704 } else {
1705 $enc = $wgOutputEncoding;
1706 }
1707 if( $enc == $wgInputEncoding ) {
1708 return $s;
1709 } else {
1710 return $this->iconv( $enc, $wgInputEncoding, $s );
1711 }
1712 }
1713
1714 # For right-to-left language support
1715 function isRTL() { return false; }
1716
1717 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1718 function linkPrefixExtension() { return false; }
1719
1720
1721 function getMagicWords()
1722 {
1723 global $wgMagicWordsEn;
1724 return $wgMagicWordsEn;
1725 }
1726
1727 # Fill a MagicWord object with data from here
1728 function getMagic( &$mw )
1729 {
1730 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1731 $rawEntry = $raw[$mw->mId];
1732 $mw->mCaseSensitive = $rawEntry[0];
1733 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1734 }
1735
1736 # Italic is unsuitable for some languages
1737 function emphasize( $text )
1738 {
1739 return "<em>$text</em>";
1740 }
1741
1742 # returns additional Regex for the tokenizer. See LanguageFr.php for an example
1743 function tokenizerRegex()
1744 {
1745 return "";
1746 }
1747
1748 # Process the token generated from the tokenizer by the above regex. Return
1749 # NULL if the token is unknown, and the text to be added to the output otherwise
1750 function processToken( &$token , &$tokenStack)
1751 {
1752 return NULL;
1753 }
1754
1755 # Normally we use the plain ASCII digits. Some languages such as Arabic will
1756 # want to output numbers using script-appropriate characters: override this
1757 # function with a translator. See LanguageAr.php for an example.
1758 function formatNum( $number ) {
1759 return $number;
1760 }
1761
1762 }
1763
1764 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
1765
1766 ?>