3 # NOTE: To turn off "Current Events" in the sidebar,
4 # set "currentevents" => "-"
6 # The names of the namespaces can be set here, but the numbers
7 # are magical, so don't change or move them! The Namespace class
8 # encapsulates some of the magic-ness.
10 /* private */ $wgNamespaceNamesEn = array(
17 5 => "Wikipedia_talk",
22 /* private */ $wgDefaultUserOptionsEn = array(
23 "quickbar" => 1, "underline" => 1, "hover" => 1,
24 "cols" => 80, "rows" => 25, "searchlimit" => 20,
25 "contextlines" => 5, "contextchars" => 50,
26 "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
27 "highlightbroken" => 1, "stubthreshold" => 0,
28 "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
32 /* private */ $wgQuickbarSettingsEn = array(
33 "None", "Fixed left", "Fixed right", "Floating left"
36 /* private */ $wgSkinNamesEn = array(
37 "Standard", "Nostalgia", "Cologne Blue"
40 /* private */ $wgMathNamesEn = array(
42 "HTML if very simple or else PNG",
43 "HTML if possible or else PNG",
44 "Leave it as TeX (for text browsers)",
45 "Recommended for modern browsers"
48 /* private */ $wgDateFormatsEn = array(
55 /* private */ $wgUserTogglesEn = array(
56 "hover" => "Show hoverbox over wiki links",
57 "underline" => "Underline links",
58 "highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like
59 this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
60 "justify" => "Justify paragraphs",
61 "hideminor" => "Hide minor edits in recent changes",
62 "usenewrc" => "Enhanced recent changes (not for all browsers)",
63 "numberheadings" => "Auto-number headings",
64 "editondblclick" => "Edit pages on double click (JavaScript)",
65 "editsection"=>"Enable section editing via [edit] links",
66 "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
67 "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
68 "rememberpassword" => "Remember password across sessions",
69 "editwidth" => "Edit box has full width",
70 "watchdefault" => "Add pages you edit to your watchlist",
71 "minordefault" => "Mark all edits minor by default",
72 "previewontop" => "Show preview before edit box and not after it",
73 "nocache" => "Disable page caching"
76 /* private */ $wgBookstoreListEn = array(
77 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
78 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
79 "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
80 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
83 /* private */ $wgLanguageNamesEn = array(
88 "ar" => "‮العربية‬ (Araby)",
91 "az" => "Azerbaijani",
93 "be" => "Беларуски",
100 "ca" => "Català",
103 "cs" => "Česká",
105 "da" => "Dansk", # Note two different subdomains.
106 "dk" => "Dansk", # 'da' is correct for the language.
109 "el" => "Ελληνικά (Ellenika)",
112 "es" => "Español",
115 "fa" => "‮فرسى‬ (Farsi)",
119 "fr" => "Français",
124 "gu" => "ગુજરાતી (Gujarati)",
126 "he" => "עברית (Ivrit)",
127 "hi" => "हिन्दी (Hindi)",
131 "ia" => "Interlingua",
134 "is" => "Íslenska",
137 "ja" => "日本語 (Nihongo)",
139 "ka" => "ქართველი (Kartuli)",
141 "kl" => "Greenlandic",
144 "ko" => "한국어 (Hangukeo)",
151 "lt" => "Lietuvių",
155 "mk" => "Macedonian",
160 "ms" => "Bahasa Melayu",
163 "ne" => "नेपाली (Nepali)",
164 "nl" => "Nederlands",
172 "pt" => "Português",
174 "rm" => "Rhaeto-Romance",
176 "ro" => "Română",
177 "ru" => "Русский (Russkij)",
178 "rw" => "Kinyarwanda",
179 "sa" => "संस्कृत (Samskrta)",
182 "sh" => "Serbocroatian",
184 "simple" => "Simple English",
206 "tr" => "Türkçe",
211 "uk" => "Українська (Ukrayins`ka)",
214 "vi" => "Vietnamese",
215 "vo" => "Volapük",
221 "zh" => "中文 (Zhongwen)",
222 "zh-cn" => "中文(简体) (Simplified Chinese)",
223 "zh-tw" => "中文(繁体) (Traditional Chinese)",
227 /* private */ $wgWeekdayNamesEn = array(
228 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
232 /* private */ $wgMonthNamesEn = array(
233 "January", "February", "March", "April", "May", "June",
234 "July", "August", "September", "October", "November",
238 /* private */ $wgMonthAbbreviationsEn = array(
239 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
240 "Sep", "Oct", "Nov", "Dec"
243 # All special pages have to be listed here: a description of ""
244 # will make them not show up on the "Special Pages" page, which
245 # is the right thing for some of them (such as the "targeted" ones).
247 /* private */ $wgValidSpecialPagesEn = array(
250 "Preferences" => "Set my user preferences",
251 "Watchlist" => "My watchlist",
252 "Recentchanges" => "Recently updated pages",
253 "Upload" => "Upload image files",
254 "Imagelist" => "Image list",
255 "Listusers" => "Registered users",
256 "Statistics" => "Site statistics",
257 "Randompage" => "Random article",
259 "Lonelypages" => "Orphaned articles",
260 "Unusedimages" => "Orphaned images",
261 "Popularpages" => "Popular articles",
262 "Wantedpages" => "Most wanted articles",
263 "Shortpages" => "Short articles",
264 "Longpages" => "Long articles",
265 "Newpages" => "Newly created articles",
266 "Ancientpages" => "Oldest articles",
267 "Intl" => "Interlanguage links",
268 "Allpages" => "All pages by title",
270 "Ipblocklist" => "Blocked IP addresses",
271 "Maintenance" => "Maintenance page",
272 "Specialpages" => "",
273 "Contributions" => "",
275 "Whatlinkshere" => "",
276 "Recentchangeslinked" => "",
278 "Booksources" => "External book sources",
279 "Categories" => "Page categories"
282 /* private */ $wgSysopSpecialPagesEn = array(
283 "Blockip" => "Block an IP address",
284 "Asksql" => "Query the database",
285 "Undelete" => "Restore deleted pages"
288 /* private */ $wgDeveloperSpecialPagesEn = array(
289 "Lockdb" => "Make database read-only",
290 "Unlockdb" => "Restore DB write access",
291 "Debug" => "Debugging information"
294 /* private */ $wgAllMessagesEn = array(
296 # Bits of text used by many pages:
298 "categories" => "Page categories",
299 "category" => "category",
300 "category_header" => "Articles in category \"$1\"",
301 "subcategories" => "Subcategories",
303 "linktrail" => "/^([a-z]+)(.*)\$/sD",
304 "mainpage" => "Main Page",
305 "mainpagetext" => "Wiki software successfully installed.",
307 "aboutwikipedia" => "About Wikipedia",
308 "aboutpage" => "Wikipedia:About",
310 "helppage" => "Wikipedia:Help",
311 "wikititlesuffix" => "Wikipedia",
312 "bugreports" => "Bug reports",
313 "bugreportspage" => "Wikipedia:Bug_reports",
315 "faqpage" => "Wikipedia:FAQ",
316 "edithelp" => "Editing help",
317 "edithelppage" => "Wikipedia:How_does_one_edit_a_page",
318 "cancel" => "Cancel",
320 "qbbrowse" => "Browse",
322 "qbpageoptions" => "Page options",
323 "qbpageinfo" => "Page info",
324 "qbmyoptions" => "My options",
325 "mypage" => "My page",
326 "mytalk" => "My talk",
327 "currentevents" => "Current events",
328 "errorpagetitle" => "Error",
329 "returnto" => "Return to $1.",
330 "fromwikipedia" => "From Wikipedia, the free encyclopedia.",
331 "whatlinkshere" => "Pages that link here",
333 "search" => "Search",
335 "history" => "Page history",
336 "printableversion" => "Printable version",
337 "editthispage" => "Edit this page",
338 "deletethispage" => "Delete this page",
339 "protectthispage" => "Protect this page",
340 "unprotectthispage" => "Unprotect this page",
341 "newpage" => "New page",
342 "talkpage" => "Discuss this page",
343 "postcomment" => "Post a comment",
344 "articlepage" => "View article",
345 "subjectpage" => "View subject", # For compatibility
346 "userpage" => "View user page",
347 "wikipediapage" => "View meta page",
348 "imagepage" => "View image page",
349 "viewtalkpage" => "View discussion",
350 "otherlanguages" => "Other languages",
351 "redirectedfrom" => "(Redirected from $1)",
352 "lastmodified" => "This page was last modified $1.",
353 "viewcount" => "This page has been accessed $1 times.",
354 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
355 "printsubtitle" => "(From http://www.wikipedia.org)",
356 "protectedpage" => "Protected page",
357 "administrators" => "Wikipedia:Administrators",
358 "sysoptitle" => "Sysop access required",
359 "sysoptext" => "The action you have requested can only be
360 performed by users with \"sysop\" status.
362 "developertitle" => "Developer access required",
363 "developertext" => "The action you have requested can only be
364 performed by users with \"developer\" status.
366 "nbytes" => "$1 bytes",
369 "sitetitle" => "Wikipedia",
370 "sitesubtitle" => "The Free Encyclopedia",
371 "retrievedfrom" => "Retrieved from \"$1\"",
372 "newmessages" => "You have $1.",
373 "newmessageslink" => "new messages",
374 "editsection"=>"edit",
375 "toc" => "Table of contents",
379 # Main script and global functions
381 "nosuchaction" => "No such action",
382 "nosuchactiontext" => "The action specified by the URL is not
383 recognized by the Wikipedia software",
384 "nosuchspecialpage" => "No such special page",
385 "nospecialpagetext" => "You have requested a special page that is not
386 recognized by the Wikipedia software.",
391 "databaseerror" => "Database error",
392 "dberrortext" => "A database query syntax error has occurred.
393 This could be because of an illegal search query (see $5),
394 or it may indicate a bug in the software.
395 The last attempted database query was:
396 <blockquote><tt>$1</tt></blockquote>
397 from within function \"<tt>$2</tt>\".
398 MySQL returned error \"<tt>$3: $4</tt>\".",
399 "dberrortextcl" => "A database query syntax error has occurred.
400 The last attempted database query was:
402 from within function \"$2\".
403 MySQL returned error \"$3: $4\".\n",
404 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
405 "nodb" => "Could not select database $1",
406 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
407 "readonly" => "Database locked",
408 "enterlockreason" => "Enter a reason for the lock, including an estimate
409 of when the lock will be released",
410 "readonlytext" => "The Wikipedia database is currently locked to new
411 entries and other modifications, probably for routine database maintenance,
412 after which it will be back to normal.
413 The administrator who locked it offered this explanation:
415 "missingarticle" => "The database did not find the text of a page
416 that it should have found, named \"$1\".
418 <p>This is usually caused by following an outdated diff or history link to a
419 page that has been deleted.
421 <p>If this is not the case, you may have found a bug in the software.
422 Please report this to an administrator, making note of the URL.",
423 "internalerror" => "Internal error",
424 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
425 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
426 "filedeleteerror" => "Could not delete file \"$1\".",
427 "filenotfound" => "Could not find file \"$1\".",
428 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
429 "formerror" => "Error: could not submit form",
430 "badarticleerror" => "This action cannot be performed on this page.",
431 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
432 "badtitle" => "Bad title",
433 "badtitletext" => "The requested page title was invalid, empty, or
434 an incorrectly linked inter-language or inter-wiki title.",
435 "perfdisabled" => "Sorry! This feature has been temporarily disabled
436 because it slows the database down to the point that no one can use
438 "perfdisabledsub" => "Here's a saved copy from $1:",
440 # Login and logout pages
442 "logouttitle" => "User logout",
443 "logouttext" => "You are now logged out.
444 You can continue to use Wikipedia anonymously, or you can log in
445 again as the same or as a different user. Note that some pages may
446 continue to be displayed as if you were still logged in, until you clear
447 your browser cache\n",
449 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
450 Don't forget to personalize your wikipedia preferences.",
452 "loginpagetitle" => "User login",
453 "yourname" => "Your user name",
454 "yourpassword" => "Your password",
455 "yourpasswordagain" => "Retype password",
456 "newusersonly" => " (new users only)",
457 "remembermypassword" => "Remember my password across sessions.",
458 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
459 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
461 "areyounew" => "If you are new to Wikipedia and want to get a user account,
462 enter a user name, then type and re-type a password.
463 Your e-mail address is optional; if you lose your password you can request
464 that it be to the address you give.<br>\n",
467 "userlogin" => "Log in",
468 "logout" => "Log out",
469 "userlogout" => "Log out",
470 "notloggedin" => "Not logged in",
471 "createaccount" => "Create new account",
472 "createaccountmail" => "by eMail",
473 "badretype" => "The passwords you entered do not match.",
474 "userexists" => "The user name you entered is already in use. Please choose a different name.",
475 "youremail" => "Your e-mail*",
476 "yournick" => "Your nickname (for signatures)",
477 "emailforlost" => "* Entering an email address is optional. But it enables people to
478 contact you through the website without you having to reveal your
479 email address to them, and it also helps you if you forget your
481 "loginerror" => "Login error",
482 "noname" => "You have not specified a valid user name.",
483 "loginsuccesstitle" => "Login successful",
484 "loginsuccess" => "You are now logged in to Wikipedia as \"$1\".",
485 "nosuchuser" => "There is no user by the name \"$1\".
486 Check your spelling, or use the form below to create a new user account.",
487 "wrongpassword" => "The password you entered is incorrect. Please try again.",
488 "mailmypassword" => "Mail me a new password",
489 "passwordremindertitle" => "Password reminder from Wikipedia",
490 "passwordremindertext" => "Someone (probably you, from IP address $1)
491 requested that we send you a new Wikipedia login password.
492 The password for user \"$2\" is now \"$3\".
493 You should log in and change your password now.",
494 "noemail" => "There is no e-mail address recorded for user \"$1\".",
495 "passwordsent" => "A new password has been sent to the e-mail address
496 registered for \"$1\".
497 Please log in again after you receive it.",
501 "summary" => "Summary",
502 "subject" => "Subject/headline",
503 "minoredit" => "This is a minor edit",
504 "watchthis" => "Watch this article",
505 "savearticle" => "Save page",
506 "preview" => "Preview",
507 "showpreview" => "Show preview",
508 "blockedtitle" => "User is blocked",
509 "blockedtext" => "Your user name or IP address has been blocked by $1.
510 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
511 [[Wikipedia:administrators|administrators]] to discuss the block.",
512 "whitelistedittitle" => "Login required to edit",
513 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
514 "whitelistreadtitle" => "Login required to read",
515 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
516 "whitelistacctitle" => "You are not allowed to create an account",
517 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
518 "accmailtitle" => "Password sent.",
519 "accmailtext" => "The Password for '$1' has been sent to $2.",
520 "newarticle" => "(New)",
522 "You've followed a link to a page that doesn't exist yet.
523 To create the page, start typing in the box below
524 (see the [[Wikipedia:Help|help page]] for more info).
525 If you are here by mistake, just click your browser's '''back''' button.",
526 "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.'' ",
527 "noarticletext" => "(There is currently no text in this page)",
528 "updated" => "(Updated)",
529 "note" => "<strong>Note:</strong> ",
530 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
531 "previewconflict" => "This preview reflects the text in the upper
532 text editing area as it will appear if you choose to save.",
533 "editing" => "Editing $1",
534 "sectionedit" => " (section)",
535 "commentedit" => " (comment)",
536 "editconflict" => "Edit conflict: $1",
537 "explainconflict" => "Someone else has changed this page since you
539 The upper text area contains the page text as it currently exists.
540 Your changes are shown in the lower text area.
541 You will have to merge your changes into the existing text.
542 <b>Only</b> the text in the upper text area will be saved when you
543 press \"Save page\".\n<p>",
544 "yourtext" => "Your text",
545 "storedversion" => "Stored version",
546 "editingold" => "<strong>WARNING: You are editing an out-of-date
547 revision of this page.
548 If you save it, any changes made since this revision will be lost.</strong>\n",
549 "yourdiff" => "Differences",
550 "copyrightwarning" => "Please note that all contributions to Wikipedia are
551 considered to be released under the GNU Free Documentation License
552 (see $1 for details).
553 If you don't want your writing to be edited mercilessly and redistributed
554 at will, then don't submit it here.<br>
555 You are also promising us that you wrote this yourself, or copied it from a
556 public domain or similar free resource.
557 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
558 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
559 browsers may have problems editing pages approaching or longer than 32kb.
560 Please consider breaking the page into smaller sections.",
561 "readonlywarning" => "WARNING: The database has been locked for maintenance,
562 so you will not be able to save your edits right now. You may wish to cut-n-paste
563 the text into a text file and save it for later.",
564 "protectedpagewarning" => "WARNING: This page has been locked so that only
565 users with sysop privileges can edit it. Be sure you are following the
566 <a href='/wiki/Wikipedia:Protected_page_guidelines'>protected page
571 "revhistory" => "Revision history",
572 "nohistory" => "There is no edit history for this page.",
573 "revnotfound" => "Revision not found",
574 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
575 Please check the URL you used to access this page.\n",
576 "loadhist" => "Loading page history",
577 "currentrev" => "Current revision",
578 "revisionasof" => "Revision as of $1",
583 "histlegend" => "Legend: (cur) = difference with current version,
584 (last) = difference with preceding version, M = minor edit",
588 "difference" => "(Difference between revisions)",
589 "loadingrev" => "loading revision for diff",
590 "lineno" => "Line $1:",
591 "editcurrent" => "Edit the current version of this page",
595 "searchresults" => "Search results",
596 "searchhelppage" => "Wikipedia:Searching",
597 "searchingwikipedia" => "Searching Wikipedia",
598 "searchresulttext" => "For more information about searching Wikipedia, see $1.",
599 "searchquery" => "For query \"$1\"",
600 "badquery" => "Badly formed search query",
601 "badquerytext" => "We could not process your query.
602 This is probably because you have attempted to search for a
603 word fewer than three letters long, which is not yet supported.
604 It could also be that you have mistyped the expression, for
605 example \"fish and and scales\".
606 Please try another query.",
607 "matchtotals" => "The query \"$1\" matched $2 article titles
608 and the text of $3 articles.",
609 "nogomatch" => "No page with this exact title exists, trying full text search.",
610 "titlematches" => "Article title matches",
611 "notitlematches" => "No article title matches",
612 "textmatches" => "Article text matches",
613 "notextmatches" => "No article text matches",
614 "prevn" => "previous $1",
615 "nextn" => "next $1",
616 "viewprevnext" => "View ($1) ($2) ($3).",
617 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
618 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
619 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
620 often caused by searching for common words like \"have\" and \"from\",
621 which are not indexed, or by specifying more than one search term (only pages
622 containing all of the search terms will appear in the result).",
623 "powersearch" => "Search",
624 "powersearchtext" => "
625 Search in namespaces :<br>
627 $2 List redirects Search for $3 $9",
628 "blanknamespace" => "(Main)",
632 "preferences" => "Preferences",
633 "prefsnologin" => "Not logged in",
634 "prefsnologintext" => "You must be <a href=\"" .
635 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
636 to set user preferences.",
637 "prefslogintext" => "You are logged in as \"$1\".
638 Your internal ID number is $2.
640 See [[Wikipedia:User preferences help]] for help deciphering the options.",
641 "prefsreset" => "Preferences have been reset from storage.",
642 "qbsettings" => "Quickbar settings",
643 "changepassword" => "Change password",
645 "math" => "Rendering math",
646 "dateformat" => "Date format",
647 "math_failure" => "Failed to parse",
648 "math_unknown_error" => "unknown error",
649 "math_unknown_function" => "unknown function ",
650 "math_lexing_error" => "lexing error",
651 "math_syntax_error" => "syntax error",
652 "saveprefs" => "Save preferences",
653 "resetprefs" => "Reset preferences",
654 "oldpassword" => "Old password",
655 "newpassword" => "New password",
656 "retypenew" => "Retype new password",
657 "textboxsize" => "Textbox dimensions",
659 "columns" => "Columns",
660 "searchresultshead" => "Search result settings",
661 "resultsperpage" => "Hits to show per page",
662 "contextlines" => "Lines to show per hit",
663 "contextchars" => "Characters of context per line",
664 "stubthreshold" => "Threshold for stub display",
665 "recentchangescount" => "Number of titles in recent changes",
666 "savedprefs" => "Your preferences have been saved.",
667 "timezonetext" => "Enter number of hours your local time differs
668 from server time (UTC).",
669 "localtime" => "Local time display",
670 "timezoneoffset" => "Offset",
671 "servertime" => "Server time is now",
672 "guesstimezone" => "Fill in from browser",
673 "emailflag" => "Disable e-mail from other users",
674 "defaultns" => "Search in these namespaces by default:",
678 "changes" => "changes",
679 "recentchanges" => "Recent changes",
680 "recentchangestext" =>
681 "Track the most recent changes to Wikipedia on this page.
682 [[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
683 Please have a look at these pages: [[wikipedia:FAQ|Wikipedia FAQ]],
684 [[Wikipedia:Policies and guidelines|Wikipedia policy]]
685 (especially [[wikipedia:Naming conventions|naming conventions]],
686 [[wikipedia:Neutral point of view|neutral point of view]]),
687 and [[wikipedia:Most common Wikipedia faux pas|most common Wikipedia faux pas]].
689 If you want to see Wikipedia succeed, it's very important that you don't add
690 material restricted by others' [[wikipedia:Copyrights|copyrights]].
691 The legal liability could really hurt the project, so please don't do it.
692 See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta discussion].",
693 "rcloaderr" => "Loading recent changes",
694 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
695 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
696 "rclistfrom" => "Show new changes starting from $1",
697 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
698 # "rclinks" => "Show last $1 changes in last $2 days.",
699 "rclinks" => "Show last $1 changes in last $2 days; $3 minor edits",
700 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
701 "rcliu" => "; $1 edits from logged in users",
706 "tableform" => "table",
707 "listform" => "list",
708 "nchanges" => "$1 changes",
709 "minoreditletter" => "M",
710 "newpageletter" => "N",
714 "upload" => "Upload file",
715 "uploadbtn" => "Upload file",
716 "uploadlink" => "Upload images",
717 "reupload" => "Re-upload",
718 "reuploaddesc" => "Return to the upload form.",
719 "uploadnologin" => "Not logged in",
720 "uploadnologintext" => "You must be <a href=\"" .
721 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
723 "uploadfile" => "Upload images, sounds, documents etc.",
724 "uploaderror" => "Upload error",
725 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
726 make sure to read and follow Wikipedia's <a href=\"" .
727 wfLocalUrlE( "Wikipedia:Image_use_policy" ) . "\">image use policy</a>.
728 <p>To view or search previously uploaded images,
729 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
730 "\">list of uploaded images</a>.
731 Uploads and deletions are logged on the <a href=\"" .
732 wfLocalUrlE( "Wikipedia:Upload_log" ) . "\">upload log</a>.
733 <p>Use the form below to upload new image files for use in
734 illustrating your articles.
735 On most browsers, you will see a \"Browse...\" button, which will
736 bring up your operating system's standard file open dialog.
737 Choosing a file will fill the name of that file into the text
738 field next to the button.
739 You must also check the box affirming that you are not
740 violating any copyrights by uploading the file.
741 Press the \"Upload\" button to finish the upload.
742 This may take some time if you have a slow internet connection.
743 <p>The preferred formats are JPEG for photographic images, PNG
744 for drawings and other iconic images, and OGG for sounds.
745 Please name your files descriptively to avoid confusion.
746 To include the image in an article, use a link in the form
747 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
748 or <b>[[media:file.ogg]]</b> for sounds.
749 <p>Please note that as with Wikipedia pages, others may edit or
750 delete your uploads if they think it serves the encyclopedia, and
751 you may be blocked from uploading if you abuse the system.",
752 "uploadlog" => "upload log",
753 "uploadlogpage" => "Upload_log",
754 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
755 All times shown are server time (UTC).
759 "filename" => "Filename",
760 "filedesc" => "Summary",
761 "affirmation" => "I affirm that the copyright holder of this file
762 agrees to license it under the terms of the $1.",
763 "copyrightpage" => "Wikipedia:Copyrights",
764 "copyrightpagename" => "Wikipedia copyright",
765 "uploadedfiles" => "Uploaded files",
766 "noaffirmation" => "You must affirm that your upload does not violate
768 "ignorewarning" => "Ignore warning and save file anyway.",
769 "minlength" => "Image names must be at least three letters.",
770 "badfilename" => "Image name has been changed to \"$1\".",
771 "badfiletype" => "\".$1\" is not a recommended image file format.",
772 "largefile" => "It is recommended that images not exceed 100k in size.",
773 "successfulupload" => "Successful upload",
774 "fileuploaded" => "File \"$1\" uploaded successfully.
775 Please follow this link: ($2) to the description page and fill
776 in information about the file, such as where it came from, when it was
777 created and by whom, and anything else you may know about it.",
778 "uploadwarning" => "Upload warning",
779 "savefile" => "Save file",
780 "uploadedimage" => "uploaded \"$1\"",
784 "imagelist" => "Image list",
785 "imagelisttext" => "Below is a list of $1 images sorted $2.",
786 "getimagelist" => "fetching image list",
787 "ilshowmatch" => "Show all images with names matching",
788 "ilsubmit" => "Search",
789 "showlast" => "Show last $1 images sorted $2.",
791 "byname" => "by name",
792 "bydate" => "by date",
793 "bysize" => "by size",
794 "imgdelete" => "del",
796 "imglegend" => "Legend: (desc) = show/edit image description.",
797 "imghistory" => "Image history",
798 "revertimg" => "rev",
799 "deleteimg" => "del",
800 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
801 this old version, (rev) = revert to this old version.
802 <br><i>Click on date to see image uploaded on that date</i>.",
803 "imagelinks" => "Image links",
804 "linkstoimage" => "The following pages link to this image:",
805 "nolinkstoimage" => "There are no pages that link to this image.",
809 "statistics" => "Statistics",
810 "sitestats" => "Site statistics",
811 "userstats" => "User statistics",
812 "sitestatstext" => "There are <b>$1</b> total pages in the database.
813 This includes \"talk\" pages, pages about Wikipedia, minimal \"stub\"
814 pages, redirects, and others that probably don't qualify as articles.
815 Excluding those, there are <b>$2</b> pages that are probably legitimate
817 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
818 since the software was upgraded (July 20, 2002).
819 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
820 "userstatstext" => "There are <b>$1</b> registered users.
821 <b>$2</b> of these are administrators (see $3).",
825 "maintenance" => "Maintenance page",
826 "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 ;-)",
827 "maintenancebacklink" => "Back to Maintenance Page",
828 "disambiguations" => "Disambiguation pages",
829 "disambiguationspage" => "Wikipedia:Links_to_disambiguating_pages",
830 "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.",
831 "doubleredirects" => "Double Redirects",
832 "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.",
833 "brokenredirects" => "Broken Redirects",
834 "brokenredirectstext" => "The following redirects link to a non-existing article.",
835 "selflinks" => "Pages with Self Links",
836 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
837 "mispeelings" => "Pages with misspellings",
838 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
839 "mispeelingspage" => "List of common misspellings",
840 "missinglanguagelinks" => "Missing Language Links",
841 "missinglanguagelinksbutton" => "Find missing language links for",
842 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
845 # Miscellaneous special pages
847 "orphans" => "Orphaned pages",
848 "lonelypages" => "Orphaned pages",
849 "unusedimages" => "Unused images",
850 "popularpages" => "Popular pages",
851 "nviews" => "$1 views",
852 "wantedpages" => "Wanted pages",
853 "nlinks" => "$1 links",
854 "allpages" => "All pages",
855 "randompage" => "Random page",
856 "shortpages" => "Short pages",
857 "longpages" => "Long pages",
858 "listusers" => "User list",
859 "specialpages" => "Special pages",
860 "spheading" => "Special pages for all users",
861 "sysopspheading" => "For sysop use only",
862 "developerspheading" => "For developer use only",
863 "protectpage" => "Protect page",
864 "recentchangeslinked" => "Related changes",
865 "rclsub" => "(to pages linked from \"$1\")",
867 "newpages" => "New pages",
868 "ancientpages" => "Oldest articles",
869 "intl" => "Interlanguage links",
870 "movethispage" => "Move this page",
871 "unusedimagestext" => "<p>Please note that other web sites
872 such as the international Wikipedias may link to an image with
873 a direct URL, and so may still be listed here despite being
875 "booksources" => "Book sources",
876 "booksourcetext" => "Below is a list of links to other sites that
877 sell new and used books, and may also have further information
878 about books you are looking for.
879 Wikipedia is not affiliated with any of these businesses, and
880 this list should not be construed as an endorsement.",
881 "alphaindexline" => "$1 to $2",
885 "mailnologin" => "No send address",
886 "mailnologintext" => "You must be <a href=\"" .
887 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
888 and have a valid e-mail address in your <a href=\"" .
889 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
890 to send e-mail to other users.",
891 "emailuser" => "E-mail this user",
892 "emailpage" => "E-mail user",
893 "emailpagetext" => "If this user has entered a valid e-mail address in
894 his or her user preferences, the form below will send a single message.
895 The e-mail address you entered in your user preferences will appear
896 as the \"From\" address of the mail, so the recipient will be able
898 "noemailtitle" => "No e-mail address",
899 "noemailtext" => "This user has not specified a valid e-mail address,
900 or has chosen not to receive e-mail from other users.",
901 "emailfrom" => "From",
903 "emailsubject" => "Subject",
904 "emailmessage" => "Message",
905 "emailsend" => "Send",
906 "emailsent" => "E-mail sent",
907 "emailsenttext" => "Your e-mail message has been sent.",
911 "watchlist" => "My watchlist",
912 "watchlistsub" => "(for user \"$1\")",
913 "nowatchlist" => "You have no items on your watchlist.",
914 "watchnologin" => "Not logged in",
915 "watchnologintext" => "You must be <a href=\"" .
916 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
917 to modify your watchlist.",
918 "addedwatch" => "Added to watchlist",
919 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
920 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
921 Future changes to this page and its associated Talk page will be listed there,
922 and the page will appear <b>bolded</b> in the <a href=\"" .
923 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
924 make it easier to pick out.</p>
926 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
927 "removedwatch" => "Removed from watchlist",
928 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
929 "watchthispage" => "Watch this page",
930 "unwatchthispage" => "Stop watching",
931 "notanarticle" => "Not an article",
932 "watchnochange" => "None of your watched items were edited in the time period displayed.",
933 "watchdetails" => "($1 pages watched not counting talk pages;
934 $2 total pages edited since cutoff;
936 <a href='$4'>show and edit complete list</a>.)",
937 "watchmethod-recent" => "checking recent edits for watched pages",
938 "watchmethod-list" => "checking watched pages for recent edits",
939 "removechecked" => "Remove checked items from watchlist",
940 "watchlistcontains" => "Your watchlist contains $1 pages.",
941 "watcheditlist" => "Here's an alphabetical list of your
942 watched pages. Check the boxes of pages you want to remove
943 from your watchlist and click the 'remove checked' button
944 at the bottom of the screen.",
945 "removingchecked" => "Removing requested items from watchlist...",
946 "couldntremove" => "Couldn't remove item '$1'...",
947 "iteminvalidname" => "Problem with item '$1', invalid name...",
948 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
951 # Delete/protect/revert
953 "deletepage" => "Delete page",
954 "confirm" => "Confirm",
955 "excontent" => "content was:",
956 "exbeforeblank" => "content before blanking was:",
957 "exblank" => "page was empty",
958 "confirmdelete" => "Confirm delete",
959 "deletesub" => "(Deleting \"$1\")",
960 "historywarning" => "Warning: The page you are about to delete has a history: ",
961 "confirmdeletetext" => "You are about to permanently delete a page
962 or image along with all of its history from the database.
963 Please confirm that you intend to do this, that you understand the
964 consequences, and that you are doing this in accordance with
965 [[Wikipedia:Policy]].",
966 "confirmcheck" => "Yes, I really want to delete this.",
967 "actioncomplete" => "Action complete",
968 "deletedtext" => "\"$1\" has been deleted.
969 See $2 for a record of recent deletions.",
970 "deletedarticle" => "deleted \"$1\"",
971 "dellogpage" => "Deletion_log",
972 "dellogpagetext" => "Below is a list of the most recent deletions.
973 All times shown are server time (UTC).
977 "deletionlog" => "deletion log",
978 "reverted" => "Reverted to earlier revision",
979 "deletecomment" => "Reason for deletion",
980 "imagereverted" => "Revert to earlier version was successful.",
981 "rollback" => "Roll back edits",
982 "rollbacklink" => "rollback",
983 "rollbackfailed" => "Rollback failed",
984 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
985 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
986 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
988 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
989 # only shown if there is an edit comment
990 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
991 "revertpage" => "Reverted to last edit by $1",
994 "undelete" => "Restore deleted page",
995 "undeletepage" => "View and restore deleted pages",
996 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
997 can be restored. The archive may be periodically cleaned out.",
998 "undeletearticle" => "Restore deleted article",
999 "undeleterevisions" => "$1 revisions archived",
1000 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1001 If a new page with the same name has been created since the deletion, the restored
1002 revisions will appear in the prior history, and the current revision of the live page
1003 will not be automatically replaced.",
1004 "undeleterevision" => "Deleted revision as of $1",
1005 "undeletebtn" => "Restore!",
1006 "undeletedarticle" => "restored \"$1\"",
1007 "undeletedtext" => "The article [[$1]] has been successfully restored.
1008 See [[Wikipedia:Deletion_log]] for a record of recent deletions and restorations.",
1012 "contributions" => "User contributions",
1013 "mycontris" => "My contributions",
1014 "contribsub" => "For $1",
1015 "nocontribs" => "No changes were found matching these criteria.",
1016 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1017 "uclinks" => "View the last $1 changes; view the last $2 days.",
1018 "uctop" => " (top)" ,
1022 "whatlinkshere" => "What links here",
1023 "notargettitle" => "No target",
1024 "notargettext" => "You have not specified a target page or user
1025 to perform this function on.",
1026 "linklistsub" => "(List of links)",
1027 "linkshere" => "The following pages link to here:",
1028 "nolinkshere" => "No pages link to here.",
1029 "isredirect" => "redirect page",
1033 "blockip" => "Block IP address",
1034 "blockiptext" => "Use the form below to block write access
1035 from a specific IP address.
1036 This should be done only only to prevent vandalism, and in
1037 accordance with [[Wikipedia:Policy|Wikipedia policy]].
1038 Fill in a specific reason below (for example, citing particular
1039 pages that were vandalized).",
1040 "ipaddress" => "IP Address",
1041 "ipbreason" => "Reason",
1042 "ipbsubmit" => "Block this address",
1043 "badipaddress" => "The IP address is badly formed.",
1044 "noblockreason" => "You must supply a reason for the block.",
1045 "blockipsuccesssub" => "Block succeeded",
1046 "blockipsuccesstext" => "The IP address \"$1\" has been blocked.
1047 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1048 "unblockip" => "Unblock IP address",
1049 "unblockiptext" => "Use the form below to restore write access
1050 to a previously blocked IP address.",
1051 "ipusubmit" => "Unblock this address",
1052 "ipusuccess" => "IP address \"$1\" unblocked",
1053 "ipblocklist" => "List of blocked IP addresses",
1054 "blocklistline" => "$1, $2 blocked $3",
1055 "blocklink" => "block",
1056 "unblocklink" => "unblock",
1057 "contribslink" => "contribs",
1061 "lockdb" => "Lock database",
1062 "unlockdb" => "Unlock database",
1063 "lockdbtext" => "Locking the database will suspend the ability of all
1064 users to edit pages, change their preferences, edit their watchlists, and
1065 other things requiring changes in the database.
1066 Please confirm that this is what you intend to do, and that you will
1067 unlock the database when your maintenance is done.",
1068 "unlockdbtext" => "Unlocking the database will restore the ability of all
1069 users to edit pages, change their preferences, edit their watchlists, and
1070 other things requiring changes in the database.
1071 Please confirm that this is what you intend to do.",
1072 "lockconfirm" => "Yes, I really want to lock the database.",
1073 "unlockconfirm" => "Yes, I really want to unlock the database.",
1074 "lockbtn" => "Lock database",
1075 "unlockbtn" => "Unlock database",
1076 "locknoconfirm" => "You did not check the confirmation box.",
1077 "lockdbsuccesssub" => "Database lock succeeded",
1078 "unlockdbsuccesssub" => "Database lock removed",
1079 "lockdbsuccesstext" => "The Wikipedia database has been locked.
1080 <br>Remember to remove the lock after your maintenance is complete.",
1081 "unlockdbsuccesstext" => "The Wikipedia database has been unlocked.",
1085 "asksql" => "SQL query",
1086 "asksqltext" => "Use the form below to make a direct query of the
1088 Use single quotes ('like this') to delimit string literals.
1089 This can often add considerable load to the server, so please use
1090 this function sparingly.",
1091 "sqlislogged" => "Please note that all queries are logged.",
1092 "sqlquery" => "Enter query",
1093 "querybtn" => "Submit query",
1094 "selectonly" => "Queries other than \"SELECT\" are restricted to
1095 Wikipedia developers.",
1096 "querysuccessful" => "Query successful",
1100 "movepage" => "Move page",
1101 "movepagetext" => "Using the form below will rename a page, moving all
1102 of its history to the new name.
1103 The old title will become a redirect page to the new title.
1104 Links to the old page title will not be changed; be sure to
1105 [[Special:Maintenance|check]] for double or broken redirects.
1106 You are responsible for making sure that links continue to
1107 point where they are supposed to go.
1109 Note that the page will '''not''' be moved if there is already
1110 a page at the new title, unless it is empty or a redirect and has no
1111 past edit history. This means that you can rename a page back to where
1112 it was just renamed from if you make a mistake, and you cannot overwrite
1116 This can be a drastic and unexpected change for a popular page;
1117 please be sure you understand the consequences of this before
1119 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1120 *You are moving the page across namespaces,
1121 *A non-empty talk page already exists under the new name, or
1122 *You uncheck the box below.
1124 In those cases, you will have to move or merge the page manually if desired.",
1125 "movearticle" => "Move page",
1126 "movenologin" => "Not logged in",
1127 "movenologintext" => "You must be a registered user and <a href=\"" .
1128 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1130 "newtitle" => "To new title",
1131 "movepagebtn" => "Move page",
1132 "pagemovedsub" => "Move succeeded",
1133 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1134 "articleexists" => "A page of that name already exists, or the
1135 name you have chosen is not valid.
1136 Please choose another name.",
1137 "talkexists" => "The page itself was moved successfully, but the
1138 talk page could not be moved because one already exists at the new
1139 title. Please merge them manually.",
1140 "movedto" => "moved to",
1141 "movetalk" => "Move \"talk\" page as well, if applicable.",
1142 "talkpagemoved" => "The corresponding talk page was also moved.",
1143 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1149 function getDefaultUserOptions () {
1150 global $wgDefaultUserOptionsEn ;
1151 return $wgDefaultUserOptionsEn ;
1154 function getBookstoreList () {
1155 global $wgBookstoreListEn ;
1156 return $wgBookstoreListEn ;
1159 function getNamespaces() {
1160 global $wgNamespaceNamesEn;
1161 return $wgNamespaceNamesEn;
1164 function getNsText( $index ) {
1165 global $wgNamespaceNamesEn;
1166 return $wgNamespaceNamesEn[$index];
1169 function getNsIndex( $text ) {
1170 global $wgNamespaceNamesEn;
1172 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1173 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1178 function specialPage( $name ) {
1179 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1182 function getQuickbarSettings() {
1183 global $wgQuickbarSettingsEn;
1184 return $wgQuickbarSettingsEn;
1187 function getSkinNames() {
1188 global $wgSkinNamesEn;
1189 return $wgSkinNamesEn;
1192 function getMathNames() {
1193 global $wgMathNamesEn;
1194 return $wgMathNamesEn;
1197 function getDateFormats() {
1198 global $wgDateFormatsEn;
1199 return $wgDateFormatsEn;
1202 function getUserToggles() {
1203 global $wgUserTogglesEn;
1204 return $wgUserTogglesEn;
1207 function getLanguageNames() {
1208 global $wgLanguageNamesEn;
1209 return $wgLanguageNamesEn;
1212 function getLanguageName( $code ) {
1213 global $wgLanguageNamesEn;
1214 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1217 return $wgLanguageNamesEn[$code];
1220 function getMonthName( $key )
1222 global $wgMonthNamesEn;
1223 return $wgMonthNamesEn[$key-1];
1226 /* by default we just return base form */
1227 function getMonthNameGen( $key )
1229 global $wgMonthNamesEn;
1230 return $wgMonthNamesEn[$key-1];
1233 function getMonthRegex()
1235 global $wgMonthNamesEn;
1236 return implode( "|", $wgMonthNamesEn );
1239 function getMonthAbbreviation( $key )
1241 global $wgMonthAbbreviationsEn;
1242 return $wgMonthAbbreviationsEn[$key-1];
1245 function getWeekdayName( $key )
1247 global $wgWeekdayNamesEn;
1248 return $wgWeekdayNamesEn[$key-1];
1251 function userAdjust( $ts )
1253 global $wgUser, $wgLocalTZoffset;
1255 $diff = $wgUser->getOption( "timecorrection" );
1256 if ( ! is_numeric( $diff ) ) {
1257 $diff = isset( $wgLocalTZoffset ) ?
$wgLocalTZoffset : 0;
1259 if ( 0 == $diff ) { return $ts; }
1261 $t = mktime( ( (int)substr( $ts, 8, 2) ) +
$diff,
1262 (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
1263 (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ),
1264 (int)substr( $ts, 0, 4 ) );
1265 return date( "YmdHis", $t );
1268 function date( $ts, $adj = false )
1270 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1272 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1274 if ( $wgUseDynamicDates ) {
1275 $datePreference = $wgUser->getOption( 'date' );
1276 if ( $datePreference == 0 ) {
1277 $datePreference = $wgAmericanDates ?
1 : 2;
1280 $datePreference = $wgAmericanDates ?
1 : 2;
1283 if ( $datePreference == 1 ) {
1285 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1286 " " . (0 +
substr( $ts, 6, 2 )) . ", " .
1287 substr( $ts, 0, 4 );
1288 } else if ( $datePreference == 2 ) {
1290 $d = (0 +
substr( $ts, 6, 2 )) . " " .
1291 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1292 substr( $ts, 0, 4 );
1295 $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1296 " " . (0 +
substr( $ts, 6, 2 ));
1302 function time( $ts, $adj = false )
1304 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1306 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1310 function timeanddate( $ts, $adj = false )
1312 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1315 function rfc1123( $ts )
1317 return date( "D, d M Y H:i:s T", $ts );
1320 function getValidSpecialPages()
1322 global $wgValidSpecialPagesEn;
1323 return $wgValidSpecialPagesEn;
1326 function getSysopSpecialPages()
1328 global $wgSysopSpecialPagesEn;
1329 return $wgSysopSpecialPagesEn;
1332 function getDeveloperSpecialPages()
1334 global $wgDeveloperSpecialPagesEn;
1335 return $wgDeveloperSpecialPagesEn;
1338 function getMessage( $key )
1340 global $wgAllMessagesEn;
1341 return $wgAllMessagesEn[$key];
1344 function iconv( $in, $out, $string ) {
1345 # For most languages, this is a wrapper for iconv
1346 return iconv( $in, $out, $string );
1349 function ucfirst( $string ) {
1350 # For most languages, this is a wrapper for ucfirst()
1351 return ucfirst( $string );
1354 function checkTitleEncoding( $s ) {
1355 global $wgInputEncoding;
1357 # Check for UTF-8 URLs; Internet Explorer produces these if you
1358 # type non-ASCII chars in the URL bar or follow unescaped links.
1359 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1360 $isutf = ($ishigh ?
preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1361 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1363 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1364 return iconv( "UTF-8", $wgInputEncoding, $s );
1366 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1367 return utf8_encode( $s );
1369 # Other languages can safely leave this function, or replace
1370 # it with one to detect and convert another legacy encoding.
1374 function stripForSearch( $in ) {
1375 # Some languages have special punctuation to strip out
1376 # or characters which need to be converted for MySQL's
1377 # indexing to grok it correctly. Make such changes here.
1382 function setAltEncoding() {
1383 # Some languages may have an alternate char encoding option
1384 # (Esperanto X-coding, Japanese furigana conversion, etc)
1385 # If 'altencoding' is checked in user prefs, this gives a
1386 # chance to swap out the default encoding settings.
1387 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1390 function recodeForEdit( $s ) {
1391 # For some languages we'll want to explicitly specify
1392 # which characters make it into the edit box raw
1393 # or are converted in some way or another.
1394 # Note that if wgOutputEncoding is different from
1395 # wgInputEncoding, this text will be further converted
1396 # to wgOutputEncoding.
1397 global $wgInputEncoding, $wgEditEncoding;
1398 if( $wgEditEncoding == "" or
1399 $wgEditEncoding == $wgInputEncoding ) {
1402 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1406 function recodeInput( $s ) {
1407 # Take the previous into account.
1408 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1409 if($wgEditEncoding != "") {
1410 $enc = $wgEditEncoding;
1412 $enc = $wgOutputEncoding;
1414 if( $enc == $wgInputEncoding ) {
1417 return $this->iconv( $enc, $wgInputEncoding, $s );
1421 function replaceDates( $text )
1423 global $wgUser, $wgInputEncoding, $wgUseDynamicDates;
1425 # Feature can be disabled
1426 if ( !$wgUseDynamicDates ) {
1432 $datePreference = $wgUser->getOption( 'date' );
1434 static $monthNames = "", $rxDM, $rxMD, $rxY, $rxDMY, $rxYDM, $rxMDY, $rxYMD;
1435 if ( $monthNames == "" ) {
1436 $monthNames = $this->getMonthRegex();
1438 # Attempt at UTF-8 support, untested at the moment
1439 if ( $wgInputEncoding == 'UTF-8' ) {
1440 $regexTrail = '(?![a-z])/iu';
1442 $regexTrail = '(?![a-z])/i';
1445 # Partial regular expressions
1446 $prxDM = '\[\[(\d{1,2})[ _](' . $monthNames . ')]]';
1447 $prxMD = '\[\[(' . $monthNames . ')[ _](\d{1,2})]]';
1448 $prxY = '\[\[(\d{1,4}([ _]BC|))]]';
1450 # Real regular expressions
1451 $rxDMY = "/{$prxDM} *,? *{$prxY}{$regexTrail}";
1452 $rxYDM = "/{$prxY} *,? *{$prxDM}{$regexTrail}";
1453 $rxMDY = "/{$prxMD} *,? *{$prxY}{$regexTrail}";
1454 $rxYMD = "/{$prxY} *,? *{$prxMD}{$regexTrail}";
1455 $rxDM = "/{$prxDM}{$regexTrail}";
1456 $rxMD = "/{$prxMD}{$regexTrail}";
1457 $rxY = "/{$prxY}{$regexTrail}";
1461 # TODO: month capitalisation?
1462 if ( $datePreference == 0 ) {
1464 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
1465 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1466 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1467 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1468 $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
1469 } else if ( $datePreference == 1 ) {
1471 $text = preg_replace( $rxDMY, '[[$2 $1]], [[$3]]', $text);
1472 $text = preg_replace( $rxYDM, '[[$4 $3]], [[$1]]', $text);
1473 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1474 $text = preg_replace( $rxYMD, '[[$3 $4]], [[$1]]', $text);
1475 $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
1476 } else if ( $datePreference == 2 ) {
1478 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
1479 $text = preg_replace( $rxYDM, '[[$4 $3|$3 $4]] [[$1]]', $text);
1480 $text = preg_replace( $rxMDY, '[[$1 $2|$2 $1]] [[$3]]', $text);
1481 $text = preg_replace( $rxYMD, '[[$3 $4|$4 $3]] [[$1]]', $text);
1482 $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
1483 $text = preg_replace ( $rxMD, '[[$1 $2|$2 $1]]', $text);
1484 } else if ( $datePreference == 3 ) {
1486 $text = preg_replace( $rxDMY, '[[$3]] [[$2 $1]]', $text);
1487 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1488 $text = preg_replace( $rxMDY, '[[$3]] [[$1 $2]]', $text);
1489 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1490 $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
1495 # For right-to-left language support
1496 function isRTL() { return false; }
1500 @include_once
( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );