made setSquidMaxage an accessor, default mSquidMaxage = 0
[mediawiki.git] / languages / Language.php
blobd6389fac8fc49fdb40c81be5212139397e9023f9
1 <?php
2 #--------------------------------------------------------------------------
3 # Constants
4 #--------------------------------------------------------------------------
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);
31 #--------------------------------------------------------------------------
32 # Language-specific text
33 #--------------------------------------------------------------------------
35 # NOTE: To turn off "Current Events" in the sidebar,
36 # set "currentevents" => "-"
38 # NOTE: To turn off "Disclaimers" in the title links,
39 # set "disclaimers" => "-"
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.
46 if($wgMetaNamespace === FALSE)
47 $wgMetaNamespace = str_replace( " ", "_", $wgSitename );
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"
63 # Temporarily commented out:
64 /*,
65 10 => "Template",
66 11 => "Template_talk"*/
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
80 /* private */ $wgQuickbarSettingsEn = array(
81 "None", "Fixed left", "Fixed right", "Floating left"
84 /* private */ $wgSkinNamesEn = array(
85 "Standard", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
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"
96 /* private */ $wgDateFormatsEn = array(
97 "No preference",
98 "January 15, 2001",
99 "15 January 2001",
100 "2001 January 15",
101 "2001-01-15"
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"
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"
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
315 $wgLanguageNamesEn =& $wgLanguageNames;
318 /* private */ $wgWeekdayNamesEn = array(
319 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
320 "Friday", "Saturday"
323 /* private */ $wgMonthNamesEn = array(
324 "January", "February", "March", "April", "May", "June",
325 "July", "August", "September", "October", "November",
326 "December"
329 /* private */ $wgMonthAbbreviationsEn = array(
330 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
331 "Sep", "Oct", "Nov", "Dec"
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" )
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).
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",
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",
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",
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"
412 /* private */ $wgDeveloperSpecialPagesEn = array(
413 "Lockdb" => "Make database read-only",
414 "Unlockdb" => "Restore DB write access"
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
424 /* private */ $wgAllMessagesEn = array(
426 # Bits of text used by many pages:
428 "categories" => "Page categories",
429 "category" => "category",
430 "category_header" => "Articles in category \"$1\"",
431 "subcategories" => "Subcategories",
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='/wiki/GNU_FDL'>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",
520 # Main script and global functions
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.",
529 # General errors
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\".
559 <p>This is usually caused by following an outdated diff or history link to a
560 page that has been deleted.
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
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]].
589 You can view and copy the source of this page:",
591 # Login and logout pages
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",
600 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
601 Don't forget to change your $wgSitename preferences.",
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",
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" => "",
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",
672 # Edit pages
674 "summary" => "Summary",
675 "subject" => "Subject/headline",
676 "minoredit" => "This is a minor edit",
677 "watchthis" => "Watch this article",
678 "savearticle" => "Save page",
679 "preview" => "Preview",
680 "showpreview" => "Show preview",
681 "blockedtitle" => "User is blocked",
682 "blockedtext" => "Your user name or IP address has been blocked by $1.
683 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
684 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
686 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]].
688 Your IP address is $3. Please include this address in any queries you make.
690 "whitelistedittitle" => "Login required to edit",
691 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
692 "whitelistreadtitle" => "Login required to read",
693 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
694 "whitelistacctitle" => "You are not allowed to create an account",
695 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
696 "loginreqtitle" => "Login Required",
697 "loginreqtext" => "You must [[special:Userlogin|login]] to view other pages.",
698 "accmailtitle" => "Password sent.",
699 "accmailtext" => "The Password for '$1' has been sent to $2.",
700 "newarticle" => "(New)",
701 "newarticletext" =>
702 "You've followed a link to a page that doesn't exist yet.
703 To create the page, start typing in the box below
704 (see the [[$wgMetaNamespace:Help|help page]] for more info).
705 If you are here by mistake, just click your browser's '''back''' button.",
706 "talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
707 "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.'' ",
708 "noarticletext" => "(There is currently no text in this page)",
709 "updated" => "(Updated)",
710 "note" => "<strong>Note:</strong> ",
711 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
712 "previewconflict" => "This preview reflects the text in the upper
713 text editing area as it will appear if you choose to save.",
714 "editing" => "Editing $1",
715 "sectionedit" => " (section)",
716 "commentedit" => " (comment)",
717 "editconflict" => "Edit conflict: $1",
718 "explainconflict" => "Someone else has changed this page since you
719 started editing it.
720 The upper text area contains the page text as it currently exists.
721 Your changes are shown in the lower text area.
722 You will have to merge your changes into the existing text.
723 <b>Only</b> the text in the upper text area will be saved when you
724 press \"Save page\".\n<p>",
725 "yourtext" => "Your text",
726 "storedversion" => "Stored version",
727 "editingold" => "<strong>WARNING: You are editing an out-of-date
728 revision of this page.
729 If you save it, any changes made since this revision will be lost.</strong>\n",
730 "yourdiff" => "Differences",
731 # FIXME: This is inappropriate for third-party use!
732 "copyrightwarning" => "Please note that all contributions to $wgSitename are
733 considered to be released under the GNU Free Documentation License
734 (see $1 for details).
735 If you don't want your writing to be edited mercilessly and redistributed
736 at will, then don't submit it here.<br>
737 You are also promising us that you wrote this yourself, or copied it from a
738 public domain or similar free resource.
739 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
740 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
741 browsers may have problems editing pages approaching or longer than 32kb.
742 Please consider breaking the page into smaller sections.",
743 "readonlywarning" => "WARNING: The database has been locked for maintenance,
744 so you will not be able to save your edits right now. You may wish to cut-n-paste
745 the text into a text file and save it for later.",
746 "protectedpagewarning" => "WARNING: This page has been locked so that only
747 users with sysop privileges can edit it. Be sure you are following the
748 <a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
749 guidelines</a>.",
751 # History pages
753 "revhistory" => "Revision history",
754 "nohistory" => "There is no edit history for this page.",
755 "revnotfound" => "Revision not found",
756 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
757 Please check the URL you used to access this page.\n",
758 "loadhist" => "Loading page history",
759 "currentrev" => "Current revision",
760 "revisionasof" => "Revision as of $1",
761 "cur" => "cur",
762 "next" => "next",
763 "last" => "last",
764 "orig" => "orig",
765 "histlegend" => "Legend: (cur) = difference with current version,
766 (last) = difference with preceding version, M = minor edit",
768 # Diffs
770 "difference" => "(Difference between revisions)",
771 "loadingrev" => "loading revision for diff",
772 "lineno" => "Line $1:",
773 "editcurrent" => "Edit the current version of this page",
775 # Search results
777 "searchresults" => "Search results",
778 "searchhelppage" => "$wgMetaNamespace:Searching",
779 "searchingwikipedia" => "Searching $wgSitename",
780 "searchresulttext" => "For more information about searching $wgSitename, see $1.",
781 "searchquery" => "For query \"$1\"",
782 "badquery" => "Badly formed search query",
783 "badquerytext" => "We could not process your query.
784 This is probably because you have attempted to search for a
785 word fewer than three letters long, which is not yet supported.
786 It could also be that you have mistyped the expression, for
787 example \"fish and and scales\".
788 Please try another query.",
789 "matchtotals" => "The query \"$1\" matched $2 article titles
790 and the text of $3 articles.",
791 "nogomatch" => "No page with this exact title exists, trying full text search.",
792 "titlematches" => "Article title matches",
793 "notitlematches" => "No article title matches",
794 "textmatches" => "Article text matches",
795 "notextmatches" => "No article text matches",
796 "prevn" => "previous $1",
797 "nextn" => "next $1",
798 "viewprevnext" => "View ($1) ($2) ($3).",
799 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
800 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
801 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
802 often caused by searching for common words like \"have\" and \"from\",
803 which are not indexed, or by specifying more than one search term (only pages
804 containing all of the search terms will appear in the result).",
805 "powersearch" => "Search",
806 "powersearchtext" => "
807 Search in namespaces :<br>
808 $1<br>
809 $2 List redirects &nbsp; Search for $3 $9",
810 "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>",
811 "googlesearch" => "
812 <!-- SiteSearch Google -->
813 <FORM method=GET action=\"http://www.google.com/search\">
814 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
815 <A HREF=\"http://www.google.com/\">
816 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
817 border=\"0\" ALT=\"Google\"></A>
818 </td>
819 <td>
820 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
821 <INPUT type=submit name=btnG VALUE=\"Google Search\">
822 <font size=-1>
823 <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>
824 <input type='hidden' name='ie' value='$2'>
825 <input type='hidden' name='oe' value='$2'>
826 </font>
827 </td></tr></TABLE>
828 </FORM>
829 <!-- SiteSearch Google -->",
830 "blanknamespace" => "(Main)",
832 # Preferences page
834 "preferences" => "Preferences",
835 "prefsnologin" => "Not logged in",
836 "prefsnologintext" => "You must be <a href=\"" .
837 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
838 to set user preferences.",
839 "prefslogintext" => "You are logged in as \"$1\".
840 Your internal ID number is $2.
842 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
843 "prefsreset" => "Preferences have been reset from storage.",
844 "qbsettings" => "Quickbar settings",
845 "changepassword" => "Change password",
846 "skin" => "Skin",
847 "math" => "Rendering math",
848 "dateformat" => "Date format",
849 "math_failure" => "Failed to parse",
850 "math_unknown_error" => "unknown error",
851 "math_unknown_function" => "unknown function ",
852 "math_lexing_error" => "lexing error",
853 "math_syntax_error" => "syntax error",
854 "math_image_error" => "PNG conversion failed",
855 "saveprefs" => "Save preferences",
856 "resetprefs" => "Reset preferences",
857 "oldpassword" => "Old password",
858 "newpassword" => "New password",
859 "retypenew" => "Retype new password",
860 "textboxsize" => "Textbox dimensions",
861 "rows" => "Rows",
862 "columns" => "Columns",
863 "searchresultshead" => "Search result settings",
864 "resultsperpage" => "Hits to show per page",
865 "contextlines" => "Lines to show per hit",
866 "contextchars" => "Characters of context per line",
867 "stubthreshold" => "Threshold for stub display",
868 "recentchangescount" => "Number of titles in recent changes",
869 "savedprefs" => "Your preferences have been saved.",
870 "timezonetext" => "Enter number of hours your local time differs
871 from server time (UTC).",
872 "localtime" => "Local time display",
873 "timezoneoffset" => "Offset",
874 "servertime" => "Server time is now",
875 "guesstimezone" => "Fill in from browser",
876 "emailflag" => "Disable e-mail from other users",
877 "defaultns" => "Search in these namespaces by default:",
879 # Recent changes
881 "changes" => "changes",
882 "recentchanges" => "Recent changes",
883 "recentchangestext" => "Track the most recent changes to the wiki on this page.",
884 "rcloaderr" => "Loading recent changes",
885 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
886 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
887 "rclistfrom" => "Show new changes starting from $1",
888 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
889 # "rclinks" => "Show last $1 changes in last $2 days.",
890 "showhideminor" => "$1 minor edits | $2 bots | $3 logged in users ",
891 "rclinks" => "Show last $1 changes in last $2 days<br>$3",
892 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
893 "rcliu" => "; $1 edits from logged in users",
894 "diff" => "diff",
895 "hist" => "hist",
896 "hide" => "hide",
897 "show" => "show",
898 "tableform" => "table",
899 "listform" => "list",
900 "nchanges" => "$1 changes",
901 "minoreditletter" => "M",
902 "newpageletter" => "N",
904 # Upload
906 "upload" => "Upload file",
907 "uploadbtn" => "Upload file",
908 "uploadlink" => "Upload images",
909 "reupload" => "Re-upload",
910 "reuploaddesc" => "Return to the upload form.",
911 "uploadnologin" => "Not logged in",
912 "uploadnologintext" => "You must be <a href=\"" .
913 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
914 to upload files.",
915 "uploadfile" => "Upload images, sounds, documents etc.",
916 "uploaderror" => "Upload error",
917 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
918 make sure to read and follow the <a href=\"" .
919 wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
920 <p>If a file with the name you are specifying already
921 exists on the wiki, it'll be replaced without warning.
922 So unless you mean to update a file, it's a good idea
923 to first check if such a file exists.
924 <p>To view or search previously uploaded images,
925 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
926 "\">list of uploaded images</a>.
927 Uploads and deletions are logged on the <a href=\"" .
928 wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
929 <p>Use the form below to upload new image files for use in
930 illustrating your articles.
931 On most browsers, you will see a \"Browse...\" button, which will
932 bring up your operating system's standard file open dialog.
933 Choosing a file will fill the name of that file into the text
934 field next to the button.
935 You must also check the box affirming that you are not
936 violating any copyrights by uploading the file.
937 Press the \"Upload\" button to finish the upload.
938 This may take some time if you have a slow internet connection.
939 <p>The preferred formats are JPEG for photographic images, PNG
940 for drawings and other iconic images, and OGG for sounds.
941 Please name your files descriptively to avoid confusion.
942 To include the image in an article, use a link in the form
943 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
944 or <b>[[media:file.ogg]]</b> for sounds.
945 <p>Please note that as with wiki pages, others may edit or
946 delete your uploads if they think it serves the encyclopedia, and
947 you may be blocked from uploading if you abuse the system.",
949 "uploadlog" => "upload log",
950 "uploadlogpage" => "Upload_log",
951 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
952 All times shown are server time (UTC).
953 <ul>
954 </ul>
956 "filename" => "Filename",
957 "filedesc" => "Summary",
958 "filestatus" => "Copyright status",
959 "filesource" => "Source",
960 "affirmation" => "I affirm that the copyright holder of this file
961 agrees to license it under the terms of the $1.",
962 "copyrightpage" => "$wgMetaNamespace:Copyrights",
963 "copyrightpagename" => "$wgSitename copyright",
964 "uploadedfiles" => "Uploaded files",
965 "noaffirmation" => "You must affirm that your upload does not violate
966 any copyrights.",
967 "ignorewarning" => "Ignore warning and save file anyway.",
968 "minlength" => "Image names must be at least three letters.",
969 "badfilename" => "Image name has been changed to \"$1\".",
970 "badfiletype" => "\".$1\" is not a recommended image file format.",
971 "largefile" => "It is recommended that images not exceed 100k in size.",
972 "successfulupload" => "Successful upload",
973 "fileuploaded" => "File \"$1\" uploaded successfully.
974 Please follow this link: ($2) to the description page and fill
975 in information about the file, such as where it came from, when it was
976 created and by whom, and anything else you may know about it.",
977 "uploadwarning" => "Upload warning",
978 "savefile" => "Save file",
979 "uploadedimage" => "uploaded \"$1\"",
980 "uploaddisabled" => "Sorry, uploading is disabled.",
982 # Image list
984 "imagelist" => "Image list",
985 "imagelisttext" => "Below is a list of $1 images sorted $2.",
986 "getimagelist" => "fetching image list",
987 "ilshowmatch" => "Show all images with names matching",
988 "ilsubmit" => "Search",
989 "showlast" => "Show last $1 images sorted $2.",
990 "all" => "all",
991 "byname" => "by name",
992 "bydate" => "by date",
993 "bysize" => "by size",
994 "imgdelete" => "del",
995 "imgdesc" => "desc",
996 "imglegend" => "Legend: (desc) = show/edit image description.",
997 "imghistory" => "Image history",
998 "revertimg" => "rev",
999 "deleteimg" => "del",
1000 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
1001 this old version, (rev) = revert to this old version.
1002 <br><i>Click on date to see image uploaded on that date</i>.",
1003 "imagelinks" => "Image links",
1004 "linkstoimage" => "The following pages link to this image:",
1005 "nolinkstoimage" => "There are no pages that link to this image.",
1007 # Statistics
1009 "statistics" => "Statistics",
1010 "sitestats" => "Site statistics",
1011 "userstats" => "User statistics",
1012 "sitestatstext" => "There are <b>$1</b> total pages in the database.
1013 This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
1014 pages, redirects, and others that probably don't qualify as articles.
1015 Excluding those, there are <b>$2</b> pages that are probably legitimate
1016 articles.<p>
1017 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
1018 since the software was upgraded (July 20, 2002).
1019 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
1020 "userstatstext" => "There are <b>$1</b> registered users.
1021 <b>$2</b> of these are administrators (see $3).",
1023 # Maintenance Page
1025 "maintenance" => "Maintenance page",
1026 "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 ;-)",
1027 "maintenancebacklink" => "Back to Maintenance Page",
1028 "disambiguations" => "Disambiguation pages",
1029 "disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
1030 "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.",
1031 "doubleredirects" => "Double Redirects",
1032 "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.",
1033 "brokenredirects" => "Broken Redirects",
1034 "brokenredirectstext" => "The following redirects link to a non-existing article.",
1035 "selflinks" => "Pages with Self Links",
1036 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
1037 "mispeelings" => "Pages with misspellings",
1038 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1039 "mispeelingspage" => "List of common misspellings",
1040 "missinglanguagelinks" => "Missing Language Links",
1041 "missinglanguagelinksbutton" => "Find missing language links for",
1042 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1045 # Miscellaneous special pages
1047 "orphans" => "Orphaned pages",
1048 "lonelypages" => "Orphaned pages",
1049 "unusedimages" => "Unused images",
1050 "popularpages" => "Popular pages",
1051 "nviews" => "$1 views",
1052 "wantedpages" => "Wanted pages",
1053 "nlinks" => "$1 links",
1054 "allpages" => "All pages",
1055 "randompage" => "Random page",
1056 "shortpages" => "Short pages",
1057 "longpages" => "Long pages",
1058 "deadendpages" => "Dead-end pages",
1059 "listusers" => "User list",
1060 "specialpages" => "Special pages",
1061 "spheading" => "Special pages for all users",
1062 "sysopspheading" => "For sysop use only",
1063 "developerspheading" => "For developer use only",
1064 "protectpage" => "Protect page",
1065 "recentchangeslinked" => "Related changes",
1066 "rclsub" => "(to pages linked from \"$1\")",
1067 "debug" => "Debug",
1068 "newpages" => "New pages",
1069 "ancientpages" => "Oldest articles",
1070 "intl" => "Interlanguage links",
1071 "movethispage" => "Move this page",
1072 "unusedimagestext" => "<p>Please note that other web sites may link to an image with
1073 a direct URL, and so may still be listed here despite being
1074 in active use.",
1075 "booksources" => "Book sources",
1076 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1077 "booksourcetext" => "Below is a list of links to other sites that
1078 sell new and used books, and may also have further information
1079 about books you are looking for.
1080 $wgSitename is not affiliated with any of these businesses, and
1081 this list should not be construed as an endorsement.",
1082 "rfcurl" => "http://www.faqs.org/rfcs/rfc$1.html",
1083 "alphaindexline" => "$1 to $2",
1084 "version" => "Version",
1086 # Email this user
1088 "mailnologin" => "No send address",
1089 "mailnologintext" => "You must be <a href=\"" .
1090 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1091 and have a valid e-mail address in your <a href=\"" .
1092 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
1093 to send e-mail to other users.",
1094 "emailuser" => "E-mail this user",
1095 "emailpage" => "E-mail user",
1096 "emailpagetext" => "If this user has entered a valid e-mail address in
1097 his or her user preferences, the form below will send a single message.
1098 The e-mail address you entered in your user preferences will appear
1099 as the \"From\" address of the mail, so the recipient will be able
1100 to reply.",
1101 "usermailererror" => "Mail object returned error: ",
1102 "defemailsubject" => "$wgSitename e-mail",
1103 "noemailtitle" => "No e-mail address",
1104 "noemailtext" => "This user has not specified a valid e-mail address,
1105 or has chosen not to receive e-mail from other users.",
1106 "emailfrom" => "From",
1107 "emailto" => "To",
1108 "emailsubject" => "Subject",
1109 "emailmessage" => "Message",
1110 "emailsend" => "Send",
1111 "emailsent" => "E-mail sent",
1112 "emailsenttext" => "Your e-mail message has been sent.",
1114 # Watchlist
1116 "watchlist" => "My watchlist",
1117 "watchlistsub" => "(for user \"$1\")",
1118 "nowatchlist" => "You have no items on your watchlist.",
1119 "watchnologin" => "Not logged in",
1120 "watchnologintext" => "You must be <a href=\"" .
1121 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1122 to modify your watchlist.",
1123 "addedwatch" => "Added to watchlist",
1124 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
1125 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
1126 Future changes to this page and its associated Talk page will be listed there,
1127 and the page will appear <b>bolded</b> in the <a href=\"" .
1128 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
1129 make it easier to pick out.</p>
1131 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1132 "removedwatch" => "Removed from watchlist",
1133 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
1134 "watchthispage" => "Watch this page",
1135 "unwatchthispage" => "Stop watching",
1136 "notanarticle" => "Not an article",
1137 "watchnochange" => "None of your watched items were edited in the time period displayed.",
1138 "watchdetails" => "($1 pages watched not counting talk pages;
1139 $2 total pages edited since cutoff;
1140 $3...
1141 <a href='$4'>show and edit complete list</a>.)",
1142 "watchmethod-recent"=> "checking recent edits for watched pages",
1143 "watchmethod-list" => "checking watched pages for recent edits",
1144 "removechecked" => "Remove checked items from watchlist",
1145 "watchlistcontains" => "Your watchlist contains $1 pages.",
1146 "watcheditlist" => "Here's an alphabetical list of your
1147 watched pages. Check the boxes of pages you want to remove
1148 from your watchlist and click the 'remove checked' button
1149 at the bottom of the screen.",
1150 "removingchecked" => "Removing requested items from watchlist...",
1151 "couldntremove" => "Couldn't remove item '$1'...",
1152 "iteminvalidname" => "Problem with item '$1', invalid name...",
1153 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
1154 "wlshowlast" => "Show last $1 hours $2 days $3",
1155 "wlsaved" => "This is a saved version of your watchlist.",
1158 # Delete/protect/revert
1160 "deletepage" => "Delete page",
1161 "confirm" => "Confirm",
1162 "excontent" => "content was:",
1163 "exbeforeblank" => "content before blanking was:",
1164 "exblank" => "page was empty",
1165 "confirmdelete" => "Confirm delete",
1166 "deletesub" => "(Deleting \"$1\")",
1167 "historywarning" => "Warning: The page you are about to delete has a history: ",
1168 "confirmdeletetext" => "You are about to permanently delete a page
1169 or image along with all of its history from the database.
1170 Please confirm that you intend to do this, that you understand the
1171 consequences, and that you are doing this in accordance with
1172 [[$wgMetaNamespace:Policy]].",
1173 "confirmcheck" => "Yes, I really want to delete this.",
1174 "actioncomplete" => "Action complete",
1175 "deletedtext" => "\"$1\" has been deleted.
1176 See $2 for a record of recent deletions.",
1177 "deletedarticle" => "deleted \"$1\"",
1178 "dellogpage" => "Deletion_log",
1179 "dellogpagetext" => "Below is a list of the most recent deletions.
1180 All times shown are server time (UTC).
1181 <ul>
1182 </ul>
1184 "deletionlog" => "deletion log",
1185 "reverted" => "Reverted to earlier revision",
1186 "deletecomment" => "Reason for deletion",
1187 "imagereverted" => "Revert to earlier version was successful.",
1188 "rollback" => "Roll back edits",
1189 "rollbacklink" => "rollback",
1190 "rollbackfailed" => "Rollback failed",
1191 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1192 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1193 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1195 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1196 # only shown if there is an edit comment
1197 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1198 "revertpage" => "Reverted edit of $2, changed back to last version by $1",
1199 "protectlogpage" => "Protection_log",
1200 "protectlogtext" => "Below is a list of page locks/unlocks.
1201 See [[$wgMetaNamespace:Protected page]] for more information.",
1202 "protectedarticle" => "protected [[$1]]",
1203 "unprotectedarticle" => "unprotected [[$1]]",
1205 # Undelete
1206 "undelete" => "Restore deleted page",
1207 "undeletepage" => "View and restore deleted pages",
1208 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1209 can be restored. The archive may be periodically cleaned out.",
1210 "undeletearticle" => "Restore deleted article",
1211 "undeleterevisions" => "$1 revisions archived",
1212 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1213 If a new page with the same name has been created since the deletion, the restored
1214 revisions will appear in the prior history, and the current revision of the live page
1215 will not be automatically replaced.",
1216 "undeleterevision" => "Deleted revision as of $1",
1217 "undeletebtn" => "Restore!",
1218 "undeletedarticle" => "restored \"$1\"",
1219 "undeletedtext" => "The article [[$1]] has been successfully restored.
1220 See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
1222 # Contributions
1224 "contributions" => "User contributions",
1225 "mycontris" => "My contributions",
1226 "contribsub" => "For $1",
1227 "nocontribs" => "No changes were found matching these criteria.",
1228 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1229 "uclinks" => "View the last $1 changes; view the last $2 days.",
1230 "uctop" => " (top)" ,
1232 # What links here
1234 "whatlinkshere" => "What links here",
1235 "notargettitle" => "No target",
1236 "notargettext" => "You have not specified a target page or user
1237 to perform this function on.",
1238 "linklistsub" => "(List of links)",
1239 "linkshere" => "The following pages link to here:",
1240 "nolinkshere" => "No pages link to here.",
1241 "isredirect" => "redirect page",
1243 # Block/unblock IP
1245 "blockip" => "Block user",
1246 "blockiptext" => "Use the form below to block write access
1247 from a specific IP address or username.
1248 This should be done only only to prevent vandalism, and in
1249 accordance with [[$wgMetaNamespace:Policy|policy]].
1250 Fill in a specific reason below (for example, citing particular
1251 pages that were vandalized).",
1252 "ipaddress" => "IP Address/username",
1253 "ipbexpiry" => "Expiry",
1254 "ipbreason" => "Reason",
1255 "ipbsubmit" => "Block this user",
1256 "badipaddress" => "Invalid IP address",
1257 "noblockreason" => "You must supply a reason for the block.",
1258 "blockipsuccesssub" => "Block succeeded",
1259 "blockipsuccesstext" => "\"$1\" has been blocked.
1260 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1261 "unblockip" => "Unblock user",
1262 "unblockiptext" => "Use the form below to restore write access
1263 to a previously blocked IP address or username.",
1264 "ipusubmit" => "Unblock this address",
1265 "ipusuccess" => "\"$1\" unblocked",
1266 "ipblocklist" => "List of blocked IP addresses and usernames",
1267 "blocklistline" => "$1, $2 blocked $3 (expires $4)",
1268 "blocklink" => "block",
1269 "unblocklink" => "unblock",
1270 "contribslink" => "contribs",
1271 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1272 "blocklogpage" => "Block_log",
1273 "blocklogentry" => 'blocked "$1" with an expiry time of $2',
1274 "blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
1275 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1276 the list of currently operational bans and blocks.",
1277 "unblocklogentry" => 'unblocked "$1"',
1278 "range_block_disabled" => "The sysop ability to create range blocks is disabled.",
1279 "ipb_expiry_invalid" => "Expiry time invalid.",
1280 "ip_range_invalid" => "Invalid IP range.\n",
1281 "proxyblocker" => "Proxy blocker",
1282 "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.",
1283 "proxyblocksuccess" => "Done.\n",
1285 # Developer tools
1287 "lockdb" => "Lock database",
1288 "unlockdb" => "Unlock database",
1289 "lockdbtext" => "Locking the database will suspend the ability of all
1290 users to edit pages, change their preferences, edit their watchlists, and
1291 other things requiring changes in the database.
1292 Please confirm that this is what you intend to do, and that you will
1293 unlock the database when your maintenance is done.",
1294 "unlockdbtext" => "Unlocking the database will restore the ability of all
1295 users to edit pages, change their preferences, edit their watchlists, and
1296 other things requiring changes in the database.
1297 Please confirm that this is what you intend to do.",
1298 "lockconfirm" => "Yes, I really want to lock the database.",
1299 "unlockconfirm" => "Yes, I really want to unlock the database.",
1300 "lockbtn" => "Lock database",
1301 "unlockbtn" => "Unlock database",
1302 "locknoconfirm" => "You did not check the confirmation box.",
1303 "lockdbsuccesssub" => "Database lock succeeded",
1304 "unlockdbsuccesssub" => "Database lock removed",
1305 "lockdbsuccesstext" => "The database has been locked.
1306 <br>Remember to remove the lock after your maintenance is complete.",
1307 "unlockdbsuccesstext" => "The database has been unlocked.",
1309 # SQL query
1311 "asksql" => "SQL query",
1312 "asksqltext" => "Use the form below to make a direct query of the
1313 database.
1314 Use single quotes ('like this') to delimit string literals.
1315 This can often add considerable load to the server, so please use
1316 this function sparingly.",
1317 "sqlislogged" => "Please note that all queries are logged.",
1318 "sqlquery" => "Enter query",
1319 "querybtn" => "Submit query",
1320 "selectonly" => "Only read-only queries are allowed.",
1321 "querysuccessful" => "Query successful",
1323 # Make sysop
1324 "makesysoptitle" => "Make a user into a sysop",
1325 "makesysoptext" => "This form is used by bureaucrats to turn ordinary users into administrators.
1326 Type the name of the user in the box and press the button to make the user an administrator",
1327 "makesysopname" => "Name of the user:",
1328 "makesysopsubmit" => "Make this user into a sysop",
1329 "makesysopok" => "<b>User \"$1\" is now a sysop</b>",
1330 "makesysopfail" => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1331 "setbureaucratflag" => "Set bureaucrat flag",
1332 "bureaucratlog" => "Bureaucrat_log",
1333 "bureaucratlogentry" => "Rights for user \"$1\" set \"$2\"",
1334 "rights" => "Rights:",
1335 "set_user_rights" => "Set user rights",
1336 "user_rights_set" => "<b>User rights for \"$1\" updated</b>",
1337 "set_rights_fail" => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1339 # Move page
1341 "movepage" => "Move page",
1342 "movepagetext" => "Using the form below will rename a page, moving all
1343 of its history to the new name.
1344 The old title will become a redirect page to the new title.
1345 Links to the old page title will not be changed; be sure to
1346 [[Special:Maintenance|check]] for double or broken redirects.
1347 You are responsible for making sure that links continue to
1348 point where they are supposed to go.
1350 Note that the page will '''not''' be moved if there is already
1351 a page at the new title, unless it is empty or a redirect and has no
1352 past edit history. This means that you can rename a page back to where
1353 it was just renamed from if you make a mistake, and you cannot overwrite
1354 an existing page.
1356 <b>WARNING!</b>
1357 This can be a drastic and unexpected change for a popular page;
1358 please be sure you understand the consequences of this before
1359 proceeding.",
1360 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1361 *You are moving the page across namespaces,
1362 *A non-empty talk page already exists under the new name, or
1363 *You uncheck the box below.
1365 In those cases, you will have to move or merge the page manually if desired.",
1366 "movearticle" => "Move page",
1367 "movenologin" => "Not logged in",
1368 "movenologintext" => "You must be a registered user and <a href=\"" .
1369 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1370 to move a page.",
1371 "newtitle" => "To new title",
1372 "movepagebtn" => "Move page",
1373 "pagemovedsub" => "Move succeeded",
1374 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1375 "articleexists" => "A page of that name already exists, or the
1376 name you have chosen is not valid.
1377 Please choose another name.",
1378 "talkexists" => "The page itself was moved successfully, but the
1379 talk page could not be moved because one already exists at the new
1380 title. Please merge them manually.",
1381 "movedto" => "moved to",
1382 "movetalk" => "Move \"talk\" page as well, if applicable.",
1383 "talkpagemoved" => "The corresponding talk page was also moved.",
1384 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1385 "1movedto2" => "$1 moved to $2",
1387 # Export
1389 "export" => "Export pages",
1390 "exporttext" => "You can export the text and editing history of a particular
1391 page or set of pages wrapped in some XML; this can then be imported into another
1392 wiki running MediaWiki software, transformed, or just kept for your private
1393 amusement.",
1394 "exportcuronly" => "Include only the current revision, not the full history",
1396 # Namespace 8 related
1398 "allmessages" => "All system messages",
1399 "allmessagestext" => "This is a list of all system messages available in the MediaWiki: namespace.",
1401 # Thumbnails
1403 "thumbnail-more" => "Enlarge",
1404 "missingimage" => "<b>Missing image</b><br><i>$1</i>\n"
1409 #--------------------------------------------------------------------------
1410 # Internationalisation code
1411 #--------------------------------------------------------------------------
1413 class Language {
1414 function Language(){
1415 # Copies any missing values in the specified arrays from En to the current language
1416 $fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
1417 $name = get_class( $this );
1418 if( strpos( $name, "language" ) == 0){
1419 $lang = ucfirst( substr( $name, 8 ) );
1420 foreach( $fillin as $arrname ){
1421 $langver = "{$arrname}{$lang}";
1422 $enver = "{$arrname}En";
1423 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1424 continue;
1425 foreach($GLOBALS[$enver] as $spage => $text){
1426 if( ! isset( $GLOBALS[$langver][$spage] ) )
1427 $GLOBALS[$langver][$spage] = $text;
1433 function getDefaultUserOptions () {
1434 global $wgDefaultUserOptionsEn ;
1435 return $wgDefaultUserOptionsEn ;
1438 function getBookstoreList () {
1439 global $wgBookstoreListEn ;
1440 return $wgBookstoreListEn ;
1443 function getNamespaces() {
1444 global $wgNamespaceNamesEn;
1445 return $wgNamespaceNamesEn;
1448 function getNsText( $index ) {
1449 global $wgNamespaceNamesEn;
1450 return $wgNamespaceNamesEn[$index];
1453 function getNsIndex( $text ) {
1454 global $wgNamespaceNamesEn;
1456 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1457 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1459 return false;
1462 function specialPage( $name ) {
1463 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1466 function getQuickbarSettings() {
1467 global $wgQuickbarSettingsEn;
1468 return $wgQuickbarSettingsEn;
1471 function getSkinNames() {
1472 global $wgSkinNamesEn;
1473 return $wgSkinNamesEn;
1476 function getMathNames() {
1477 global $wgMathNamesEn;
1478 return $wgMathNamesEn;
1481 function getDateFormats() {
1482 global $wgDateFormatsEn;
1483 return $wgDateFormatsEn;
1486 function getUserToggles() {
1487 global $wgUserTogglesEn;
1488 return $wgUserTogglesEn;
1491 function getLanguageNames() {
1492 global $wgLanguageNamesEn;
1493 return $wgLanguageNamesEn;
1496 function getLanguageName( $code ) {
1497 global $wgLanguageNamesEn;
1498 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1499 return "";
1501 return $wgLanguageNamesEn[$code];
1504 function getMonthName( $key )
1506 global $wgMonthNamesEn;
1507 return $wgMonthNamesEn[$key-1];
1510 /* by default we just return base form */
1511 function getMonthNameGen( $key )
1513 return $this->getMonthName( $key );
1516 function getMonthAbbreviation( $key )
1518 global $wgMonthAbbreviationsEn;
1519 return $wgMonthAbbreviationsEn[$key-1];
1522 function getWeekdayName( $key )
1524 global $wgWeekdayNamesEn;
1525 return $wgWeekdayNamesEn[$key-1];
1528 function userAdjust( $ts )
1530 global $wgUser, $wgLocalTZoffset;
1532 $tz = $wgUser->getOption( "timecorrection" );
1533 if ( $tz === "" ) {
1534 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1535 $minDiff = 0;
1536 } elseif ( strpos( $tz, ":" ) !== false ) {
1537 $tzArray = explode( ":", $tz );
1538 $hrDiff = intval($tzArray[0]);
1539 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1540 } else {
1541 $hrDiff = intval( $tz );
1543 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1545 $t = mktime( (
1546 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1547 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1548 (int)substr( $ts, 12, 2 ), # Seconds
1549 (int)substr( $ts, 4, 2 ), # Month
1550 (int)substr( $ts, 6, 2 ), # Day
1551 (int)substr( $ts, 0, 4 ) ); #Year
1552 return date( "YmdHis", $t );
1555 function date( $ts, $adj = false )
1557 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1559 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1561 if ( $wgUseDynamicDates ) {
1562 $datePreference = $wgUser->getOption( 'date' );
1563 if ( $datePreference == 0 ) {
1564 $datePreference = $wgAmericanDates ? 1 : 2;
1566 } else {
1567 $datePreference = $wgAmericanDates ? 1 : 2;
1570 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
1571 $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
1572 $year = $this->formatNum( substr( $ts, 0, 4 ) );
1574 switch( $datePreference ) {
1575 case 1: return "$month $day, $year";
1576 case 2: return "$day $month $year";
1577 default: return "$year $month $day";
1581 function time( $ts, $adj = false )
1583 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1585 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1586 return $this->formatNum( $t );
1589 function timeanddate( $ts, $adj = false )
1591 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1594 function rfc1123( $ts )
1596 return date( "D, d M Y H:i:s T", $ts );
1599 function getValidSpecialPages()
1601 global $wgValidSpecialPagesEn;
1602 return $wgValidSpecialPagesEn;
1605 function getSysopSpecialPages()
1607 global $wgSysopSpecialPagesEn;
1608 return $wgSysopSpecialPagesEn;
1611 function getDeveloperSpecialPages()
1613 global $wgDeveloperSpecialPagesEn;
1614 return $wgDeveloperSpecialPagesEn;
1617 function getMessage( $key )
1619 global $wgAllMessagesEn;
1620 return $wgAllMessagesEn[$key];
1623 function getAllMessages()
1625 global $wgAllMessagesEn;
1626 return $wgAllMessagesEn;
1629 function iconv( $in, $out, $string ) {
1630 # For most languages, this is a wrapper for iconv
1631 return iconv( $in, $out, $string );
1634 function ucfirst( $string ) {
1635 # For most languages, this is a wrapper for ucfirst()
1636 return ucfirst( $string );
1639 function lcfirst( $s ) {
1640 return strtolower( $s{0} ). substr( $s, 1 );
1643 function checkTitleEncoding( $s ) {
1644 global $wgInputEncoding;
1646 # Check for UTF-8 URLs; Internet Explorer produces these if you
1647 # type non-ASCII chars in the URL bar or follow unescaped links.
1648 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1649 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1650 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1652 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1653 return iconv( "UTF-8", $wgInputEncoding, $s );
1655 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1656 return utf8_encode( $s );
1658 # Other languages can safely leave this function, or replace
1659 # it with one to detect and convert another legacy encoding.
1660 return $s;
1663 function stripForSearch( $in ) {
1664 # Some languages have special punctuation to strip out
1665 # or characters which need to be converted for MySQL's
1666 # indexing to grok it correctly. Make such changes here.
1667 return $in;
1671 function setAltEncoding() {
1672 # Some languages may have an alternate char encoding option
1673 # (Esperanto X-coding, Japanese furigana conversion, etc)
1674 # If 'altencoding' is checked in user prefs, this gives a
1675 # chance to swap out the default encoding settings.
1676 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1679 function recodeForEdit( $s ) {
1680 # For some languages we'll want to explicitly specify
1681 # which characters make it into the edit box raw
1682 # or are converted in some way or another.
1683 # Note that if wgOutputEncoding is different from
1684 # wgInputEncoding, this text will be further converted
1685 # to wgOutputEncoding.
1686 global $wgInputEncoding, $wgEditEncoding;
1687 if( $wgEditEncoding == "" or
1688 $wgEditEncoding == $wgInputEncoding ) {
1689 return $s;
1690 } else {
1691 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1695 function recodeInput( $s ) {
1696 # Take the previous into account.
1697 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1698 if($wgEditEncoding != "") {
1699 $enc = $wgEditEncoding;
1700 } else {
1701 $enc = $wgOutputEncoding;
1703 if( $enc == $wgInputEncoding ) {
1704 return $s;
1705 } else {
1706 return $this->iconv( $enc, $wgInputEncoding, $s );
1710 # For right-to-left language support
1711 function isRTL() { return false; }
1713 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1714 function linkPrefixExtension() { return false; }
1717 function getMagicWords()
1719 global $wgMagicWordsEn;
1720 return $wgMagicWordsEn;
1723 # Fill a MagicWord object with data from here
1724 function getMagic( &$mw )
1726 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1727 $rawEntry = $raw[$mw->mId];
1728 $mw->mCaseSensitive = $rawEntry[0];
1729 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1732 # Italic is unsuitable for some languages
1733 function emphasize( $text )
1735 return "<em>$text</em>";
1738 # returns additional Regex for the tokenizer. See LanguageFr.php for an example
1739 function tokenizerRegex()
1741 return "";
1744 # Process the token generated from the tokenizer by the above regex. Return
1745 # NULL if the token is unknown, and the text to be added to the output otherwise
1746 function processToken( &$token , &$tokenStack)
1748 return NULL;
1751 # Normally we use the plain ASCII digits. Some languages such as Arabic will
1752 # want to output numbers using script-appropriate characters: override this
1753 # function with a translator. See LanguageAr.php for an example.
1754 function formatNum( $number ) {
1755 return $number;
1760 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );