From a05d5bad30e149b4e848c30f3fd26b3ab36f8288 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 24 Nov 2003 03:52:43 +0000 Subject: [PATCH] De-Wikipedia-ization backported from stable --- languages/Language.php | 111 +++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 59 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 4444086b90..43aa017905 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -31,6 +31,10 @@ define("MAG_NOEDITSECTION", 14); # 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", @@ -38,8 +42,8 @@ define("MAG_NOEDITSECTION", 14); 1 => "Talk", 2 => "User", 3 => "User_talk", - 4 => "Wikipedia", - 5 => "Wikipedia_talk", + 4 => $wgMetaNamespace, + 5 => $wgMetaNamespace . "_talk", 6 => "Image", 7 => "Image_talk", 8 => "MediaWiki", @@ -359,19 +363,19 @@ this (alternative: like this?).", "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", @@ -386,7 +390,7 @@ this (alternative: like this?).", "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", @@ -413,7 +417,7 @@ this (alternative: like this?).", "gnunote" => "All text is available under the terms of the GNU Free Documentation License.", "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. @@ -425,7 +429,7 @@ See $1.", "nbytes" => "$1 bytes", "go" => "Go", "ok" => "OK", -"sitetitle" => "Wikipedia", +"sitetitle" => "$wgSitename", "sitesubtitle" => "The Free Encyclopedia", "retrievedfrom" => "Retrieved from \"$1\"", "newmessages" => "You have $1.", @@ -441,10 +445,10 @@ See $1.", # "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 # @@ -468,7 +472,7 @@ MySQL returned error \"$3: $4\".\n", "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: @@ -512,7 +516,7 @@ You can view and copy the source of this page:", # "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", @@ -529,7 +533,7 @@ Don't forget to personalize your wikipedia preferences.", "loginproblem" => "There has been a problem with your login.
Try again!", "alreadyloggedin" => "User $1, you are already logged in!
\n", -"areyounew" => "If you are new to Wikipedia and want to get a user account, +"areyounew" => "If you are new to $wgSitename 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.
\n", @@ -551,17 +555,17 @@ email address to them, and it also helps you if you forget your password.", "loginerror" => "Login error", "nocookies" => "Cookies disabled", -"nocookiestext" => "Wikipedia uses cookies to log in users. You have cookies disabled. Please enable them and try again.", +"nocookiestext" => "The wiki 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\".", @@ -604,7 +608,7 @@ If this happens to you, please email an administrator, using an AOL email addres "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)", @@ -630,7 +634,8 @@ press \"Save page\".\n

", revision of this page. If you save it, any changes made since this revision will be lost.\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 @@ -646,7 +651,7 @@ so you will not be able to save your edits right now. You may wish to cut-n-past 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 -protected page +protected page guidelines.", # History pages @@ -676,9 +681,9 @@ Please check the URL you used to access this page.\n", # 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. @@ -740,7 +745,7 @@ to set user preferences.", "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", @@ -780,19 +785,7 @@ from server time (UTC).", # "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 $1 changes in last $2 days.", "rcnotefrom" => "Below are the changes since $2 (up to $1 shown).", @@ -826,17 +819,17 @@ to upload files.", "uploadfile" => "Upload images, sounds, documents etc.", "uploaderror" => "Upload error", "uploadtext" => "STOP! Before you upload here, -make sure to read and follow Wikipedia's image use policy. +make sure to read and follow the image use policy.

If a file with the name you are specifying already -exists on Wikipedia, it'll be replaced without warning. +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.

To view or search previously uploaded images, go to the list of uploaded images. Uploads and deletions are logged on the upload log. +wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log.

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 @@ -853,7 +846,7 @@ Please name your files descriptively to avoid confusion. To include the image in an article, use a link in the form [[image:file.jpg]] or [[image:file.png|alt text]] or [[media:file.ogg]] for sounds. -

Please note that as with Wikipedia pages, others may edit or +

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.", @@ -870,8 +863,8 @@ All times shown are server time (UTC). "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.", @@ -920,7 +913,7 @@ this old version, (rev) = revert to this old version. "sitestats" => "Site statistics", "userstats" => "User statistics", "sitestatstext" => "There are $1 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 $2 pages that are probably legitimate articles.

@@ -936,7 +929,7 @@ That comes to $5 average edits per page, and $6 views per edit.", "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 disambiguation page. They should link to the appropriate topic instead.
A page is treated as dismbiguation if it is linked from $1.
Links from other namespaces are not listed here.", "doubleredirects" => "Double Redirects", "doubleredirectstext" => "Attention: This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.
\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.", @@ -983,10 +976,11 @@ such as the international Wikipedias may link to an image with 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", @@ -1072,7 +1066,7 @@ at the bottom of the screen.", 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. @@ -1120,7 +1114,7 @@ will not be automatically replaced.", "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 # @@ -1149,7 +1143,7 @@ to perform this function on.", "blockiptext" => "Use the form below to block write access 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/username", @@ -1198,23 +1192,22 @@ Please confirm that this is what you intend to do.", "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.
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 -- 2.20.1