Add digit transformation function Language::formatNum() for Arabic and other
[mediawiki.git] / languages / Language.php
blobbe6bdad8a3eb8fd1f476e0f008ea40496e3e17b8
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 "Booksources" => "External book sources",
398 # "Categories" => "Page categories",
399 "Export" => "XML page export",
400 "Version" => "Show MediaWiki version",
403 /* private */ $wgSysopSpecialPagesEn = array(
404 "Blockip" => "Block a user/IP address",
405 "Asksql" => "Query the database",
406 "Allmessages" => "All system messages",
407 "Undelete" => "Restore deleted pages",
408 "Makesysop" => "Turn a user into a sysop"
411 /* private */ $wgDeveloperSpecialPagesEn = array(
412 "Lockdb" => "Make database read-only",
413 "Unlockdb" => "Restore DB write access"
416 #-------------------------------------------------------------------
417 # Default messages
418 #-------------------------------------------------------------------
419 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
420 # hyphen (-). If you need more characters, you may be able to change
421 # the regex in MagicWord::initRegex
423 /* private */ $wgAllMessagesEn = array(
425 # Bits of text used by many pages:
427 "categories" => "Page categories",
428 "category" => "category",
429 "category_header" => "Articles in category \"$1\"",
430 "subcategories" => "Subcategories",
432 "linktrail" => "/^([a-z]+)(.*)\$/sD",
433 "mainpage" => "Main Page",
434 "mainpagetext" => "Wiki software successfully installed.",
435 "about" => "About",
436 "aboutwikipedia" => "About $wgSitename",
437 "aboutpage" => "$wgMetaNamespace:About",
438 "help" => "Help",
439 "helppage" => "$wgMetaNamespace:Help",
440 "wikititlesuffix" => "$wgSitename",
441 "bugreports" => "Bug reports",
442 "bugreportspage" => "$wgMetaNamespace:Bug_reports",
443 "sitesupport" => "Donations",
444 "sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
445 "faq" => "FAQ",
446 "faqpage" => "$wgMetaNamespace:FAQ",
447 "edithelp" => "Editing help",
448 "edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
449 "cancel" => "Cancel",
450 "qbfind" => "Find",
451 "qbbrowse" => "Browse",
452 "qbedit" => "Edit",
453 "qbpageoptions" => "This page",
454 "qbpageinfo" => "Context",
455 "qbmyoptions" => "My pages",
456 "qbspecialpages" => "Special pages",
457 "moredotdotdot" => "More...",
458 "mypage" => "My page",
459 "mytalk" => "My talk",
460 "currentevents" => "Current events",
461 "disclaimers" => "Disclaimers",
462 "disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
463 "errorpagetitle" => "Error",
464 "returnto" => "Return to $1.",
465 "fromwikipedia" => "From $wgSitename, the free encyclopedia.",
466 "whatlinkshere" => "Pages that link here",
467 "help" => "Help",
468 "search" => "Search",
469 "go" => "Go",
470 "history" => "Page history",
471 "printableversion" => "Printable version",
472 "editthispage" => "Edit this page",
473 "deletethispage" => "Delete this page",
474 "protectthispage" => "Protect this page",
475 "unprotectthispage" => "Unprotect this page",
476 "newpage" => "New page",
477 "talkpage" => "Discuss this page",
478 "postcomment" => "Post a comment",
479 "articlepage" => "View article",
480 "subjectpage" => "View subject", # For compatibility
481 "userpage" => "View user page",
482 "wikipediapage" => "View meta page",
483 "imagepage" => "View image page",
484 "viewtalkpage" => "View discussion",
485 "otherlanguages" => "Other languages",
486 "redirectedfrom" => "(Redirected from $1)",
487 "lastmodified" => "This page was last modified $1.",
488 "viewcount" => "This page has been accessed $1 times.",
489 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
490 "printsubtitle" => "(From $wgServer)",
491 "protectedpage" => "Protected page",
492 "administrators" => "$wgMetaNamespace:Administrators",
493 "sysoptitle" => "Sysop access required",
494 "sysoptext" => "The action you have requested can only be
495 performed by users with \"sysop\" status.
496 See $1.",
497 "developertitle" => "Developer access required",
498 "developertext" => "The action you have requested can only be
499 performed by users with \"developer\" status.
500 See $1.",
501 "bureaucrattitle" => "Bureaucrat access required",
502 "bureaucrattext" => "The action you have requested can only be
503 performed by sysops with \"bureaucrat\" status.",
504 "nbytes" => "$1 bytes",
505 "go" => "Go",
506 "ok" => "OK",
507 "sitetitle" => "$wgSitename",
508 "sitesubtitle" => "The Free Encyclopedia",
509 "retrievedfrom" => "Retrieved from \"$1\"",
510 "newmessages" => "You have $1.",
511 "newmessageslink" => "new messages",
512 "editsection"=>"edit",
513 "toc" => "Table of contents",
514 "showtoc" => "show",
515 "hidetoc" => "hide",
516 "thisisdeleted" => "View or restore $1?",
517 "restorelink" => "$1 deleted edits",
519 # Main script and global functions
521 "nosuchaction" => "No such action",
522 "nosuchactiontext" => "The action specified by the URL is not
523 recognized by the wiki",
524 "nosuchspecialpage" => "No such special page",
525 "nospecialpagetext" => "You have requested a special page that is not
526 recognized by the wiki.",
528 # General errors
530 "error" => "Error",
531 "databaseerror" => "Database error",
532 "dberrortext" => "A database query syntax error has occurred.
533 This could be because of an illegal search query (see $5),
534 or it may indicate a bug in the software.
535 The last attempted database query was:
536 <blockquote><tt>$1</tt></blockquote>
537 from within function \"<tt>$2</tt>\".
538 MySQL returned error \"<tt>$3: $4</tt>\".",
539 "dberrortextcl" => "A database query syntax error has occurred.
540 The last attempted database query was:
541 \"$1\"
542 from within function \"$2\".
543 MySQL returned error \"$3: $4\".\n",
544 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
545 "nodb" => "Could not select database $1",
546 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
547 "readonly" => "Database locked",
548 "enterlockreason" => "Enter a reason for the lock, including an estimate
549 of when the lock will be released",
550 "readonlytext" => "The database is currently locked to new
551 entries and other modifications, probably for routine database maintenance,
552 after which it will be back to normal.
553 The administrator who locked it offered this explanation:
554 <p>$1",
555 "missingarticle" => "The database did not find the text of a page
556 that it should have found, named \"$1\".
558 <p>This is usually caused by following an outdated diff or history link to a
559 page that has been deleted.
561 <p>If this is not the case, you may have found a bug in the software.
562 Please report this to an administrator, making note of the URL.",
563 "internalerror" => "Internal error",
564 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
565 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
566 "filedeleteerror" => "Could not delete file \"$1\".",
567 "filenotfound" => "Could not find file \"$1\".",
568 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
569 "formerror" => "Error: could not submit form",
570 "badarticleerror" => "This action cannot be performed on this page.",
571 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
572 "badtitle" => "Bad title",
573 "badtitletext" => "The requested page title was invalid, empty, or
574 an incorrectly linked inter-language or inter-wiki title.",
575 "perfdisabled" => "Sorry! This feature has been temporarily disabled
576 because it slows the database down to the point that no one can use
577 the wiki.",
578 "perfdisabledsub" => "Here's a saved copy from $1:",
579 "wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
580 Function: $1<br>
581 Query: $2
583 "viewsource" => "View source",
584 "protectedtext" => "This page has been locked to prevent editing; there are
585 a number of reasons why this may be so, please see
586 [[$wgMetaNamespace:Protected page]].
588 You can view and copy the source of this page:",
590 # Login and logout pages
592 "logouttitle" => "User logout",
593 "logouttext" => "You are now logged out.
594 You can continue to use $wgSitename anonymously, or you can log in
595 again as the same or as a different user. Note that some pages may
596 continue to be displayed as if you were still logged in, until you clear
597 your browser cache\n",
599 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
600 Don't forget to change your $wgSitename preferences.",
602 "loginpagetitle" => "User login",
603 "yourname" => "Your user name",
604 "yourpassword" => "Your password",
605 "yourpasswordagain" => "Retype password",
606 "newusersonly" => " (new users only)",
607 "remembermypassword" => "Remember my password across sessions.",
608 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
609 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
611 "login" => "Log in",
612 "loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
613 "userlogin" => "Log in",
614 "logout" => "Log out",
615 "userlogout" => "Log out",
616 "notloggedin" => "Not logged in",
617 "createaccount" => "Create new account",
618 "createaccountmail" => "by eMail",
619 "badretype" => "The passwords you entered do not match.",
620 "userexists" => "The user name you entered is already in use. Please choose a different name.",
621 "youremail" => "Your e-mail*",
622 "yournick" => "Your nickname (for signatures)",
623 "emailforlost" => "* Entering an email address is optional. But it enables people to
624 contact you through the website without you having to reveal your
625 email address to them, and it also helps you if you forget your
626 password.",
627 "loginerror" => "Login error",
628 "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.",
629 "nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
630 "noname" => "You have not specified a valid user name.",
631 "loginsuccesstitle" => "Login successful",
632 "loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
633 "nosuchuser" => "There is no user by the name \"$1\".
634 Check your spelling, or use the form below to create a new user account.",
635 "wrongpassword" => "The password you entered is incorrect. Please try again.",
636 "mailmypassword" => "Mail me a new password",
637 "passwordremindertitle" => "Password reminder from $wgSitename",
638 "passwordremindertext" => "Someone (probably you, from IP address $1)
639 requested that we send you a new $wgSitename login password.
640 The password for user \"$2\" is now \"$3\".
641 You should log in and change your password now.",
642 "noemail" => "There is no e-mail address recorded for user \"$1\".",
643 "passwordsent" => "A new password has been sent to the e-mail address
644 registered for \"$1\".
645 Please log in again after you receive it.",
646 "loginend" => "",
648 # Edit page toolbar
649 "bold_sample"=>"Bold text",
650 "bold_tip"=>"Bold text",
651 "italic_sample"=>"Italic text",
652 "italic_tip"=>"Italic text",
653 "link_sample"=>"Link title",
654 "link_tip"=>"Internal link",
655 "extlink_sample"=>"http://www.example.com link title",
656 "extlink_tip"=>"External link (remember http:// prefix)",
657 "headline_sample"=>"Headline text",
658 "headline_tip"=>"Level 2 headline",
659 "math_sample"=>"Insert formula here",
660 "math_tip"=>"Mathematical formula (LaTeX)",
661 "nowiki_sample"=>"Insert non-formatted text here",
662 "nowiki_tip"=>"Ignore wiki formatting",
663 "image_sample"=>"Example.jpg",
664 "image_tip"=>"Embedded image",
665 "media_sample"=>"Example.mp3",
666 "media_tip"=>"Media file link",
667 "sig_tip"=>"Your signature with timestamp",
668 "hr_tip"=>"Horizontal line (use sparingly)",
669 "infobox"=>"Click a button to get an example text",
671 # Edit pages
673 "summary" => "Summary",
674 "subject" => "Subject/headline",
675 "minoredit" => "This is a minor edit",
676 "watchthis" => "Watch this article",
677 "savearticle" => "Save page",
678 "preview" => "Preview",
679 "showpreview" => "Show preview",
680 "blockedtitle" => "User is blocked",
681 "blockedtext" => "Your user name or IP address has been blocked by $1.
682 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
683 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
685 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]].
687 Your IP address is $3. Please include this address in any queries you make.
689 "whitelistedittitle" => "Login required to edit",
690 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
691 "whitelistreadtitle" => "Login required to read",
692 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
693 "whitelistacctitle" => "You are not allowed to create an account",
694 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
695 "loginreqtitle" => "Login Required",
696 "loginreqtext" => "You must [[special:Userlogin|login]] to view other pages.",
697 "accmailtitle" => "Password sent.",
698 "accmailtext" => "The Password for '$1' has been sent to $2.",
699 "newarticle" => "(New)",
700 "newarticletext" =>
701 "You've followed a link to a page that doesn't exist yet.
702 To create the page, start typing in the box below
703 (see the [[$wgMetaNamespace:Help|help page]] for more info).
704 If you are here by mistake, just click your browser's '''back''' button.",
705 "talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
706 "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.'' ",
707 "noarticletext" => "(There is currently no text in this page)",
708 "updated" => "(Updated)",
709 "note" => "<strong>Note:</strong> ",
710 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
711 "previewconflict" => "This preview reflects the text in the upper
712 text editing area as it will appear if you choose to save.",
713 "editing" => "Editing $1",
714 "sectionedit" => " (section)",
715 "commentedit" => " (comment)",
716 "editconflict" => "Edit conflict: $1",
717 "explainconflict" => "Someone else has changed this page since you
718 started editing it.
719 The upper text area contains the page text as it currently exists.
720 Your changes are shown in the lower text area.
721 You will have to merge your changes into the existing text.
722 <b>Only</b> the text in the upper text area will be saved when you
723 press \"Save page\".\n<p>",
724 "yourtext" => "Your text",
725 "storedversion" => "Stored version",
726 "editingold" => "<strong>WARNING: You are editing an out-of-date
727 revision of this page.
728 If you save it, any changes made since this revision will be lost.</strong>\n",
729 "yourdiff" => "Differences",
730 # FIXME: This is inappropriate for third-party use!
731 "copyrightwarning" => "Please note that all contributions to $wgSitename are
732 considered to be released under the GNU Free Documentation License
733 (see $1 for details).
734 If you don't want your writing to be edited mercilessly and redistributed
735 at will, then don't submit it here.<br>
736 You are also promising us that you wrote this yourself, or copied it from a
737 public domain or similar free resource.
738 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
739 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
740 browsers may have problems editing pages approaching or longer than 32kb.
741 Please consider breaking the page into smaller sections.",
742 "readonlywarning" => "WARNING: The database has been locked for maintenance,
743 so you will not be able to save your edits right now. You may wish to cut-n-paste
744 the text into a text file and save it for later.",
745 "protectedpagewarning" => "WARNING: This page has been locked so that only
746 users with sysop privileges can edit it. Be sure you are following the
747 <a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
748 guidelines</a>.",
750 # History pages
752 "revhistory" => "Revision history",
753 "nohistory" => "There is no edit history for this page.",
754 "revnotfound" => "Revision not found",
755 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
756 Please check the URL you used to access this page.\n",
757 "loadhist" => "Loading page history",
758 "currentrev" => "Current revision",
759 "revisionasof" => "Revision as of $1",
760 "cur" => "cur",
761 "next" => "next",
762 "last" => "last",
763 "orig" => "orig",
764 "histlegend" => "Legend: (cur) = difference with current version,
765 (last) = difference with preceding version, M = minor edit",
767 # Diffs
769 "difference" => "(Difference between revisions)",
770 "loadingrev" => "loading revision for diff",
771 "lineno" => "Line $1:",
772 "editcurrent" => "Edit the current version of this page",
774 # Search results
776 "searchresults" => "Search results",
777 "searchhelppage" => "$wgMetaNamespace:Searching",
778 "searchingwikipedia" => "Searching $wgSitename",
779 "searchresulttext" => "For more information about searching $wgSitename, see $1.",
780 "searchquery" => "For query \"$1\"",
781 "badquery" => "Badly formed search query",
782 "badquerytext" => "We could not process your query.
783 This is probably because you have attempted to search for a
784 word fewer than three letters long, which is not yet supported.
785 It could also be that you have mistyped the expression, for
786 example \"fish and and scales\".
787 Please try another query.",
788 "matchtotals" => "The query \"$1\" matched $2 article titles
789 and the text of $3 articles.",
790 "nogomatch" => "No page with this exact title exists, trying full text search.",
791 "titlematches" => "Article title matches",
792 "notitlematches" => "No article title matches",
793 "textmatches" => "Article text matches",
794 "notextmatches" => "No article text matches",
795 "prevn" => "previous $1",
796 "nextn" => "next $1",
797 "viewprevnext" => "View ($1) ($2) ($3).",
798 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
799 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
800 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
801 often caused by searching for common words like \"have\" and \"from\",
802 which are not indexed, or by specifying more than one search term (only pages
803 containing all of the search terms will appear in the result).",
804 "powersearch" => "Search",
805 "powersearchtext" => "
806 Search in namespaces :<br>
807 $1<br>
808 $2 List redirects &nbsp; Search for $3 $9",
809 "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>",
810 "googlesearch" => "
811 <!-- SiteSearch Google -->
812 <FORM method=GET action=\"http://www.google.com/search\">
813 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
814 <A HREF=\"http://www.google.com/\">
815 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
816 border=\"0\" ALT=\"Google\"></A>
817 </td>
818 <td>
819 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
820 <INPUT type=submit name=btnG VALUE=\"Google Search\">
821 <font size=-1>
822 <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>
823 <input type='hidden' name='ie' value='$2'>
824 <input type='hidden' name='oe' value='$2'>
825 </font>
826 </td></tr></TABLE>
827 </FORM>
828 <!-- SiteSearch Google -->",
829 "blanknamespace" => "(Main)",
831 # Preferences page
833 "preferences" => "Preferences",
834 "prefsnologin" => "Not logged in",
835 "prefsnologintext" => "You must be <a href=\"" .
836 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
837 to set user preferences.",
838 "prefslogintext" => "You are logged in as \"$1\".
839 Your internal ID number is $2.
841 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
842 "prefsreset" => "Preferences have been reset from storage.",
843 "qbsettings" => "Quickbar settings",
844 "changepassword" => "Change password",
845 "skin" => "Skin",
846 "math" => "Rendering math",
847 "dateformat" => "Date format",
848 "math_failure" => "Failed to parse",
849 "math_unknown_error" => "unknown error",
850 "math_unknown_function" => "unknown function ",
851 "math_lexing_error" => "lexing error",
852 "math_syntax_error" => "syntax error",
853 "math_image_error" => "PNG conversion failed",
854 "saveprefs" => "Save preferences",
855 "resetprefs" => "Reset preferences",
856 "oldpassword" => "Old password",
857 "newpassword" => "New password",
858 "retypenew" => "Retype new password",
859 "textboxsize" => "Textbox dimensions",
860 "rows" => "Rows",
861 "columns" => "Columns",
862 "searchresultshead" => "Search result settings",
863 "resultsperpage" => "Hits to show per page",
864 "contextlines" => "Lines to show per hit",
865 "contextchars" => "Characters of context per line",
866 "stubthreshold" => "Threshold for stub display",
867 "recentchangescount" => "Number of titles in recent changes",
868 "savedprefs" => "Your preferences have been saved.",
869 "timezonetext" => "Enter number of hours your local time differs
870 from server time (UTC).",
871 "localtime" => "Local time display",
872 "timezoneoffset" => "Offset",
873 "servertime" => "Server time is now",
874 "guesstimezone" => "Fill in from browser",
875 "emailflag" => "Disable e-mail from other users",
876 "defaultns" => "Search in these namespaces by default:",
878 # Recent changes
880 "changes" => "changes",
881 "recentchanges" => "Recent changes",
882 "recentchangestext" => "Track the most recent changes to the wiki on this page.",
883 "rcloaderr" => "Loading recent changes",
884 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
885 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
886 "rclistfrom" => "Show new changes starting from $1",
887 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
888 # "rclinks" => "Show last $1 changes in last $2 days.",
889 "showhideminor" => "$1 minor edits | $2 bots | $3 logged in users ",
890 "rclinks" => "Show last $1 changes in last $2 days<br>$3",
891 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
892 "rcliu" => "; $1 edits from logged in users",
893 "diff" => "diff",
894 "hist" => "hist",
895 "hide" => "hide",
896 "show" => "show",
897 "tableform" => "table",
898 "listform" => "list",
899 "nchanges" => "$1 changes",
900 "minoreditletter" => "M",
901 "newpageletter" => "N",
903 # Upload
905 "upload" => "Upload file",
906 "uploadbtn" => "Upload file",
907 "uploadlink" => "Upload images",
908 "reupload" => "Re-upload",
909 "reuploaddesc" => "Return to the upload form.",
910 "uploadnologin" => "Not logged in",
911 "uploadnologintext" => "You must be <a href=\"" .
912 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
913 to upload files.",
914 "uploadfile" => "Upload images, sounds, documents etc.",
915 "uploaderror" => "Upload error",
916 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
917 make sure to read and follow the <a href=\"" .
918 wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
919 <p>If a file with the name you are specifying already
920 exists on the wiki, it'll be replaced without warning.
921 So unless you mean to update a file, it's a good idea
922 to first check if such a file exists.
923 <p>To view or search previously uploaded images,
924 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
925 "\">list of uploaded images</a>.
926 Uploads and deletions are logged on the <a href=\"" .
927 wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
928 <p>Use the form below to upload new image files for use in
929 illustrating your articles.
930 On most browsers, you will see a \"Browse...\" button, which will
931 bring up your operating system's standard file open dialog.
932 Choosing a file will fill the name of that file into the text
933 field next to the button.
934 You must also check the box affirming that you are not
935 violating any copyrights by uploading the file.
936 Press the \"Upload\" button to finish the upload.
937 This may take some time if you have a slow internet connection.
938 <p>The preferred formats are JPEG for photographic images, PNG
939 for drawings and other iconic images, and OGG for sounds.
940 Please name your files descriptively to avoid confusion.
941 To include the image in an article, use a link in the form
942 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
943 or <b>[[media:file.ogg]]</b> for sounds.
944 <p>Please note that as with wiki pages, others may edit or
945 delete your uploads if they think it serves the encyclopedia, and
946 you may be blocked from uploading if you abuse the system.",
948 "uploadlog" => "upload log",
949 "uploadlogpage" => "Upload_log",
950 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
951 All times shown are server time (UTC).
952 <ul>
953 </ul>
955 "filename" => "Filename",
956 "filedesc" => "Summary",
957 "filestatus" => "Copyright status",
958 "filesource" => "Source",
959 "affirmation" => "I affirm that the copyright holder of this file
960 agrees to license it under the terms of the $1.",
961 "copyrightpage" => "$wgMetaNamespace:Copyrights",
962 "copyrightpagename" => "$wgSitename copyright",
963 "uploadedfiles" => "Uploaded files",
964 "noaffirmation" => "You must affirm that your upload does not violate
965 any copyrights.",
966 "ignorewarning" => "Ignore warning and save file anyway.",
967 "minlength" => "Image names must be at least three letters.",
968 "badfilename" => "Image name has been changed to \"$1\".",
969 "badfiletype" => "\".$1\" is not a recommended image file format.",
970 "largefile" => "It is recommended that images not exceed 100k in size.",
971 "successfulupload" => "Successful upload",
972 "fileuploaded" => "File \"$1\" uploaded successfully.
973 Please follow this link: ($2) to the description page and fill
974 in information about the file, such as where it came from, when it was
975 created and by whom, and anything else you may know about it.",
976 "uploadwarning" => "Upload warning",
977 "savefile" => "Save file",
978 "uploadedimage" => "uploaded \"$1\"",
979 "uploaddisabled" => "Sorry, uploading is disabled.",
981 # Image list
983 "imagelist" => "Image list",
984 "imagelisttext" => "Below is a list of $1 images sorted $2.",
985 "getimagelist" => "fetching image list",
986 "ilshowmatch" => "Show all images with names matching",
987 "ilsubmit" => "Search",
988 "showlast" => "Show last $1 images sorted $2.",
989 "all" => "all",
990 "byname" => "by name",
991 "bydate" => "by date",
992 "bysize" => "by size",
993 "imgdelete" => "del",
994 "imgdesc" => "desc",
995 "imglegend" => "Legend: (desc) = show/edit image description.",
996 "imghistory" => "Image history",
997 "revertimg" => "rev",
998 "deleteimg" => "del",
999 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
1000 this old version, (rev) = revert to this old version.
1001 <br><i>Click on date to see image uploaded on that date</i>.",
1002 "imagelinks" => "Image links",
1003 "linkstoimage" => "The following pages link to this image:",
1004 "nolinkstoimage" => "There are no pages that link to this image.",
1006 # Statistics
1008 "statistics" => "Statistics",
1009 "sitestats" => "Site statistics",
1010 "userstats" => "User statistics",
1011 "sitestatstext" => "There are <b>$1</b> total pages in the database.
1012 This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
1013 pages, redirects, and others that probably don't qualify as articles.
1014 Excluding those, there are <b>$2</b> pages that are probably legitimate
1015 articles.<p>
1016 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
1017 since the software was upgraded (July 20, 2002).
1018 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
1019 "userstatstext" => "There are <b>$1</b> registered users.
1020 <b>$2</b> of these are administrators (see $3).",
1022 # Maintenance Page
1024 "maintenance" => "Maintenance page",
1025 "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 ;-)",
1026 "maintenancebacklink" => "Back to Maintenance Page",
1027 "disambiguations" => "Disambiguation pages",
1028 "disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
1029 "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.",
1030 "doubleredirects" => "Double Redirects",
1031 "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.",
1032 "brokenredirects" => "Broken Redirects",
1033 "brokenredirectstext" => "The following redirects link to a non-existing article.",
1034 "selflinks" => "Pages with Self Links",
1035 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
1036 "mispeelings" => "Pages with misspellings",
1037 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1038 "mispeelingspage" => "List of common misspellings",
1039 "missinglanguagelinks" => "Missing Language Links",
1040 "missinglanguagelinksbutton" => "Find missing language links for",
1041 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1044 # Miscellaneous special pages
1046 "orphans" => "Orphaned pages",
1047 "lonelypages" => "Orphaned pages",
1048 "unusedimages" => "Unused images",
1049 "popularpages" => "Popular pages",
1050 "nviews" => "$1 views",
1051 "wantedpages" => "Wanted pages",
1052 "nlinks" => "$1 links",
1053 "allpages" => "All pages",
1054 "randompage" => "Random page",
1055 "shortpages" => "Short pages",
1056 "longpages" => "Long pages",
1057 "deadendpages" => "Dead-end pages",
1058 "listusers" => "User list",
1059 "specialpages" => "Special pages",
1060 "spheading" => "Special pages for all users",
1061 "sysopspheading" => "For sysop use only",
1062 "developerspheading" => "For developer use only",
1063 "protectpage" => "Protect page",
1064 "recentchangeslinked" => "Related changes",
1065 "rclsub" => "(to pages linked from \"$1\")",
1066 "debug" => "Debug",
1067 "newpages" => "New pages",
1068 "ancientpages" => "Oldest articles",
1069 "intl" => "Interlanguage links",
1070 "movethispage" => "Move this page",
1071 "unusedimagestext" => "<p>Please note that other web sites may link to an image with
1072 a direct URL, and so may still be listed here despite being
1073 in active use.",
1074 "booksources" => "Book sources",
1075 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1076 "booksourcetext" => "Below is a list of links to other sites that
1077 sell new and used books, and may also have further information
1078 about books you are looking for.
1079 $wgSitename is not affiliated with any of these businesses, and
1080 this list should not be construed as an endorsement.",
1081 "alphaindexline" => "$1 to $2",
1082 "version" => "Version",
1084 # Email this user
1086 "mailnologin" => "No send address",
1087 "mailnologintext" => "You must be <a href=\"" .
1088 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1089 and have a valid e-mail address in your <a href=\"" .
1090 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
1091 to send e-mail to other users.",
1092 "emailuser" => "E-mail this user",
1093 "emailpage" => "E-mail user",
1094 "emailpagetext" => "If this user has entered a valid e-mail address in
1095 his or her user preferences, the form below will send a single message.
1096 The e-mail address you entered in your user preferences will appear
1097 as the \"From\" address of the mail, so the recipient will be able
1098 to reply.",
1099 "usermailererror" => "Mail object returned error: ",
1100 "defemailsubject" => "$wgSitename e-mail",
1101 "noemailtitle" => "No e-mail address",
1102 "noemailtext" => "This user has not specified a valid e-mail address,
1103 or has chosen not to receive e-mail from other users.",
1104 "emailfrom" => "From",
1105 "emailto" => "To",
1106 "emailsubject" => "Subject",
1107 "emailmessage" => "Message",
1108 "emailsend" => "Send",
1109 "emailsent" => "E-mail sent",
1110 "emailsenttext" => "Your e-mail message has been sent.",
1112 # Watchlist
1114 "watchlist" => "My watchlist",
1115 "watchlistsub" => "(for user \"$1\")",
1116 "nowatchlist" => "You have no items on your watchlist.",
1117 "watchnologin" => "Not logged in",
1118 "watchnologintext" => "You must be <a href=\"" .
1119 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1120 to modify your watchlist.",
1121 "addedwatch" => "Added to watchlist",
1122 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
1123 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
1124 Future changes to this page and its associated Talk page will be listed there,
1125 and the page will appear <b>bolded</b> in the <a href=\"" .
1126 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
1127 make it easier to pick out.</p>
1129 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1130 "removedwatch" => "Removed from watchlist",
1131 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
1132 "watchthispage" => "Watch this page",
1133 "unwatchthispage" => "Stop watching",
1134 "notanarticle" => "Not an article",
1135 "watchnochange" => "None of your watched items were edited in the time period displayed.",
1136 "watchdetails" => "($1 pages watched not counting talk pages;
1137 $2 total pages edited since cutoff;
1138 $3...
1139 <a href='$4'>show and edit complete list</a>.)",
1140 "watchmethod-recent"=> "checking recent edits for watched pages",
1141 "watchmethod-list" => "checking watched pages for recent edits",
1142 "removechecked" => "Remove checked items from watchlist",
1143 "watchlistcontains" => "Your watchlist contains $1 pages.",
1144 "watcheditlist" => "Here's an alphabetical list of your
1145 watched pages. Check the boxes of pages you want to remove
1146 from your watchlist and click the 'remove checked' button
1147 at the bottom of the screen.",
1148 "removingchecked" => "Removing requested items from watchlist...",
1149 "couldntremove" => "Couldn't remove item '$1'...",
1150 "iteminvalidname" => "Problem with item '$1', invalid name...",
1151 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
1152 "wlshowlast" => "Show last $1 hours $2 days $3",
1153 "wlsaved" => "This is a saved version of your watchlist.",
1156 # Delete/protect/revert
1158 "deletepage" => "Delete page",
1159 "confirm" => "Confirm",
1160 "excontent" => "content was:",
1161 "exbeforeblank" => "content before blanking was:",
1162 "exblank" => "page was empty",
1163 "confirmdelete" => "Confirm delete",
1164 "deletesub" => "(Deleting \"$1\")",
1165 "historywarning" => "Warning: The page you are about to delete has a history: ",
1166 "confirmdeletetext" => "You are about to permanently delete a page
1167 or image along with all of its history from the database.
1168 Please confirm that you intend to do this, that you understand the
1169 consequences, and that you are doing this in accordance with
1170 [[$wgMetaNamespace:Policy]].",
1171 "confirmcheck" => "Yes, I really want to delete this.",
1172 "actioncomplete" => "Action complete",
1173 "deletedtext" => "\"$1\" has been deleted.
1174 See $2 for a record of recent deletions.",
1175 "deletedarticle" => "deleted \"$1\"",
1176 "dellogpage" => "Deletion_log",
1177 "dellogpagetext" => "Below is a list of the most recent deletions.
1178 All times shown are server time (UTC).
1179 <ul>
1180 </ul>
1182 "deletionlog" => "deletion log",
1183 "reverted" => "Reverted to earlier revision",
1184 "deletecomment" => "Reason for deletion",
1185 "imagereverted" => "Revert to earlier version was successful.",
1186 "rollback" => "Roll back edits",
1187 "rollbacklink" => "rollback",
1188 "rollbackfailed" => "Rollback failed",
1189 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1190 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1191 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1193 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1194 # only shown if there is an edit comment
1195 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1196 "revertpage" => "Reverted edit of $2, changed back to last version by $1",
1197 "protectlogpage" => "Protection_log",
1198 "protectlogtext" => "Below is a list of page locks/unlocks.
1199 See [[$wgMetaNamespace:Protected page]] for more information.",
1200 "protectedarticle" => "protected [[$1]]",
1201 "unprotectedarticle" => "unprotected [[$1]]",
1203 # Undelete
1204 "undelete" => "Restore deleted page",
1205 "undeletepage" => "View and restore deleted pages",
1206 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1207 can be restored. The archive may be periodically cleaned out.",
1208 "undeletearticle" => "Restore deleted article",
1209 "undeleterevisions" => "$1 revisions archived",
1210 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1211 If a new page with the same name has been created since the deletion, the restored
1212 revisions will appear in the prior history, and the current revision of the live page
1213 will not be automatically replaced.",
1214 "undeleterevision" => "Deleted revision as of $1",
1215 "undeletebtn" => "Restore!",
1216 "undeletedarticle" => "restored \"$1\"",
1217 "undeletedtext" => "The article [[$1]] has been successfully restored.
1218 See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
1220 # Contributions
1222 "contributions" => "User contributions",
1223 "mycontris" => "My contributions",
1224 "contribsub" => "For $1",
1225 "nocontribs" => "No changes were found matching these criteria.",
1226 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1227 "uclinks" => "View the last $1 changes; view the last $2 days.",
1228 "uctop" => " (top)" ,
1230 # What links here
1232 "whatlinkshere" => "What links here",
1233 "notargettitle" => "No target",
1234 "notargettext" => "You have not specified a target page or user
1235 to perform this function on.",
1236 "linklistsub" => "(List of links)",
1237 "linkshere" => "The following pages link to here:",
1238 "nolinkshere" => "No pages link to here.",
1239 "isredirect" => "redirect page",
1241 # Block/unblock IP
1243 "blockip" => "Block user",
1244 "blockiptext" => "Use the form below to block write access
1245 from a specific IP address or username.
1246 This should be done only only to prevent vandalism, and in
1247 accordance with [[$wgMetaNamespace:Policy|policy]].
1248 Fill in a specific reason below (for example, citing particular
1249 pages that were vandalized).",
1250 "ipaddress" => "IP Address/username",
1251 "ipbexpiry" => "Expiry",
1252 "ipbreason" => "Reason",
1253 "ipbsubmit" => "Block this user",
1254 "badipaddress" => "Invalid IP address",
1255 "noblockreason" => "You must supply a reason for the block.",
1256 "blockipsuccesssub" => "Block succeeded",
1257 "blockipsuccesstext" => "\"$1\" has been blocked.
1258 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1259 "unblockip" => "Unblock user",
1260 "unblockiptext" => "Use the form below to restore write access
1261 to a previously blocked IP address or username.",
1262 "ipusubmit" => "Unblock this address",
1263 "ipusuccess" => "\"$1\" unblocked",
1264 "ipblocklist" => "List of blocked IP addresses and usernames",
1265 "blocklistline" => "$1, $2 blocked $3 (expires $4)",
1266 "blocklink" => "block",
1267 "unblocklink" => "unblock",
1268 "contribslink" => "contribs",
1269 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1270 "blocklogpage" => "Block_log",
1271 "blocklogentry" => 'blocked "$1" with an expiry time of $2',
1272 "blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
1273 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1274 the list of currently operational bans and blocks.",
1275 "unblocklogentry" => 'unblocked "$1"',
1276 "range_block_disabled" => "The sysop ability to create range blocks is disabled.",
1277 "ipb_expiry_invalid" => "Expiry time invalid.",
1278 "ip_range_invalid" => "Invalid IP range.\n",
1280 # Developer tools
1282 "lockdb" => "Lock database",
1283 "unlockdb" => "Unlock database",
1284 "lockdbtext" => "Locking the database will suspend the ability of all
1285 users to edit pages, change their preferences, edit their watchlists, and
1286 other things requiring changes in the database.
1287 Please confirm that this is what you intend to do, and that you will
1288 unlock the database when your maintenance is done.",
1289 "unlockdbtext" => "Unlocking the database will restore 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.",
1293 "lockconfirm" => "Yes, I really want to lock the database.",
1294 "unlockconfirm" => "Yes, I really want to unlock the database.",
1295 "lockbtn" => "Lock database",
1296 "unlockbtn" => "Unlock database",
1297 "locknoconfirm" => "You did not check the confirmation box.",
1298 "lockdbsuccesssub" => "Database lock succeeded",
1299 "unlockdbsuccesssub" => "Database lock removed",
1300 "lockdbsuccesstext" => "The database has been locked.
1301 <br>Remember to remove the lock after your maintenance is complete.",
1302 "unlockdbsuccesstext" => "The database has been unlocked.",
1304 # SQL query
1306 "asksql" => "SQL query",
1307 "asksqltext" => "Use the form below to make a direct query of the
1308 database.
1309 Use single quotes ('like this') to delimit string literals.
1310 This can often add considerable load to the server, so please use
1311 this function sparingly.",
1312 "sqlislogged" => "Please note that all queries are logged.",
1313 "sqlquery" => "Enter query",
1314 "querybtn" => "Submit query",
1315 "selectonly" => "Only read-only queries are allowed.",
1316 "querysuccessful" => "Query successful",
1318 # Make sysop
1319 "makesysoptitle" => "Make a user into a sysop",
1320 "makesysoptext" => "This form is used by bureaucrats to turn ordinary users into administrators.
1321 Type the name of the user in the box and press the button to make the user an administrator",
1322 "makesysopname" => "Name of the user:",
1323 "makesysopsubmit" => "Make this user into a sysop",
1324 "makesysopok" => "<b>User \"$1\" is now a sysop</b>",
1325 "makesysopfail" => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1326 "setbureaucratflag" => "Set bureaucrat flag",
1327 "bureaucratlog" => "Bureaucrat_log",
1328 "bureaucratlogentry" => "Rights for user \"$1\" set \"$2\"",
1329 "rights" => "Rights:",
1330 "set_user_rights" => "Set user rights",
1331 "user_rights_set" => "<b>User rights for \"$1\" updated</b>",
1332 "set_rights_fail" => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1334 # Move page
1336 "movepage" => "Move page",
1337 "movepagetext" => "Using the form below will rename a page, moving all
1338 of its history to the new name.
1339 The old title will become a redirect page to the new title.
1340 Links to the old page title will not be changed; be sure to
1341 [[Special:Maintenance|check]] for double or broken redirects.
1342 You are responsible for making sure that links continue to
1343 point where they are supposed to go.
1345 Note that the page will '''not''' be moved if there is already
1346 a page at the new title, unless it is empty or a redirect and has no
1347 past edit history. This means that you can rename a page back to where
1348 it was just renamed from if you make a mistake, and you cannot overwrite
1349 an existing page.
1351 <b>WARNING!</b>
1352 This can be a drastic and unexpected change for a popular page;
1353 please be sure you understand the consequences of this before
1354 proceeding.",
1355 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1356 *You are moving the page across namespaces,
1357 *A non-empty talk page already exists under the new name, or
1358 *You uncheck the box below.
1360 In those cases, you will have to move or merge the page manually if desired.",
1361 "movearticle" => "Move page",
1362 "movenologin" => "Not logged in",
1363 "movenologintext" => "You must be a registered user and <a href=\"" .
1364 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1365 to move a page.",
1366 "newtitle" => "To new title",
1367 "movepagebtn" => "Move page",
1368 "pagemovedsub" => "Move succeeded",
1369 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1370 "articleexists" => "A page of that name already exists, or the
1371 name you have chosen is not valid.
1372 Please choose another name.",
1373 "talkexists" => "The page itself was moved successfully, but the
1374 talk page could not be moved because one already exists at the new
1375 title. Please merge them manually.",
1376 "movedto" => "moved to",
1377 "movetalk" => "Move \"talk\" page as well, if applicable.",
1378 "talkpagemoved" => "The corresponding talk page was also moved.",
1379 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1380 "1movedto2" => "$1 moved to $2",
1382 # Export
1384 "export" => "Export pages",
1385 "exporttext" => "You can export the text and editing history of a particular
1386 page or set of pages wrapped in some XML; this can then be imported into another
1387 wiki running MediaWiki software, transformed, or just kept for your private
1388 amusement.",
1389 "exportcuronly" => "Include only the current revision, not the full history",
1391 # Namespace 8 related
1393 "allmessages" => "All system messages",
1394 "allmessagestext" => "This is a list of all system messages available in the MediaWiki: namespace.",
1396 # Thumbnails
1398 "thumbnail-more" => "Enlarge"
1402 #--------------------------------------------------------------------------
1403 # Internationalisation code
1404 #--------------------------------------------------------------------------
1406 class Language {
1407 function Language(){
1408 # Copies any missing values in the specified arrays from En to the current language
1409 $fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
1410 $name = get_class( $this );
1411 if( strpos( $name, "language" ) == 0){
1412 $lang = ucfirst( substr( $name, 8 ) );
1413 foreach( $fillin as $arrname ){
1414 $langver = "{$arrname}{$lang}";
1415 $enver = "{$arrname}En";
1416 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1417 continue;
1418 foreach($GLOBALS[$enver] as $spage => $text){
1419 if( ! isset( $GLOBALS[$langver][$spage] ) )
1420 $GLOBALS[$langver][$spage] = $text;
1426 function getDefaultUserOptions () {
1427 global $wgDefaultUserOptionsEn ;
1428 return $wgDefaultUserOptionsEn ;
1431 function getBookstoreList () {
1432 global $wgBookstoreListEn ;
1433 return $wgBookstoreListEn ;
1436 function getNamespaces() {
1437 global $wgNamespaceNamesEn;
1438 return $wgNamespaceNamesEn;
1441 function getNsText( $index ) {
1442 global $wgNamespaceNamesEn;
1443 return $wgNamespaceNamesEn[$index];
1446 function getNsIndex( $text ) {
1447 global $wgNamespaceNamesEn;
1449 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1450 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1452 return false;
1455 function specialPage( $name ) {
1456 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1459 function getQuickbarSettings() {
1460 global $wgQuickbarSettingsEn;
1461 return $wgQuickbarSettingsEn;
1464 function getSkinNames() {
1465 global $wgSkinNamesEn;
1466 return $wgSkinNamesEn;
1469 function getMathNames() {
1470 global $wgMathNamesEn;
1471 return $wgMathNamesEn;
1474 function getDateFormats() {
1475 global $wgDateFormatsEn;
1476 return $wgDateFormatsEn;
1479 function getUserToggles() {
1480 global $wgUserTogglesEn;
1481 return $wgUserTogglesEn;
1484 function getLanguageNames() {
1485 global $wgLanguageNamesEn;
1486 return $wgLanguageNamesEn;
1489 function getLanguageName( $code ) {
1490 global $wgLanguageNamesEn;
1491 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1492 return "";
1494 return $wgLanguageNamesEn[$code];
1497 function getMonthName( $key )
1499 global $wgMonthNamesEn;
1500 return $wgMonthNamesEn[$key-1];
1503 /* by default we just return base form */
1504 function getMonthNameGen( $key )
1506 return $this->getMonthName( $key );
1509 function getMonthAbbreviation( $key )
1511 global $wgMonthAbbreviationsEn;
1512 return $wgMonthAbbreviationsEn[$key-1];
1515 function getWeekdayName( $key )
1517 global $wgWeekdayNamesEn;
1518 return $wgWeekdayNamesEn[$key-1];
1521 function userAdjust( $ts )
1523 global $wgUser, $wgLocalTZoffset;
1525 $tz = $wgUser->getOption( "timecorrection" );
1526 if ( $tz === "" ) {
1527 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1528 $minDiff = 0;
1529 } elseif ( strpos( $tz, ":" ) !== false ) {
1530 $tzArray = explode( ":", $tz );
1531 $hrDiff = intval($tzArray[0]);
1532 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1533 } else {
1534 $hrDiff = intval( $tz );
1536 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1538 $t = mktime( (
1539 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1540 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1541 (int)substr( $ts, 12, 2 ), # Seconds
1542 (int)substr( $ts, 4, 2 ), # Month
1543 (int)substr( $ts, 6, 2 ), # Day
1544 (int)substr( $ts, 0, 4 ) ); #Year
1545 return date( "YmdHis", $t );
1548 function date( $ts, $adj = false )
1550 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1552 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1554 if ( $wgUseDynamicDates ) {
1555 $datePreference = $wgUser->getOption( 'date' );
1556 if ( $datePreference == 0 ) {
1557 $datePreference = $wgAmericanDates ? 1 : 2;
1559 } else {
1560 $datePreference = $wgAmericanDates ? 1 : 2;
1563 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
1564 $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
1565 $year = $this->formatNum( substr( $ts, 0, 4 ) );
1567 switch( $datePreference ) {
1568 case 1: return "$month $day, $year";
1569 case 2: return "$day $month $year";
1570 default: return "$year $month $day";
1574 function time( $ts, $adj = false )
1576 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1578 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1579 return $this->formatNum( $t );
1582 function timeanddate( $ts, $adj = false )
1584 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1587 function rfc1123( $ts )
1589 return date( "D, d M Y H:i:s T", $ts );
1592 function getValidSpecialPages()
1594 global $wgValidSpecialPagesEn;
1595 return $wgValidSpecialPagesEn;
1598 function getSysopSpecialPages()
1600 global $wgSysopSpecialPagesEn;
1601 return $wgSysopSpecialPagesEn;
1604 function getDeveloperSpecialPages()
1606 global $wgDeveloperSpecialPagesEn;
1607 return $wgDeveloperSpecialPagesEn;
1610 function getMessage( $key )
1612 global $wgAllMessagesEn;
1613 return $wgAllMessagesEn[$key];
1616 function getAllMessages()
1618 global $wgAllMessagesEn;
1619 return $wgAllMessagesEn;
1622 function iconv( $in, $out, $string ) {
1623 # For most languages, this is a wrapper for iconv
1624 return iconv( $in, $out, $string );
1627 function ucfirst( $string ) {
1628 # For most languages, this is a wrapper for ucfirst()
1629 return ucfirst( $string );
1632 function lcfirst( $s ) {
1633 return strtolower( $s{0} ). substr( $s, 1 );
1636 function checkTitleEncoding( $s ) {
1637 global $wgInputEncoding;
1639 # Check for UTF-8 URLs; Internet Explorer produces these if you
1640 # type non-ASCII chars in the URL bar or follow unescaped links.
1641 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1642 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1643 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1645 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1646 return iconv( "UTF-8", $wgInputEncoding, $s );
1648 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1649 return utf8_encode( $s );
1651 # Other languages can safely leave this function, or replace
1652 # it with one to detect and convert another legacy encoding.
1653 return $s;
1656 function stripForSearch( $in ) {
1657 # Some languages have special punctuation to strip out
1658 # or characters which need to be converted for MySQL's
1659 # indexing to grok it correctly. Make such changes here.
1660 return $in;
1664 function setAltEncoding() {
1665 # Some languages may have an alternate char encoding option
1666 # (Esperanto X-coding, Japanese furigana conversion, etc)
1667 # If 'altencoding' is checked in user prefs, this gives a
1668 # chance to swap out the default encoding settings.
1669 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1672 function recodeForEdit( $s ) {
1673 # For some languages we'll want to explicitly specify
1674 # which characters make it into the edit box raw
1675 # or are converted in some way or another.
1676 # Note that if wgOutputEncoding is different from
1677 # wgInputEncoding, this text will be further converted
1678 # to wgOutputEncoding.
1679 global $wgInputEncoding, $wgEditEncoding;
1680 if( $wgEditEncoding == "" or
1681 $wgEditEncoding == $wgInputEncoding ) {
1682 return $s;
1683 } else {
1684 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1688 function recodeInput( $s ) {
1689 # Take the previous into account.
1690 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1691 if($wgEditEncoding != "") {
1692 $enc = $wgEditEncoding;
1693 } else {
1694 $enc = $wgOutputEncoding;
1696 if( $enc == $wgInputEncoding ) {
1697 return $s;
1698 } else {
1699 return $this->iconv( $enc, $wgInputEncoding, $s );
1703 # For right-to-left language support
1704 function isRTL() { return false; }
1706 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1707 function linkPrefixExtension() { return false; }
1710 function getMagicWords()
1712 global $wgMagicWordsEn;
1713 return $wgMagicWordsEn;
1716 # Fill a MagicWord object with data from here
1717 function getMagic( &$mw )
1719 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1720 $rawEntry = $raw[$mw->mId];
1721 $mw->mCaseSensitive = $rawEntry[0];
1722 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1725 # Italic is unsuitable for some languages
1726 function emphasize( $text )
1728 return "<em>$text</em>";
1731 # returns additional Regex for the tokenizer. See LanguageFr.php for an example
1732 function tokenizerRegex()
1734 return "";
1737 # Process the token generated from the tokenizer by the above regex. Return
1738 # NULL if the token is unknown, and the text to be added to the output otherwise
1739 function processToken( &$token , &$tokenStack)
1741 return NULL;
1744 # Normally we use the plain ASCII digits. Some languages such as Arabic will
1745 # want to output numbers using script-appropriate characters: override this
1746 # function with a translator. See LanguageAr.php for an example.
1747 function formatNum( $number ) {
1748 return $number;
1753 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );