<?
+#--------------------------------------------------------------------------
+# Constants
+#--------------------------------------------------------------------------
+
+# Magic words
+define("MAG_REDIRECT", 0);
+define("MAG_NOTOC", 1);
+define("MAG_START", 2);
+define("MAG_CURRENTMONTH", 3);
+define("MAG_CURRENTMONTHNAME", 4);
+define("MAG_CURRENTDAY", 5);
+define("MAG_CURRENTDAYNAME", 6);
+define("MAG_CURRENTYEAR", 7);
+define("MAG_CURRENTTIME", 8);
+define("MAG_NUMBEROFARTICLES", 9);
+define("MAG_CURRENTMONTHNAMEGEN", 10);
+define("MAG_MSG", 11);
+define("MAG_SUBST", 12);
+define("MAG_MSGNW", 13);
+define("MAG_NOEDITSECTION", 14);
+
+#--------------------------------------------------------------------------
+# Language-specific text
+#--------------------------------------------------------------------------
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
# are magical, so don't change or move them! The Namespace class
# encapsulates some of the magic-ness.
#
+
+if($wgMetaNamespace === FALSE)
+ $wgMetaNamespace = str_replace( " ", "_", $wgSitename );
+
/* private */ $wgNamespaceNamesEn = array(
+ -2 => "Media",
-1 => "Special",
0 => "",
1 => "Talk",
2 => "User",
3 => "User_talk",
- 4 => "Wikipedia",
- 5 => "Wikipedia_talk",
+ 4 => $wgMetaNamespace,
+ 5 => $wgMetaNamespace . "_talk",
6 => "Image",
- 7 => "Image_talk"
+ 7 => "Image_talk",
+ 8 => "MediaWiki",
+ 9 => "MediaWiki_talk"
);
/* private */ $wgDefaultUserOptionsEn = array(
);
/* private */ $wgSkinNamesEn = array(
- "Standard", "Nostalgia", "Cologne Blue"
+ "Standard", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
);
/* private */ $wgMathNamesEn = array(
"No preference",
"January 15, 2001",
"15 January 2001",
- "2001 January 15"
+ "2001 January 15",
+ "2001-01-15"
);
/* private */ $wgUserTogglesEn = array(
/* private */ $wgLanguageNamesEn = array(
"aa" => "Afar",
- "ab" => "Abkhazian",
+ "ab" => "Аҧсны (Apsny)",
"af" => "Afrikaans",
+ "als" => "Elsässisch", # FIXME: not a real language code; is subsumed under 'gem'
"am" => "Amharic",
"ar" => "‮العربية‬ (Araby)",
"as" => "Assamese",
"ay" => "Aymara",
- "az" => "Azerbaijani",
- "ba" => "Bashkir",
+ "az" => "Азәрбајҹан (Azerbajan)",
+ "ba" => "Башкорт (Bashkort)",
"be" => "Беларуски",
"bh" => "Bihara",
"bi" => "Bislama",
"fr" => "Français",
"fy" => "Frysk",
"ga" => "Gaelige",
+ "gd" => "Gàidhlig",
"gl" => "Galician",
"gn" => "Guarani",
"gu" => "ગુજરાતી (Gujarati)",
+ "gv" => "Gaelg",
"ha" => "Hausa",
"he" => "עברית (Ivrit)",
"hi" => "हिन्दी (Hindi)",
"hr" => "Hrvatski",
"hu" => "Magyar",
- "hy" => "Armenian",
+ "hy" => "Հայերէն (Armjan)",
"ia" => "Interlingua",
"id" => "Indonesia",
"ik" => "Inupiak",
"ja" => "日本語 (Nihongo)",
"jv" => "Javanese",
"ka" => "ქართველი (Kartuli)",
- "kk" => "Kazakh",
+ "kk" => "Қазақ (Kazakh)",
"kl" => "Greenlandic",
"km" => "Cambodian",
- "kn" => "Kannada",
+ "kn" => "ಕನ್ನಡ (Kannada)",
"ko" => "한국어 (Hangukeo)",
"ks" => "Kashmiri",
"kw" => "Kernewek",
"ln" => "Lingala",
"lo" => "Laotian",
"lt" => "Lietuvių",
- "lv" => "Latvian",
+ "lv" => "Latviešu",
"mg" => "Malagasy",
"mi" => "Maori",
- "mk" => "Macedonian",
+ "mk" => "Makedonščina",
"ml" => "Malayalam",
"mn" => "Mongolian",
"mo" => "Moldavian",
"ms" => "Bahasa Melayu",
"my" => "Burmese",
"na" => "Nauru",
+ "nah" => "Nahuatl",
+ "nds" => "Plattdüütsch",
"ne" => "नेपाली (Nepali)",
"nl" => "Nederlands",
"no" => "Norsk",
"sa" => "संस्कृत (Samskrta)",
"sd" => "Sindhi",
"sg" => "Sangro",
- "sh" => "Serbocroatian",
+ "sh" => "Српскохрватски (Srbskohrvatski)",
"si" => "Sinhalese",
"simple" => "Simple English",
"sk" => "Slovak",
"sm" => "Samoan",
"sn" => "Shona",
"so" => "Soomaali",
- "sq" => "Shqiptare",
- "sr" => "Srpski",
+ "sq" => "Shqip",
+ "sr" => "Српски (Srpski)",
"ss" => "Siswati",
"st" => "Sesotho",
"su" => "Sundanese",
"sv" => "Svenska",
"sw" => "Kiswahili",
- "ta" => "Tamil",
- "te" => "Telugu",
+ "ta" => "தமிழ் (Tamil)",
+ "te" => "తెలుగు (Telugu)",
"tg" => "Tajik",
"th" => "Thai",
"ti" => "Tigrinya",
"to" => "Tonga",
"tr" => "Türkçe",
"ts" => "Tsonga",
- "tt" => "Tatar",
+ "tt" => "Татар (Tatar)",
"tw" => "Twi",
"ug" => "Uighur",
"uk" => "Українська (Ukrayins`ka)",
"ur" => "Urdu",
- "uz" => "Uzbek",
- "vi" => "Vietnamese",
+ "uz" => "Ўзбек (Uzbek)",
+ "vi" => "Tiếng Việt",
"vo" => "Volapük",
"wo" => "Wolof",
"xh" => "isiXhosa",
"Sep", "Oct", "Nov", "Dec"
);
+/* private */ $wgMagicWordsEn = array(
+# ID CASE SYNONYMS
+ MAG_REDIRECT => array( 0, "#redirect" ),
+ MAG_NOTOC => array( 0, "__NOTOC__" ),
+ MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__" ),
+ MAG_START => array( 0, "__START__" ),
+ MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
+ MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),
+ MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}" ),
+ MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}" ),
+ MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}" ),
+ MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}" ),
+ MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}" ),
+ MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}"),
+ MAG_MSG => array( 1, "{{MSG:$1}}" ),
+ MAG_SUBST => array( 1, "{{SUBST:$1}}" ),
+ MAG_MSGNW => array( 1, "{{MSGNW:$1}}" )
+);
+
# All special pages have to be listed here: a description of ""
# will make them not show up on the "Special Pages" page, which
# is the right thing for some of them (such as the "targeted" ones).
"Longpages" => "Long articles",
"Newpages" => "Newly created articles",
"Ancientpages" => "Oldest articles",
- "Intl" => "Interlanguage links",
+# "Intl" => "Interlanguage Links",
"Allpages" => "All pages by title",
- "Ipblocklist" => "Blocked IP addresses",
- "Maintenance" => "Maintenance page",
+ "Ipblocklist" => "Blocked users/IP addresses",
+ "Maintenance" => "Maintenance page",
"Specialpages" => "",
"Contributions" => "",
"Emailuser" => "",
"Recentchangeslinked" => "",
"Movepage" => "",
"Booksources" => "External book sources",
-"Categories" => "Page categories",
+# "Categories" => "Page categories",
+ "Export" => "XML page export",
);
/* private */ $wgSysopSpecialPagesEn = array(
- "Blockip" => "Block an IP address",
+ "Blockip" => "Block a user/IP address",
"Asksql" => "Query the database",
"Undelete" => "Restore deleted pages"
);
"Debug" => "Debugging information"
);
+#-------------------------------------------------------------------
+# Default messages
+#-------------------------------------------------------------------
+# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
+# hyphen (-). If you need more characters, you may be able to change
+# the regex in MagicWord::initRegex
+
/* private */ $wgAllMessagesEn = array(
# Bits of text used by many pages:
"mainpage" => "Main Page",
"mainpagetext" => "Wiki software successfully installed.",
"about" => "About",
-"aboutwikipedia" => "About Wikipedia",
-"aboutpage" => "Wikipedia:About",
+"aboutwikipedia" => "About $wgSitename",
+"aboutpage" => "$wgMetaNamespace:About",
"help" => "Help",
-"helppage" => "Wikipedia:Help",
-"wikititlesuffix" => "Wikipedia",
+"helppage" => "$wgMetaNamespace:Help",
+"wikititlesuffix" => "$wgSitename",
"bugreports" => "Bug reports",
-"bugreportspage" => "Wikipedia:Bug_reports",
+"bugreportspage" => "$wgMetaNamespace:Bug_reports",
+"sitesupport" => "Donations",
+"sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
"faq" => "FAQ",
-"faqpage" => "Wikipedia:FAQ",
+"faqpage" => "$wgMetaNamespace:FAQ",
"edithelp" => "Editing help",
-"edithelppage" => "Wikipedia:How_does_one_edit_a_page",
+"edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
"cancel" => "Cancel",
"qbfind" => "Find",
"qbbrowse" => "Browse",
"qbedit" => "Edit",
-"qbpageoptions" => "Page options",
-"qbpageinfo" => "Page info",
-"qbmyoptions" => "My options",
+"qbpageoptions" => "This page",
+"qbpageinfo" => "Context",
+"qbmyoptions" => "My pages",
+"qbspecialpages" => "Special pages",
+"moredotdotdot" => "More...",
"mypage" => "My page",
"mytalk" => "My talk",
"currentevents" => "Current events",
"errorpagetitle" => "Error",
"returnto" => "Return to $1.",
-"fromwikipedia" => "From Wikipedia, the free encyclopedia.",
+"fromwikipedia" => "From $wgSitename, the free encyclopedia.",
"whatlinkshere" => "Pages that link here",
"help" => "Help",
"search" => "Search",
"gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
"printsubtitle" => "(From http://www.wikipedia.org)",
"protectedpage" => "Protected page",
-"administrators" => "Wikipedia:Administrators",
+"administrators" => "$wgMetaNamespace:Administrators",
"sysoptitle" => "Sysop access required",
"sysoptext" => "The action you have requested can only be
performed by users with \"sysop\" status.
"nbytes" => "$1 bytes",
"go" => "Go",
"ok" => "OK",
-"sitetitle" => "Wikipedia",
+"sitetitle" => "$wgSitename",
"sitesubtitle" => "The Free Encyclopedia",
"retrievedfrom" => "Retrieved from \"$1\"",
"newmessages" => "You have $1.",
"toc" => "Table of contents",
"showtoc" => "show",
"hidetoc" => "hide",
+"thisisdeleted" => "View or restore $1?",
+"restorelink" => "$1 deleted edits",
# Main script and global functions
#
"nosuchaction" => "No such action",
"nosuchactiontext" => "The action specified by the URL is not
-recognized by the Wikipedia software",
+recognized by the wiki",
"nosuchspecialpage" => "No such special page",
"nospecialpagetext" => "You have requested a special page that is not
-recognized by the Wikipedia software.",
+recognized by the wiki.",
# General errors
#
"readonly" => "Database locked",
"enterlockreason" => "Enter a reason for the lock, including an estimate
of when the lock will be released",
-"readonlytext" => "The Wikipedia database is currently locked to new
+"readonlytext" => "The database is currently locked to new
entries and other modifications, probably for routine database maintenance,
after which it will be back to normal.
The administrator who locked it offered this explanation:
because it slows the database down to the point that no one can use
the wiki.",
"perfdisabledsub" => "Here's a saved copy from $1:",
+"wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
+Function: $1<br>
+Query: $2
+",
+"viewsource" => "View source",
+"protectedtext" => "This page has been locked to prevent editing; there are
+a number of reasons why this may be so, please see
+[[$wgMetaNamespace:Protected page]].
+
+You can view and copy the source of this page:",
# Login and logout pages
#
"logouttitle" => "User logout",
"logouttext" => "You are now logged out.
-You can continue to use Wikipedia anonymously, or you can log in
+You can continue to use $wgSitename anonymously, or you can log in
again as the same or as a different user. Note that some pages may
continue to be displayed as if you were still logged in, until you clear
your browser cache\n",
"loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
"alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
-"areyounew" => "If you are new to Wikipedia and want to get a user account,
-enter a user name, then type and re-type a password.
-Your e-mail address is optional; if you lose your password you can request
-that it be to the address you give.<br>\n",
-
"login" => "Log in",
+"loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
"userlogin" => "Log in",
"logout" => "Log out",
"userlogout" => "Log out",
email address to them, and it also helps you if you forget your
password.",
"loginerror" => "Login error",
+"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.",
+"nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
"noname" => "You have not specified a valid user name.",
"loginsuccesstitle" => "Login successful",
-"loginsuccess" => "You are now logged in to Wikipedia as \"$1\".",
+"loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
"nosuchuser" => "There is no user by the name \"$1\".
Check your spelling, or use the form below to create a new user account.",
"wrongpassword" => "The password you entered is incorrect. Please try again.",
"mailmypassword" => "Mail me a new password",
-"passwordremindertitle" => "Password reminder from Wikipedia",
+"passwordremindertitle" => "Password reminder from $wgSitename",
"passwordremindertext" => "Someone (probably you, from IP address $1)
-requested that we send you a new Wikipedia login password.
+requested that we send you a new $wgSitename login password.
The password for user \"$2\" is now \"$3\".
You should log in and change your password now.",
"noemail" => "There is no e-mail address recorded for user \"$1\".",
"blockedtitle" => "User is blocked",
"blockedtext" => "Your user name or IP address has been blocked by $1.
The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
-[[Wikipedia:administrators|administrators]] to discuss the block.",
+[[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
+
+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]].
+
+Your IP address is $3. Please include this address in any queries you make.
+
+==Note to AOL users==
+Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused.
+
+If this happens to you, please email an administrator, using an AOL email address. Be sure to include the IP address given above.
+",
"whitelistedittitle" => "Login required to edit",
"whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
"whitelistreadtitle" => "Login required to read",
"newarticletext" =>
"You've followed a link to a page that doesn't exist yet.
To create the page, start typing in the box below
-(see the [[Wikipedia:Help|help page]] for more info).
+(see the [[$wgMetaNamespace:Help|help page]] for more info).
If you are here by mistake, just click your browser's '''back''' button.",
"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.'' ",
"noarticletext" => "(There is currently no text in this page)",
revision of this page.
If you save it, any changes made since this revision will be lost.</strong>\n",
"yourdiff" => "Differences",
-"copyrightwarning" => "Please note that all contributions to Wikipedia are
+# FIXME: This is inappropriate for third-party use!
+"copyrightwarning" => "Please note that all contributions to $wgSitename are
considered to be released under the GNU Free Documentation License
(see $1 for details).
If you don't want your writing to be edited mercilessly and redistributed
the text into a text file and save it for later.",
"protectedpagewarning" => "WARNING: This page has been locked so that only
users with sysop privileges can edit it. Be sure you are following the
-<a href='/wiki/Wikipedia:Protected_page_guidelines'>protected page
+<a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
guidelines</a>.",
# History pages
# Search results
#
"searchresults" => "Search results",
-"searchhelppage" => "Wikipedia:Searching",
-"searchingwikipedia" => "Searching Wikipedia",
-"searchresulttext" => "For more information about searching Wikipedia, see $1.",
+"searchhelppage" => "$wgMetaNamespace:Searching",
+"searchingwikipedia" => "Searching $wgSitename",
+"searchresulttext" => "For more information about searching $wgSitename, see $1.",
"searchquery" => "For query \"$1\"",
"badquery" => "Badly formed search query",
"badquerytext" => "We could not process your query.
Search in namespaces :<br>
$1<br>
$2 List redirects Search for $3 $9",
+"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>
+
+<!-- SiteSearch Google -->
+<FORM method=GET action=\"http://www.google.com/search\">
+<TABLE bgcolor=\"#FFFFFF\"><tr><td>
+<A HREF=\"http://www.google.com/\">
+<IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
+border=\"0\" ALT=\"Google\"></A>
+</td>
+<td>
+<INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
+<INPUT type=submit name=btnG VALUE=\"Google Search\">
+<font size=-1>
+<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>
+<input type='hidden' name='ie' value='$2'>
+<input type='hidden' name='oe' value='$2'>
+</font>
+</td></tr></TABLE>
+</FORM>
+<!-- SiteSearch Google -->",
"blanknamespace" => "(Main)",
# Preferences page
"prefslogintext" => "You are logged in as \"$1\".
Your internal ID number is $2.
-See [[Wikipedia:User preferences help]] for help deciphering the options.",
+See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
"prefsreset" => "Preferences have been reset from storage.",
"qbsettings" => "Quickbar settings",
"changepassword" => "Change password",
#
"changes" => "changes",
"recentchanges" => "Recent changes",
-"recentchangestext" => "Track the most recent changes to Wikipedia on this page.
-[[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
-Please have a look at these pages: [[wikipedia:FAQ|Wikipedia FAQ]],
-[[Wikipedia:Policies and guidelines|Wikipedia policy]]
-(especially [[wikipedia:Naming conventions|naming conventions]],
-[[wikipedia:Neutral point of view|neutral point of view]]),
-and [[wikipedia:Most common Wikipedia faux pas|most common Wikipedia faux pas]].
-
-If you want to see Wikipedia succeed, it's very important that you don't add
-material restricted by others' [[wikipedia:Copyrights|copyrights]].
-The legal liability could really hurt the project, so please don't do it.
-See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta discussion].",
+"recentchangestext" => "Track the most recent changes to the wiki on this page.",
"rcloaderr" => "Loading recent changes",
"rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
"rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
"rclistfrom" => "Show new changes starting from $1",
# "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
# "rclinks" => "Show last $1 changes in last $2 days.",
-"rclinks" => "Show last $1 changes in last $2 days; $3 minor edits",
+"showhideminor" => "$1 minor edits",
+"rclinks" => "Show last $1 changes in last $2 days; $3",
"rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
"rcliu" => "; $1 edits from logged in users",
"diff" => "diff",
"uploadfile" => "Upload images, sounds, documents etc.",
"uploaderror" => "Upload error",
"uploadtext" => "<strong>STOP!</strong> Before you upload here,
-make sure to read and follow Wikipedia's <a href=\"" .
-wfLocalUrlE( "Wikipedia:Image_use_policy" ) . "\">image use policy</a>.
+make sure to read and follow the <a href=\"" .
+wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
+<p>If a file with the name you are specifying already
+exists on the wiki, it'll be replaced without warning.
+So unless you mean to update a file, it's a good idea
+to first check if such a file exists.
<p>To view or search previously uploaded images,
go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
"\">list of uploaded images</a>.
Uploads and deletions are logged on the <a href=\"" .
-wfLocalUrlE( "Wikipedia:Upload_log" ) . "\">upload log</a>.
+wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
<p>Use the form below to upload new image files for use in
illustrating your articles.
On most browsers, you will see a \"Browse...\" button, which will
To include the image in an article, use a link in the form
<b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
or <b>[[media:file.ogg]]</b> for sounds.
-<p>Please note that as with Wikipedia pages, others may edit or
+<p>Please note that as with wiki pages, others may edit or
delete your uploads if they think it serves the encyclopedia, and
you may be blocked from uploading if you abuse the system.",
+
"uploadlog" => "upload log",
"uploadlogpage" => "Upload_log",
"uploadlogpagetext" => "Below is a list of the most recent file uploads.
",
"filename" => "Filename",
"filedesc" => "Summary",
+"filestatus" => "Copyright status",
+"filesource" => "Source",
"affirmation" => "I affirm that the copyright holder of this file
agrees to license it under the terms of the $1.",
-"copyrightpage" => "Wikipedia:Copyrights",
-"copyrightpagename" => "Wikipedia copyright",
+"copyrightpage" => "$wgMetaNamespace:Copyrights",
+"copyrightpagename" => "$wgSitename copyright",
"uploadedfiles" => "Uploaded files",
"noaffirmation" => "You must affirm that your upload does not violate
any copyrights.",
"sitestats" => "Site statistics",
"userstats" => "User statistics",
"sitestatstext" => "There are <b>$1</b> total pages in the database.
-This includes \"talk\" pages, pages about Wikipedia, minimal \"stub\"
+This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
pages, redirects, and others that probably don't qualify as articles.
Excluding those, there are <b>$2</b> pages that are probably legitimate
articles.<p>
"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 ;-)",
"maintenancebacklink" => "Back to Maintenance Page",
"disambiguations" => "Disambiguation pages",
-"disambiguationspage" => "Wikipedia:Links_to_disambiguating_pages",
+"disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
"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.",
"doubleredirects" => "Double Redirects",
"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.",
a direct URL, and so may still be listed here despite being
in active use.",
"booksources" => "Book sources",
+# FIXME: Other sites, of course, may have affiliate relations with the booksellers list
"booksourcetext" => "Below is a list of links to other sites that
sell new and used books, and may also have further information
about books you are looking for.
-Wikipedia is not affiliated with any of these businesses, and
+$wgSitename is not affiliated with any of these businesses, and
this list should not be construed as an endorsement.",
"alphaindexline" => "$1 to $2",
"couldntremove" => "Couldn't remove item '$1'...",
"iteminvalidname" => "Problem with item '$1', invalid name...",
"wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
-
+"wlshowlast" => "Show last $1 hours $2 days $3",
# Delete/protect/revert
#
or image along with all of its history from the database.
Please confirm that you intend to do this, that you understand the
consequences, and that you are doing this in accordance with
-[[Wikipedia:Policy]].",
+[[$wgMetaNamespace:Policy]].",
"confirmcheck" => "Yes, I really want to delete this.",
"actioncomplete" => "Action complete",
"deletedtext" => "\"$1\" has been deleted.
# only shown if there is an edit comment
"editcomment" => "The edit comment was: \"<i>$1</i>\".",
"revertpage" => "Reverted to last edit by $1",
+"protectlogpage" => "Protection_log",
+"protectlogtext" => "Below is a list of page locks/unlocks.
+See [[$wgMetaNamespace:Protected page]] for more information.",
+"protectedarticle" => "protected [[$1]]",
+"unprotectedarticle" => "unprotected [[$1]]",
# Undelete
"undelete" => "Restore deleted page",
"undeletebtn" => "Restore!",
"undeletedarticle" => "restored \"$1\"",
"undeletedtext" => "The article [[$1]] has been successfully restored.
-See [[Wikipedia:Deletion_log]] for a record of recent deletions and restorations.",
+See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
# Contributions
#
# Block/unblock IP
#
-"blockip" => "Block IP address",
+"blockip" => "Block user",
"blockiptext" => "Use the form below to block write access
-from a specific IP address.
+from a specific IP address or username.
This should be done only only to prevent vandalism, and in
-accordance with [[Wikipedia:Policy|Wikipedia policy]].
+accordance with [[$wgMetaNamespace:Policy|policy]].
Fill in a specific reason below (for example, citing particular
pages that were vandalized).",
-"ipaddress" => "IP Address",
+"ipaddress" => "IP Address/username",
"ipbreason" => "Reason",
-"ipbsubmit" => "Block this address",
-"badipaddress" => "The IP address is badly formed.",
+"ipbsubmit" => "Block this user",
+"badipaddress" => "No user exists by that name",
"noblockreason" => "You must supply a reason for the block.",
"blockipsuccesssub" => "Block succeeded",
-"blockipsuccesstext" => "The IP address \"$1\" has been blocked.
+"blockipsuccesstext" => "\"$1\" has been blocked.
<br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
-"unblockip" => "Unblock IP address",
+"unblockip" => "Unblock user",
"unblockiptext" => "Use the form below to restore write access
-to a previously blocked IP address.",
+to a previously blocked IP address or username.",
"ipusubmit" => "Unblock this address",
-"ipusuccess" => "IP address \"$1\" unblocked",
-"ipblocklist" => "List of blocked IP addresses",
+"ipusuccess" => "\"$1\" unblocked",
+"ipblocklist" => "List of blocked IP addresses and usernames",
"blocklistline" => "$1, $2 blocked $3",
"blocklink" => "block",
"unblocklink" => "unblock",
"contribslink" => "contribs",
+"autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
+"blocklogpage" => "Block_log",
+"blocklogentry" => 'blocked "$1"',
+"blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
+blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
+the list of currently operational bans and blocks.",
+"unblocklogentry" => 'unblocked "$1"',
# Developer tools
#
"locknoconfirm" => "You did not check the confirmation box.",
"lockdbsuccesssub" => "Database lock succeeded",
"unlockdbsuccesssub" => "Database lock removed",
-"lockdbsuccesstext" => "The Wikipedia database has been locked.
+"lockdbsuccesstext" => "The database has been locked.
<br>Remember to remove the lock after your maintenance is complete.",
-"unlockdbsuccesstext" => "The Wikipedia database has been unlocked.",
+"unlockdbsuccesstext" => "The database has been unlocked.",
# SQL query
#
"asksql" => "SQL query",
"asksqltext" => "Use the form below to make a direct query of the
-Wikipedia database.
+database.
Use single quotes ('like this') to delimit string literals.
This can often add considerable load to the server, so please use
this function sparingly.",
"sqlislogged" => "Please note that all queries are logged.",
"sqlquery" => "Enter query",
"querybtn" => "Submit query",
-"selectonly" => "Queries other than \"SELECT\" are restricted to
-Wikipedia developers.",
+"selectonly" => "Only read-only queries are allowed.",
"querysuccessful" => "Query successful",
# Move page
"talkpagemoved" => "The corresponding talk page was also moved.",
"talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
+"export" => "Export pages",
+"exporttext" => "You can export the text and editing history of a particular
+page or set of pages wrapped in some XML; this can then be imported into another
+wiki running MediaWiki software, transformed, or just kept for your private
+amusement.",
+"exportcuronly" => "Include only the current revision, not the full history",
+
+# Namespace 8 related
+
+"allmessages" => "All_messages",
+"allmessagestext" => "This is a list of all messages available in the MediaWiki: namespace"
);
+#--------------------------------------------------------------------------
+# Internationalisation code
+#--------------------------------------------------------------------------
+
class Language {
function getDefaultUserOptions () {
global $wgMonthNamesEn;
return $wgMonthNamesEn[$key-1];
}
-
- function getMonthRegex()
- {
- global $wgMonthNamesEn;
- return implode( "|", $wgMonthNamesEn );
- }
function getMonthAbbreviation( $key )
{
function getMessage( $key )
{
global $wgAllMessagesEn;
- $message = $wgAllMessagesEn[$key];
- if ( $message{0} == ":" ) {
- # Get message from the database
- $message = substr( $message, 1 );
- $title = Title::newFromText( $message );
- $dbKey = $title->getDBkey();
- $ns = $title->getNamespace();
- $sql = "SELECT cur_text FROM cur WHERE cur_namespace=$ns AND cur_title='$dbKey'";
- $res = wfQuery( $sql, $fname );
- if( ( $s = wfFetchObject( $res ) ) and ( $s->cur_text != "" ) ) {
- $message = $s->cur_text;
- } else {
- # Similar behaviour on fail to ordinary missing messages
- $message = "<$message>";
- }
- wfFreeResult( $res );
- }
- return $message;
+ return $wgAllMessagesEn[$key];
}
+ function getAllMessages()
+ {
+ global $wgAllMessagesEn;
+ return $wgAllMessagesEn;
+ }
+
function iconv( $in, $out, $string ) {
# For most languages, this is a wrapper for iconv
return iconv( $in, $out, $string );
}
}
- function replaceDates( $text )
- {
- global $wgUser, $wgInputEncoding, $wgUseDynamicDates;
-
- # Feature can be disabled
- if ( !$wgUseDynamicDates ) {
- return;
- }
-
- # Setup
-
- $datePreference = $wgUser->getOption( 'date' );
-
- static $monthNames = "", $rxDM, $rxMD, $rxY, $rxDMY, $rxYDM, $rxMDY, $rxYMD;
- if ( $monthNames == "" ) {
- $monthNames = $this->getMonthRegex();
-
- # Attempt at UTF-8 support, untested at the moment
- if ( $wgInputEncoding == 'UTF-8' ) {
- $regexTrail = '(?![a-z])/iu';
- } else {
- $regexTrail = '(?![a-z])/i';
- }
+ # For right-to-left language support
+ function isRTL() { return false; }
- # Partial regular expressions
- $prxDM = '\[\[(\d{1,2})[ _](' . $monthNames . ')]]';
- $prxMD = '\[\[(' . $monthNames . ')[ _](\d{1,2})]]';
- $prxY = '\[\[(\d{1,4}([ _]BC|))]]';
-
- # Real regular expressions
- $rxDMY = "/{$prxDM} *,? *{$prxY}{$regexTrail}";
- $rxYDM = "/{$prxY} *,? *{$prxDM}{$regexTrail}";
- $rxMDY = "/{$prxMD} *,? *{$prxY}{$regexTrail}";
- $rxYMD = "/{$prxY} *,? *{$prxMD}{$regexTrail}";
- $rxDM = "/{$prxDM}{$regexTrail}";
- $rxMD = "/{$prxMD}{$regexTrail}";
- $rxY = "/{$prxY}{$regexTrail}";
- }
-
- # Do replacements
- # TODO: month capitalisation?
- if ( $datePreference == 0 ) {
- # no preference
- $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
- $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
- $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
- $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
- $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
- } else if ( $datePreference == 1 ) {
- # MDY preferred
- $text = preg_replace( $rxDMY, '[[$2 $1]], [[$3]]', $text);
- $text = preg_replace( $rxYDM, '[[$4 $3]], [[$1]]', $text);
- $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
- $text = preg_replace( $rxYMD, '[[$3 $4]], [[$1]]', $text);
- $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
- } else if ( $datePreference == 2 ) {
- # DMY preferred
- $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
- $text = preg_replace( $rxYDM, '[[$4 $3|$3 $4]] [[$1]]', $text);
- $text = preg_replace( $rxMDY, '[[$1 $2|$2 $1]] [[$3]]', $text);
- $text = preg_replace( $rxYMD, '[[$3 $4|$4 $3]] [[$1]]', $text);
- $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
- $text = preg_replace ( $rxMD, '[[$1 $2|$2 $1]]', $text);
- } else if ( $datePreference == 3 ) {
- # YMD preferred
- $text = preg_replace( $rxDMY, '[[$3]] [[$2 $1]]', $text);
- $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
- $text = preg_replace( $rxMDY, '[[$3]] [[$1 $2]]', $text);
- $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
- $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
- }
- return $text;
+ function getMagicWords()
+ {
+ global $wgMagicWordsEn;
+ return $wgMagicWordsEn;
}
- # For right-to-left language support
- function isRTL() { return false; }
+ # Fill a MagicWord object with data from here
+ function getMagic( &$mw )
+ {
+ $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
+ $rawEntry = $raw[$mw->mId];
+ $mw->mCaseSensitive = $rawEntry[0];
+ $mw->mSynonyms = array_slice( $rawEntry, 1 );
+ }
}
-global $IP;
-@include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
+@include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
?>