Undelete bug partially fixed; Sysop ability to block users; various code formatting...
[lhc/web/wiklou.git] / languages / Language.php
1 <?
2
3 #--------------------------------------------------------------------------
4 # Constants
5 #--------------------------------------------------------------------------
6
7 # Namespaces
8 define("NS_SPECIAL", -1);
9 define("NS_MAIN", 0);
10 define("NS_TALK", 1);
11 define("NS_USER", 2);
12 define("NS_USER_TALK", 3);
13 define("NS_WP", 4);
14 define("NS_WP_TALK", 5);
15 define("NS_IMAGE", 6);
16 define("NS_IMAGE_TALK", 7);
17
18 # Magic words
19 define("MAG_REDIRECT", 0);
20 define("MAG_NOTOC", 1);
21 define("MAG_START", 2);
22 define("MAG_CURRENTMONTH", 3);
23 define("MAG_CURRENTMONTHNAME", 4);
24 define("MAG_CURRENTDAY", 5);
25 define("MAG_CURRENTDAYNAME", 6);
26 define("MAG_CURRENTYEAR", 7);
27 define("MAG_CURRENTTIME", 8);
28 define("MAG_NUMBEROFARTICLES", 9);
29 define("MAG_CURRENTMONTHNAMEGEN", 10);
30
31 #--------------------------------------------------------------------------
32 # Language-specific text
33 #--------------------------------------------------------------------------
34
35 # NOTE: To turn off "Current Events" in the sidebar,
36 # set "currentevents" => "-"
37
38 # The names of the namespaces can be set here, but the numbers
39 # are magical, so don't change or move them! The Namespace class
40 # encapsulates some of the magic-ness.
41 #
42 /* private */ $wgNamespaceNamesEn = array(
43 -1 => "Special",
44 0 => "",
45 1 => "Talk",
46 2 => "User",
47 3 => "User_talk",
48 4 => "Wikipedia",
49 5 => "Wikipedia_talk",
50 6 => "Image",
51 7 => "Image_talk"
52 );
53
54 /* private */ $wgDefaultUserOptionsEn = array(
55 "quickbar" => 1, "underline" => 1, "hover" => 1,
56 "cols" => 80, "rows" => 25, "searchlimit" => 20,
57 "contextlines" => 5, "contextchars" => 50,
58 "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
59 "highlightbroken" => 1, "stubthreshold" => 0,
60 "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
61 "date" => 0
62 );
63
64 /* private */ $wgQuickbarSettingsEn = array(
65 "None", "Fixed left", "Fixed right", "Floating left"
66 );
67
68 /* private */ $wgSkinNamesEn = array(
69 "Standard", "Nostalgia", "Cologne Blue"
70 );
71
72 /* private */ $wgMathNamesEn = array(
73 "Always render PNG",
74 "HTML if very simple or else PNG",
75 "HTML if possible or else PNG",
76 "Leave it as TeX (for text browsers)",
77 "Recommended for modern browsers"
78 );
79
80 /* private */ $wgDateFormatsEn = array(
81 "No preference",
82 "January 15, 2001",
83 "15 January 2001",
84 "2001 January 15"
85 );
86
87 /* private */ $wgUserTogglesEn = array(
88 "hover" => "Show hoverbox over wiki links",
89 "underline" => "Underline links",
90 "highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like
91 this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
92 "justify" => "Justify paragraphs",
93 "hideminor" => "Hide minor edits in recent changes",
94 "usenewrc" => "Enhanced recent changes (not for all browsers)",
95 "numberheadings" => "Auto-number headings",
96 "editondblclick" => "Edit pages on double click (JavaScript)",
97 "editsection"=>"Enable section editing via [edit] links",
98 "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
99 "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
100 "rememberpassword" => "Remember password across sessions",
101 "editwidth" => "Edit box has full width",
102 "watchdefault" => "Add pages you edit to your watchlist",
103 "minordefault" => "Mark all edits minor by default",
104 "previewontop" => "Show preview before edit box and not after it",
105 "nocache" => "Disable page caching"
106 );
107
108 /* private */ $wgBookstoreListEn = array(
109 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
110 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
111 "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
112 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
113 );
114
115 /* private */ $wgLanguageNamesEn = array(
116 "aa" => "Afar",
117 "ab" => "Abkhazian",
118 "af" => "Afrikaans",
119 "am" => "Amharic",
120 "ar" => "&#8238;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;&#8236; (Araby)",
121 "as" => "Assamese",
122 "ay" => "Aymara",
123 "az" => "Azerbaijani",
124 "ba" => "Bashkir",
125 "be" => "&#1041;&#1077;&#1083;&#1072;&#1088;&#1091;&#1089;&#1082;&#1080;",
126 "bh" => "Bihara",
127 "bi" => "Bislama",
128 "bn" => "Bengali",
129 "bo" => "Tibetan",
130 "br" => "Brezhoneg",
131 "bs" => "Bosnian",
132 "ca" => "Catal&#224;",
133 "ch" => "Chamoru",
134 "co" => "Corsican",
135 "cs" => "&#268;esk&#225;",
136 "cy" => "Cymraeg",
137 "da" => "Dansk", # Note two different subdomains.
138 "dk" => "Dansk", # 'da' is correct for the language.
139 "de" => "Deutsch",
140 "dz" => "Bhutani",
141 "el" => "&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940; (Ellenika)",
142 "en" => "English",
143 "eo" => "Esperanto",
144 "es" => "Espa&#241;ol",
145 "et" => "Eesti",
146 "eu" => "Euskara",
147 "fa" => "&#8238;&#1601;&#1585;&#1587;&#1609;&#8236; (Farsi)",
148 "fi" => "Suomi",
149 "fj" => "Fijian",
150 "fo" => "Faeroese",
151 "fr" => "Fran&#231;ais",
152 "fy" => "Frysk",
153 "ga" => "Gaelige",
154 "gl" => "Galician",
155 "gn" => "Guarani",
156 "gu" => "&#2711;&#2753;&#2716;&#2736;&#2750;&#2724;&#2752; (Gujarati)",
157 "ha" => "Hausa",
158 "he" => "&#1506;&#1489;&#1512;&#1497;&#1514; (Ivrit)",
159 "hi" => "&#2361;&#2367;&#2344;&#2381;&#2342;&#2368; (Hindi)",
160 "hr" => "Hrvatski",
161 "hu" => "Magyar",
162 "hy" => "Armenian",
163 "ia" => "Interlingua",
164 "id" => "Indonesia",
165 "ik" => "Inupiak",
166 "is" => "&#205;slenska",
167 "it" => "Italiano",
168 "iu" => "Inuktitut",
169 "ja" => "&#26085;&#26412;&#35486; (Nihongo)",
170 "jv" => "Javanese",
171 "ka" => "&#4325;&#4304;&#4320;&#4311;&#4309;&#4308;&#4314;&#4312; (Kartuli)",
172 "kk" => "Kazakh",
173 "kl" => "Greenlandic",
174 "km" => "Cambodian",
175 "kn" => "Kannada",
176 "ko" => "&#54620;&#44397;&#50612; (Hangukeo)",
177 "ks" => "Kashmiri",
178 "kw" => "Kernewek",
179 "ky" => "Kirghiz",
180 "la" => "Latina",
181 "ln" => "Lingala",
182 "lo" => "Laotian",
183 "lt" => "Lietuvi&#371;",
184 "lv" => "Latvian",
185 "mg" => "Malagasy",
186 "mi" => "Maori",
187 "mk" => "Macedonian",
188 "ml" => "Malayalam",
189 "mn" => "Mongolian",
190 "mo" => "Moldavian",
191 "mr" => "Marathi",
192 "ms" => "Bahasa Melayu",
193 "my" => "Burmese",
194 "na" => "Nauru",
195 "ne" => "&#2344;&#2375;&#2346;&#2366;&#2354;&#2368; (Nepali)",
196 "nl" => "Nederlands",
197 "no" => "Norsk",
198 "oc" => "Occitan",
199 "om" => "Oromo",
200 "or" => "Oriya",
201 "pa" => "Punjabi",
202 "pl" => "Polski",
203 "ps" => "Pashto",
204 "pt" => "Portugu&#234;s",
205 "qu" => "Quechua",
206 "rm" => "Rhaeto-Romance",
207 "rn" => "Kirundi",
208 "ro" => "Rom&#226;n&#259;",
209 "ru" => "&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; (Russkij)",
210 "rw" => "Kinyarwanda",
211 "sa" => "&#2360;&#2306;&#2360;&#2381;&#2325;&#2371;&#2340; (Samskrta)",
212 "sd" => "Sindhi",
213 "sg" => "Sangro",
214 "sh" => "Serbocroatian",
215 "si" => "Sinhalese",
216 "simple" => "Simple English",
217 "sk" => "Slovak",
218 "sl" => "Slovensko",
219 "sm" => "Samoan",
220 "sn" => "Shona",
221 "so" => "Soomaali",
222 "sq" => "Shqiptare",
223 "sr" => "Srpski",
224 "ss" => "Siswati",
225 "st" => "Sesotho",
226 "su" => "Sundanese",
227 "sv" => "Svenska",
228 "sw" => "Kiswahili",
229 "ta" => "Tamil",
230 "te" => "Telugu",
231 "tg" => "Tajik",
232 "th" => "Thai",
233 "ti" => "Tigrinya",
234 "tk" => "Turkmen",
235 "tl" => "Tagalog",
236 "tn" => "Setswana",
237 "to" => "Tonga",
238 "tr" => "T&#252;rk&#231;e",
239 "ts" => "Tsonga",
240 "tt" => "Tatar",
241 "tw" => "Twi",
242 "ug" => "Uighur",
243 "uk" => "&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072; (Ukrayins`ka)",
244 "ur" => "Urdu",
245 "uz" => "Uzbek",
246 "vi" => "Vietnamese",
247 "vo" => "Volap&#252;k",
248 "wo" => "Wolof",
249 "xh" => "isiXhosa",
250 "yi" => "Yiddish",
251 "yo" => "Yoruba",
252 "za" => "Zhuang",
253 "zh" => "&#20013;&#25991; (Zhongwen)",
254 "zh-cn" => "&#20013;&#25991;(&#31616;&#20307;) (Simplified Chinese)",
255 "zh-tw" => "&#20013;&#25991;(&#32321;&#20307;) (Traditional Chinese)",
256 "zu" => "Zulu"
257 );
258
259 /* private */ $wgWeekdayNamesEn = array(
260 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
261 "Friday", "Saturday"
262 );
263
264 /* private */ $wgMonthNamesEn = array(
265 "January", "February", "March", "April", "May", "June",
266 "July", "August", "September", "October", "November",
267 "December"
268 );
269
270 /* private */ $wgMonthAbbreviationsEn = array(
271 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
272 "Sep", "Oct", "Nov", "Dec"
273 );
274
275 /* private */ $wgMagicWordsEn = array(
276 # ID CASE SYNONYMS
277 MAG_REDIRECT => array( 0, "#redirect" ),
278 MAG_NOTOC => array( 0, "__NOTOC__" ),
279 MAG_START => array( 0, "__START__" ),
280 MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
281 MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),
282 MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}" ),
283 MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}" ),
284 MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}" ),
285 MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}" ),
286 MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}" ),
287 MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}"),
288 );
289
290 # All special pages have to be listed here: a description of ""
291 # will make them not show up on the "Special Pages" page, which
292 # is the right thing for some of them (such as the "targeted" ones).
293 #
294 /* private */ $wgValidSpecialPagesEn = array(
295 "Userlogin" => "",
296 "Userlogout" => "",
297 "Preferences" => "Set my user preferences",
298 "Watchlist" => "My watchlist",
299 "Recentchanges" => "Recently updated pages",
300 "Upload" => "Upload image files",
301 "Imagelist" => "Image list",
302 "Listusers" => "Registered users",
303 "Statistics" => "Site statistics",
304 "Randompage" => "Random article",
305
306 "Lonelypages" => "Orphaned articles",
307 "Unusedimages" => "Orphaned images",
308 "Popularpages" => "Popular articles",
309 "Wantedpages" => "Most wanted articles",
310 "Shortpages" => "Short articles",
311 "Longpages" => "Long articles",
312 "Newpages" => "Newly created articles",
313 "Ancientpages" => "Oldest articles",
314 "Intl" => "Interlanguage links",
315 "Allpages" => "All pages by title",
316
317 "Ipblocklist" => "Blocked IP addresses",
318 "Maintenance" => "Maintenance page",
319 "Specialpages" => "",
320 "Contributions" => "",
321 "Emailuser" => "",
322 "Whatlinkshere" => "",
323 "Recentchangeslinked" => "",
324 "Movepage" => "",
325 "Booksources" => "External book sources",
326 "Categories" => "Page categories"
327 );
328
329 /* private */ $wgSysopSpecialPagesEn = array(
330 "Blockip" => "Block an IP address",
331 "Asksql" => "Query the database",
332 "Undelete" => "Restore deleted pages"
333 );
334
335 /* private */ $wgDeveloperSpecialPagesEn = array(
336 "Lockdb" => "Make database read-only",
337 "Unlockdb" => "Restore DB write access",
338 "Debug" => "Debugging information"
339 );
340
341 /* private */ $wgAllMessagesEn = array(
342
343 # Bits of text used by many pages:
344 #
345 "categories" => "Page categories",
346 "category" => "category",
347 "category_header" => "Articles in category \"$1\"",
348 "subcategories" => "Subcategories",
349
350 "linktrail" => "/^([a-z]+)(.*)\$/sD",
351 "mainpage" => "Main Page",
352 "mainpagetext" => "Wiki software successfully installed.",
353 "about" => "About",
354 "aboutwikipedia" => "About Wikipedia",
355 "aboutpage" => "Wikipedia:About",
356 "help" => "Help",
357 "helppage" => "Wikipedia:Help",
358 "wikititlesuffix" => "Wikipedia",
359 "bugreports" => "Bug reports",
360 "bugreportspage" => "Wikipedia:Bug_reports",
361 "faq" => "FAQ",
362 "faqpage" => "Wikipedia:FAQ",
363 "edithelp" => "Editing help",
364 "edithelppage" => "Wikipedia:How_does_one_edit_a_page",
365 "cancel" => "Cancel",
366 "qbfind" => "Find",
367 "qbbrowse" => "Browse",
368 "qbedit" => "Edit",
369 "qbpageoptions" => "Page options",
370 "qbpageinfo" => "Page info",
371 "qbmyoptions" => "My options",
372 "mypage" => "My page",
373 "mytalk" => "My talk",
374 "currentevents" => "Current events",
375 "errorpagetitle" => "Error",
376 "returnto" => "Return to $1.",
377 "fromwikipedia" => "From Wikipedia, the free encyclopedia.",
378 "whatlinkshere" => "Pages that link here",
379 "help" => "Help",
380 "search" => "Search",
381 "go" => "Go",
382 "history" => "Page history",
383 "printableversion" => "Printable version",
384 "editthispage" => "Edit this page",
385 "deletethispage" => "Delete this page",
386 "protectthispage" => "Protect this page",
387 "unprotectthispage" => "Unprotect this page",
388 "newpage" => "New page",
389 "talkpage" => "Discuss this page",
390 "postcomment" => "Post a comment",
391 "articlepage" => "View article",
392 "subjectpage" => "View subject", # For compatibility
393 "userpage" => "View user page",
394 "wikipediapage" => "View meta page",
395 "imagepage" => "View image page",
396 "viewtalkpage" => "View discussion",
397 "otherlanguages" => "Other languages",
398 "redirectedfrom" => "(Redirected from $1)",
399 "lastmodified" => "This page was last modified $1.",
400 "viewcount" => "This page has been accessed $1 times.",
401 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
402 "printsubtitle" => "(From http://www.wikipedia.org)",
403 "protectedpage" => "Protected page",
404 "administrators" => "Wikipedia:Administrators",
405 "sysoptitle" => "Sysop access required",
406 "sysoptext" => "The action you have requested can only be
407 performed by users with \"sysop\" status.
408 See $1.",
409 "developertitle" => "Developer access required",
410 "developertext" => "The action you have requested can only be
411 performed by users with \"developer\" status.
412 See $1.",
413 "nbytes" => "$1 bytes",
414 "go" => "Go",
415 "ok" => "OK",
416 "sitetitle" => "Wikipedia",
417 "sitesubtitle" => "The Free Encyclopedia",
418 "retrievedfrom" => "Retrieved from \"$1\"",
419 "newmessages" => "You have $1.",
420 "newmessageslink" => "new messages",
421 "editsection"=>"edit",
422 "toc" => "Table of contents",
423 "showtoc" => "show",
424 "hidetoc" => "hide",
425
426 # Main script and global functions
427 #
428 "nosuchaction" => "No such action",
429 "nosuchactiontext" => "The action specified by the URL is not
430 recognized by the Wikipedia software",
431 "nosuchspecialpage" => "No such special page",
432 "nospecialpagetext" => "You have requested a special page that is not
433 recognized by the Wikipedia software.",
434
435 # General errors
436 #
437 "error" => "Error",
438 "databaseerror" => "Database error",
439 "dberrortext" => "A database query syntax error has occurred.
440 This could be because of an illegal search query (see $5),
441 or it may indicate a bug in the software.
442 The last attempted database query was:
443 <blockquote><tt>$1</tt></blockquote>
444 from within function \"<tt>$2</tt>\".
445 MySQL returned error \"<tt>$3: $4</tt>\".",
446 "dberrortextcl" => "A database query syntax error has occurred.
447 The last attempted database query was:
448 \"$1\"
449 from within function \"$2\".
450 MySQL returned error \"$3: $4\".\n",
451 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
452 "nodb" => "Could not select database $1",
453 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
454 "readonly" => "Database locked",
455 "enterlockreason" => "Enter a reason for the lock, including an estimate
456 of when the lock will be released",
457 "readonlytext" => "The Wikipedia database is currently locked to new
458 entries and other modifications, probably for routine database maintenance,
459 after which it will be back to normal.
460 The administrator who locked it offered this explanation:
461 <p>$1",
462 "missingarticle" => "The database did not find the text of a page
463 that it should have found, named \"$1\".
464
465 <p>This is usually caused by following an outdated diff or history link to a
466 page that has been deleted.
467
468 <p>If this is not the case, you may have found a bug in the software.
469 Please report this to an administrator, making note of the URL.",
470 "internalerror" => "Internal error",
471 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
472 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
473 "filedeleteerror" => "Could not delete file \"$1\".",
474 "filenotfound" => "Could not find file \"$1\".",
475 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
476 "formerror" => "Error: could not submit form",
477 "badarticleerror" => "This action cannot be performed on this page.",
478 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
479 "badtitle" => "Bad title",
480 "badtitletext" => "The requested page title was invalid, empty, or
481 an incorrectly linked inter-language or inter-wiki title.",
482 "perfdisabled" => "Sorry! This feature has been temporarily disabled
483 because it slows the database down to the point that no one can use
484 the wiki.",
485 "perfdisabledsub" => "Here's a saved copy from $1:",
486
487 # Login and logout pages
488 #
489 "logouttitle" => "User logout",
490 "logouttext" => "You are now logged out.
491 You can continue to use Wikipedia anonymously, or you can log in
492 again as the same or as a different user. Note that some pages may
493 continue to be displayed as if you were still logged in, until you clear
494 your browser cache\n",
495
496 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
497 Don't forget to personalize your wikipedia preferences.",
498
499 "loginpagetitle" => "User login",
500 "yourname" => "Your user name",
501 "yourpassword" => "Your password",
502 "yourpasswordagain" => "Retype password",
503 "newusersonly" => " (new users only)",
504 "remembermypassword" => "Remember my password across sessions.",
505 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
506 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
507
508 "areyounew" => "If you are new to Wikipedia and want to get a user account,
509 enter a user name, then type and re-type a password.
510 Your e-mail address is optional; if you lose your password you can request
511 that it be to the address you give.<br>\n",
512
513 "login" => "Log in",
514 "userlogin" => "Log in",
515 "logout" => "Log out",
516 "userlogout" => "Log out",
517 "notloggedin" => "Not logged in",
518 "createaccount" => "Create new account",
519 "createaccountmail" => "by eMail",
520 "badretype" => "The passwords you entered do not match.",
521 "userexists" => "The user name you entered is already in use. Please choose a different name.",
522 "youremail" => "Your e-mail*",
523 "yournick" => "Your nickname (for signatures)",
524 "emailforlost" => "* Entering an email address is optional. But it enables people to
525 contact you through the website without you having to reveal your
526 email address to them, and it also helps you if you forget your
527 password.",
528 "loginerror" => "Login error",
529 "noname" => "You have not specified a valid user name.",
530 "loginsuccesstitle" => "Login successful",
531 "loginsuccess" => "You are now logged in to Wikipedia as \"$1\".",
532 "nosuchuser" => "There is no user by the name \"$1\".
533 Check your spelling, or use the form below to create a new user account.",
534 "wrongpassword" => "The password you entered is incorrect. Please try again.",
535 "mailmypassword" => "Mail me a new password",
536 "passwordremindertitle" => "Password reminder from Wikipedia",
537 "passwordremindertext" => "Someone (probably you, from IP address $1)
538 requested that we send you a new Wikipedia login password.
539 The password for user \"$2\" is now \"$3\".
540 You should log in and change your password now.",
541 "noemail" => "There is no e-mail address recorded for user \"$1\".",
542 "passwordsent" => "A new password has been sent to the e-mail address
543 registered for \"$1\".
544 Please log in again after you receive it.",
545
546 # Edit pages
547 #
548 "summary" => "Summary",
549 "subject" => "Subject/headline",
550 "minoredit" => "This is a minor edit",
551 "watchthis" => "Watch this article",
552 "savearticle" => "Save page",
553 "preview" => "Preview",
554 "showpreview" => "Show preview",
555 "blockedtitle" => "User is blocked",
556 "blockedtext" => "Your user name or IP address has been blocked by $1.
557 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
558 [[Wikipedia:administrators|administrators]] to discuss the block.",
559 "whitelistedittitle" => "Login required to edit",
560 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
561 "whitelistreadtitle" => "Login required to read",
562 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
563 "whitelistacctitle" => "You are not allowed to create an account",
564 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
565 "accmailtitle" => "Password sent.",
566 "accmailtext" => "The Password for '$1' has been sent to $2.",
567 "newarticle" => "(New)",
568 "newarticletext" =>
569 "You've followed a link to a page that doesn't exist yet.
570 To create the page, start typing in the box below
571 (see the [[Wikipedia:Help|help page]] for more info).
572 If you are here by mistake, just click your browser's '''back''' button.",
573 "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.'' ",
574 "noarticletext" => "(There is currently no text in this page)",
575 "updated" => "(Updated)",
576 "note" => "<strong>Note:</strong> ",
577 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
578 "previewconflict" => "This preview reflects the text in the upper
579 text editing area as it will appear if you choose to save.",
580 "editing" => "Editing $1",
581 "sectionedit" => " (section)",
582 "commentedit" => " (comment)",
583 "editconflict" => "Edit conflict: $1",
584 "explainconflict" => "Someone else has changed this page since you
585 started editing it.
586 The upper text area contains the page text as it currently exists.
587 Your changes are shown in the lower text area.
588 You will have to merge your changes into the existing text.
589 <b>Only</b> the text in the upper text area will be saved when you
590 press \"Save page\".\n<p>",
591 "yourtext" => "Your text",
592 "storedversion" => "Stored version",
593 "editingold" => "<strong>WARNING: You are editing an out-of-date
594 revision of this page.
595 If you save it, any changes made since this revision will be lost.</strong>\n",
596 "yourdiff" => "Differences",
597 "copyrightwarning" => "Please note that all contributions to Wikipedia are
598 considered to be released under the GNU Free Documentation License
599 (see $1 for details).
600 If you don't want your writing to be edited mercilessly and redistributed
601 at will, then don't submit it here.<br>
602 You are also promising us that you wrote this yourself, or copied it from a
603 public domain or similar free resource.
604 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
605 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
606 browsers may have problems editing pages approaching or longer than 32kb.
607 Please consider breaking the page into smaller sections.",
608 "readonlywarning" => "WARNING: The database has been locked for maintenance,
609 so you will not be able to save your edits right now. You may wish to cut-n-paste
610 the text into a text file and save it for later.",
611 "protectedpagewarning" => "WARNING: This page has been locked so that only
612 users with sysop privileges can edit it. Be sure you are following the
613 <a href='/wiki/Wikipedia:Protected_page_guidelines'>protected page
614 guidelines</a>.",
615
616 # History pages
617 #
618 "revhistory" => "Revision history",
619 "nohistory" => "There is no edit history for this page.",
620 "revnotfound" => "Revision not found",
621 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
622 Please check the URL you used to access this page.\n",
623 "loadhist" => "Loading page history",
624 "currentrev" => "Current revision",
625 "revisionasof" => "Revision as of $1",
626 "cur" => "cur",
627 "next" => "next",
628 "last" => "last",
629 "orig" => "orig",
630 "histlegend" => "Legend: (cur) = difference with current version,
631 (last) = difference with preceding version, M = minor edit",
632
633 # Diffs
634 #
635 "difference" => "(Difference between revisions)",
636 "loadingrev" => "loading revision for diff",
637 "lineno" => "Line $1:",
638 "editcurrent" => "Edit the current version of this page",
639
640 # Search results
641 #
642 "searchresults" => "Search results",
643 "searchhelppage" => "Wikipedia:Searching",
644 "searchingwikipedia" => "Searching Wikipedia",
645 "searchresulttext" => "For more information about searching Wikipedia, see $1.",
646 "searchquery" => "For query \"$1\"",
647 "badquery" => "Badly formed search query",
648 "badquerytext" => "We could not process your query.
649 This is probably because you have attempted to search for a
650 word fewer than three letters long, which is not yet supported.
651 It could also be that you have mistyped the expression, for
652 example \"fish and and scales\".
653 Please try another query.",
654 "matchtotals" => "The query \"$1\" matched $2 article titles
655 and the text of $3 articles.",
656 "nogomatch" => "No page with this exact title exists, trying full text search.",
657 "titlematches" => "Article title matches",
658 "notitlematches" => "No article title matches",
659 "textmatches" => "Article text matches",
660 "notextmatches" => "No article text matches",
661 "prevn" => "previous $1",
662 "nextn" => "next $1",
663 "viewprevnext" => "View ($1) ($2) ($3).",
664 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
665 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
666 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
667 often caused by searching for common words like \"have\" and \"from\",
668 which are not indexed, or by specifying more than one search term (only pages
669 containing all of the search terms will appear in the result).",
670 "powersearch" => "Search",
671 "powersearchtext" => "
672 Search in namespaces :<br>
673 $1<br>
674 $2 List redirects &nbsp; Search for $3 $9",
675 "blanknamespace" => "(Main)",
676
677 # Preferences page
678 #
679 "preferences" => "Preferences",
680 "prefsnologin" => "Not logged in",
681 "prefsnologintext" => "You must be <a href=\"" .
682 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
683 to set user preferences.",
684 "prefslogintext" => "You are logged in as \"$1\".
685 Your internal ID number is $2.
686
687 See [[Wikipedia:User preferences help]] for help deciphering the options.",
688 "prefsreset" => "Preferences have been reset from storage.",
689 "qbsettings" => "Quickbar settings",
690 "changepassword" => "Change password",
691 "skin" => "Skin",
692 "math" => "Rendering math",
693 "dateformat" => "Date format",
694 "math_failure" => "Failed to parse",
695 "math_unknown_error" => "unknown error",
696 "math_unknown_function" => "unknown function ",
697 "math_lexing_error" => "lexing error",
698 "math_syntax_error" => "syntax error",
699 "saveprefs" => "Save preferences",
700 "resetprefs" => "Reset preferences",
701 "oldpassword" => "Old password",
702 "newpassword" => "New password",
703 "retypenew" => "Retype new password",
704 "textboxsize" => "Textbox dimensions",
705 "rows" => "Rows",
706 "columns" => "Columns",
707 "searchresultshead" => "Search result settings",
708 "resultsperpage" => "Hits to show per page",
709 "contextlines" => "Lines to show per hit",
710 "contextchars" => "Characters of context per line",
711 "stubthreshold" => "Threshold for stub display",
712 "recentchangescount" => "Number of titles in recent changes",
713 "savedprefs" => "Your preferences have been saved.",
714 "timezonetext" => "Enter number of hours your local time differs
715 from server time (UTC).",
716 "localtime" => "Local time display",
717 "timezoneoffset" => "Offset",
718 "servertime" => "Server time is now",
719 "guesstimezone" => "Fill in from browser",
720 "emailflag" => "Disable e-mail from other users",
721 "defaultns" => "Search in these namespaces by default:",
722
723 # Recent changes
724 #
725 "changes" => "changes",
726 "recentchanges" => "Recent changes",
727 "recentchangestext" =>
728 "Track the most recent changes to Wikipedia on this page.
729 [[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
730 Please have a look at these pages: [[wikipedia:FAQ|Wikipedia FAQ]],
731 [[Wikipedia:Policies and guidelines|Wikipedia policy]]
732 (especially [[wikipedia:Naming conventions|naming conventions]],
733 [[wikipedia:Neutral point of view|neutral point of view]]),
734 and [[wikipedia:Most common Wikipedia faux pas|most common Wikipedia faux pas]].
735
736 If you want to see Wikipedia succeed, it's very important that you don't add
737 material restricted by others' [[wikipedia:Copyrights|copyrights]].
738 The legal liability could really hurt the project, so please don't do it.
739 See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta discussion].",
740 "rcloaderr" => "Loading recent changes",
741 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
742 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
743 "rclistfrom" => "Show new changes starting from $1",
744 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
745 # "rclinks" => "Show last $1 changes in last $2 days.",
746 "rclinks" => "Show last $1 changes in last $2 days; $3 minor edits",
747 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
748 "rcliu" => "; $1 edits from logged in users",
749 "diff" => "diff",
750 "hist" => "hist",
751 "hide" => "hide",
752 "show" => "show",
753 "tableform" => "table",
754 "listform" => "list",
755 "nchanges" => "$1 changes",
756 "minoreditletter" => "M",
757 "newpageletter" => "N",
758
759 # Upload
760 #
761 "upload" => "Upload file",
762 "uploadbtn" => "Upload file",
763 "uploadlink" => "Upload images",
764 "reupload" => "Re-upload",
765 "reuploaddesc" => "Return to the upload form.",
766 "uploadnologin" => "Not logged in",
767 "uploadnologintext" => "You must be <a href=\"" .
768 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
769 to upload files.",
770 "uploadfile" => "Upload images, sounds, documents etc.",
771 "uploaderror" => "Upload error",
772 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
773 make sure to read and follow Wikipedia's <a href=\"" .
774 wfLocalUrlE( "Wikipedia:Image_use_policy" ) . "\">image use policy</a>.
775 <p>To view or search previously uploaded images,
776 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
777 "\">list of uploaded images</a>.
778 Uploads and deletions are logged on the <a href=\"" .
779 wfLocalUrlE( "Wikipedia:Upload_log" ) . "\">upload log</a>.
780 <p>Use the form below to upload new image files for use in
781 illustrating your articles.
782 On most browsers, you will see a \"Browse...\" button, which will
783 bring up your operating system's standard file open dialog.
784 Choosing a file will fill the name of that file into the text
785 field next to the button.
786 You must also check the box affirming that you are not
787 violating any copyrights by uploading the file.
788 Press the \"Upload\" button to finish the upload.
789 This may take some time if you have a slow internet connection.
790 <p>The preferred formats are JPEG for photographic images, PNG
791 for drawings and other iconic images, and OGG for sounds.
792 Please name your files descriptively to avoid confusion.
793 To include the image in an article, use a link in the form
794 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
795 or <b>[[media:file.ogg]]</b> for sounds.
796 <p>Please note that as with Wikipedia pages, others may edit or
797 delete your uploads if they think it serves the encyclopedia, and
798 you may be blocked from uploading if you abuse the system.",
799 "uploadlog" => "upload log",
800 "uploadlogpage" => "Upload_log",
801 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
802 All times shown are server time (UTC).
803 <ul>
804 </ul>
805 ",
806 "filename" => "Filename",
807 "filedesc" => "Summary",
808 "affirmation" => "I affirm that the copyright holder of this file
809 agrees to license it under the terms of the $1.",
810 "copyrightpage" => "Wikipedia:Copyrights",
811 "copyrightpagename" => "Wikipedia copyright",
812 "uploadedfiles" => "Uploaded files",
813 "noaffirmation" => "You must affirm that your upload does not violate
814 any copyrights.",
815 "ignorewarning" => "Ignore warning and save file anyway.",
816 "minlength" => "Image names must be at least three letters.",
817 "badfilename" => "Image name has been changed to \"$1\".",
818 "badfiletype" => "\".$1\" is not a recommended image file format.",
819 "largefile" => "It is recommended that images not exceed 100k in size.",
820 "successfulupload" => "Successful upload",
821 "fileuploaded" => "File \"$1\" uploaded successfully.
822 Please follow this link: ($2) to the description page and fill
823 in information about the file, such as where it came from, when it was
824 created and by whom, and anything else you may know about it.",
825 "uploadwarning" => "Upload warning",
826 "savefile" => "Save file",
827 "uploadedimage" => "uploaded \"$1\"",
828
829 # Image list
830 #
831 "imagelist" => "Image list",
832 "imagelisttext" => "Below is a list of $1 images sorted $2.",
833 "getimagelist" => "fetching image list",
834 "ilshowmatch" => "Show all images with names matching",
835 "ilsubmit" => "Search",
836 "showlast" => "Show last $1 images sorted $2.",
837 "all" => "all",
838 "byname" => "by name",
839 "bydate" => "by date",
840 "bysize" => "by size",
841 "imgdelete" => "del",
842 "imgdesc" => "desc",
843 "imglegend" => "Legend: (desc) = show/edit image description.",
844 "imghistory" => "Image history",
845 "revertimg" => "rev",
846 "deleteimg" => "del",
847 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
848 this old version, (rev) = revert to this old version.
849 <br><i>Click on date to see image uploaded on that date</i>.",
850 "imagelinks" => "Image links",
851 "linkstoimage" => "The following pages link to this image:",
852 "nolinkstoimage" => "There are no pages that link to this image.",
853
854 # Statistics
855 #
856 "statistics" => "Statistics",
857 "sitestats" => "Site statistics",
858 "userstats" => "User statistics",
859 "sitestatstext" => "There are <b>$1</b> total pages in the database.
860 This includes \"talk\" pages, pages about Wikipedia, minimal \"stub\"
861 pages, redirects, and others that probably don't qualify as articles.
862 Excluding those, there are <b>$2</b> pages that are probably legitimate
863 articles.<p>
864 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
865 since the software was upgraded (July 20, 2002).
866 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
867 "userstatstext" => "There are <b>$1</b> registered users.
868 <b>$2</b> of these are administrators (see $3).",
869
870 # Maintenance Page
871 #
872 "maintenance" => "Maintenance page",
873 "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 ;-)",
874 "maintenancebacklink" => "Back to Maintenance Page",
875 "disambiguations" => "Disambiguation pages",
876 "disambiguationspage" => "Wikipedia:Links_to_disambiguating_pages",
877 "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.",
878 "doubleredirects" => "Double Redirects",
879 "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.",
880 "brokenredirects" => "Broken Redirects",
881 "brokenredirectstext" => "The following redirects link to a non-existing article.",
882 "selflinks" => "Pages with Self Links",
883 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
884 "mispeelings" => "Pages with misspellings",
885 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
886 "mispeelingspage" => "List of common misspellings",
887 "missinglanguagelinks" => "Missing Language Links",
888 "missinglanguagelinksbutton" => "Find missing language links for",
889 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
890
891
892 # Miscellaneous special pages
893 #
894 "orphans" => "Orphaned pages",
895 "lonelypages" => "Orphaned pages",
896 "unusedimages" => "Unused images",
897 "popularpages" => "Popular pages",
898 "nviews" => "$1 views",
899 "wantedpages" => "Wanted pages",
900 "nlinks" => "$1 links",
901 "allpages" => "All pages",
902 "randompage" => "Random page",
903 "shortpages" => "Short pages",
904 "longpages" => "Long pages",
905 "listusers" => "User list",
906 "specialpages" => "Special pages",
907 "spheading" => "Special pages for all users",
908 "sysopspheading" => "For sysop use only",
909 "developerspheading" => "For developer use only",
910 "protectpage" => "Protect page",
911 "recentchangeslinked" => "Related changes",
912 "rclsub" => "(to pages linked from \"$1\")",
913 "debug" => "Debug",
914 "newpages" => "New pages",
915 "ancientpages" => "Oldest articles",
916 "intl" => "Interlanguage links",
917 "movethispage" => "Move this page",
918 "unusedimagestext" => "<p>Please note that other web sites
919 such as the international Wikipedias may link to an image with
920 a direct URL, and so may still be listed here despite being
921 in active use.",
922 "booksources" => "Book sources",
923 "booksourcetext" => "Below is a list of links to other sites that
924 sell new and used books, and may also have further information
925 about books you are looking for.
926 Wikipedia is not affiliated with any of these businesses, and
927 this list should not be construed as an endorsement.",
928 "alphaindexline" => "$1 to $2",
929
930 # Email this user
931 #
932 "mailnologin" => "No send address",
933 "mailnologintext" => "You must be <a href=\"" .
934 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
935 and have a valid e-mail address in your <a href=\"" .
936 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
937 to send e-mail to other users.",
938 "emailuser" => "E-mail this user",
939 "emailpage" => "E-mail user",
940 "emailpagetext" => "If this user has entered a valid e-mail address in
941 his or her user preferences, the form below will send a single message.
942 The e-mail address you entered in your user preferences will appear
943 as the \"From\" address of the mail, so the recipient will be able
944 to reply.",
945 "noemailtitle" => "No e-mail address",
946 "noemailtext" => "This user has not specified a valid e-mail address,
947 or has chosen not to receive e-mail from other users.",
948 "emailfrom" => "From",
949 "emailto" => "To",
950 "emailsubject" => "Subject",
951 "emailmessage" => "Message",
952 "emailsend" => "Send",
953 "emailsent" => "E-mail sent",
954 "emailsenttext" => "Your e-mail message has been sent.",
955
956 # Watchlist
957 #
958 "watchlist" => "My watchlist",
959 "watchlistsub" => "(for user \"$1\")",
960 "nowatchlist" => "You have no items on your watchlist.",
961 "watchnologin" => "Not logged in",
962 "watchnologintext" => "You must be <a href=\"" .
963 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
964 to modify your watchlist.",
965 "addedwatch" => "Added to watchlist",
966 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
967 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
968 Future changes to this page and its associated Talk page will be listed there,
969 and the page will appear <b>bolded</b> in the <a href=\"" .
970 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
971 make it easier to pick out.</p>
972
973 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
974 "removedwatch" => "Removed from watchlist",
975 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
976 "watchthispage" => "Watch this page",
977 "unwatchthispage" => "Stop watching",
978 "notanarticle" => "Not an article",
979 "watchnochange" => "None of your watched items were edited in the time period displayed.",
980 "watchdetails" => "($1 pages watched not counting talk pages;
981 $2 total pages edited since cutoff;
982 $3...
983 <a href='$4'>show and edit complete list</a>.)",
984 "watchmethod-recent" => "checking recent edits for watched pages",
985 "watchmethod-list" => "checking watched pages for recent edits",
986 "removechecked" => "Remove checked items from watchlist",
987 "watchlistcontains" => "Your watchlist contains $1 pages.",
988 "watcheditlist" => "Here's an alphabetical list of your
989 watched pages. Check the boxes of pages you want to remove
990 from your watchlist and click the 'remove checked' button
991 at the bottom of the screen.",
992 "removingchecked" => "Removing requested items from watchlist...",
993 "couldntremove" => "Couldn't remove item '$1'...",
994 "iteminvalidname" => "Problem with item '$1', invalid name...",
995 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
996
997
998 # Delete/protect/revert
999 #
1000 "deletepage" => "Delete page",
1001 "confirm" => "Confirm",
1002 "excontent" => "content was:",
1003 "exbeforeblank" => "content before blanking was:",
1004 "exblank" => "page was empty",
1005 "confirmdelete" => "Confirm delete",
1006 "deletesub" => "(Deleting \"$1\")",
1007 "historywarning" => "Warning: The page you are about to delete has a history: ",
1008 "confirmdeletetext" => "You are about to permanently delete a page
1009 or image along with all of its history from the database.
1010 Please confirm that you intend to do this, that you understand the
1011 consequences, and that you are doing this in accordance with
1012 [[Wikipedia:Policy]].",
1013 "confirmcheck" => "Yes, I really want to delete this.",
1014 "actioncomplete" => "Action complete",
1015 "deletedtext" => "\"$1\" has been deleted.
1016 See $2 for a record of recent deletions.",
1017 "deletedarticle" => "deleted \"$1\"",
1018 "dellogpage" => "Deletion_log",
1019 "dellogpagetext" => "Below is a list of the most recent deletions.
1020 All times shown are server time (UTC).
1021 <ul>
1022 </ul>
1023 ",
1024 "deletionlog" => "deletion log",
1025 "reverted" => "Reverted to earlier revision",
1026 "deletecomment" => "Reason for deletion",
1027 "imagereverted" => "Revert to earlier version was successful.",
1028 "rollback" => "Roll back edits",
1029 "rollbacklink" => "rollback",
1030 "rollbackfailed" => "Rollback failed",
1031 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1032 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1033 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1034
1035 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1036 # only shown if there is an edit comment
1037 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1038 "revertpage" => "Reverted to last edit by $1",
1039
1040 # Undelete
1041 "undelete" => "Restore deleted page",
1042 "undeletepage" => "View and restore deleted pages",
1043 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1044 can be restored. The archive may be periodically cleaned out.",
1045 "undeletearticle" => "Restore deleted article",
1046 "undeleterevisions" => "$1 revisions archived",
1047 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1048 If a new page with the same name has been created since the deletion, the restored
1049 revisions will appear in the prior history, and the current revision of the live page
1050 will not be automatically replaced.",
1051 "undeleterevision" => "Deleted revision as of $1",
1052 "undeletebtn" => "Restore!",
1053 "undeletedarticle" => "restored \"$1\"",
1054 "undeletedtext" => "The article [[$1]] has been successfully restored.
1055 See [[Wikipedia:Deletion_log]] for a record of recent deletions and restorations.",
1056
1057 # Contributions
1058 #
1059 "contributions" => "User contributions",
1060 "mycontris" => "My contributions",
1061 "contribsub" => "For $1",
1062 "nocontribs" => "No changes were found matching these criteria.",
1063 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1064 "uclinks" => "View the last $1 changes; view the last $2 days.",
1065 "uctop" => " (top)" ,
1066
1067 # What links here
1068 #
1069 "whatlinkshere" => "What links here",
1070 "notargettitle" => "No target",
1071 "notargettext" => "You have not specified a target page or user
1072 to perform this function on.",
1073 "linklistsub" => "(List of links)",
1074 "linkshere" => "The following pages link to here:",
1075 "nolinkshere" => "No pages link to here.",
1076 "isredirect" => "redirect page",
1077
1078 # Block/unblock IP
1079 #
1080 "blockip" => "Block user",
1081 "blockiptext" => "Use the form below to block write access
1082 from a specific IP address or username.
1083 This should be done only only to prevent vandalism, and in
1084 accordance with [[Wikipedia:Policy|Wikipedia policy]].
1085 Fill in a specific reason below (for example, citing particular
1086 pages that were vandalized).",
1087 "ipaddress" => "IP Address/username",
1088 "ipbreason" => "Reason",
1089 "ipbsubmit" => "Block this user",
1090 "badipaddress" => "No user exists by that name",
1091 "noblockreason" => "You must supply a reason for the block.",
1092 "blockipsuccesssub" => "Block succeeded",
1093 "blockipsuccesstext" => "\"$1\" has been blocked.
1094 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1095 "unblockip" => "Unblock user",
1096 "unblockiptext" => "Use the form below to restore write access
1097 to a previously blocked IP address or username.",
1098 "ipusubmit" => "Unblock this address",
1099 "ipusuccess" => "\"$1\" unblocked",
1100 "ipblocklist" => "List of blocked IP addresses and usernames",
1101 "blocklistline" => "$1, $2 blocked $3",
1102 "blocklink" => "block",
1103 "unblocklink" => "unblock",
1104 "contribslink" => "contribs",
1105 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1106
1107 # Developer tools
1108 #
1109 "lockdb" => "Lock database",
1110 "unlockdb" => "Unlock database",
1111 "lockdbtext" => "Locking the database will suspend the ability of all
1112 users to edit pages, change their preferences, edit their watchlists, and
1113 other things requiring changes in the database.
1114 Please confirm that this is what you intend to do, and that you will
1115 unlock the database when your maintenance is done.",
1116 "unlockdbtext" => "Unlocking the database will restore the ability of all
1117 users to edit pages, change their preferences, edit their watchlists, and
1118 other things requiring changes in the database.
1119 Please confirm that this is what you intend to do.",
1120 "lockconfirm" => "Yes, I really want to lock the database.",
1121 "unlockconfirm" => "Yes, I really want to unlock the database.",
1122 "lockbtn" => "Lock database",
1123 "unlockbtn" => "Unlock database",
1124 "locknoconfirm" => "You did not check the confirmation box.",
1125 "lockdbsuccesssub" => "Database lock succeeded",
1126 "unlockdbsuccesssub" => "Database lock removed",
1127 "lockdbsuccesstext" => "The Wikipedia database has been locked.
1128 <br>Remember to remove the lock after your maintenance is complete.",
1129 "unlockdbsuccesstext" => "The Wikipedia database has been unlocked.",
1130
1131 # SQL query
1132 #
1133 "asksql" => "SQL query",
1134 "asksqltext" => "Use the form below to make a direct query of the
1135 Wikipedia database.
1136 Use single quotes ('like this') to delimit string literals.
1137 This can often add considerable load to the server, so please use
1138 this function sparingly.",
1139 "sqlislogged" => "Please note that all queries are logged.",
1140 "sqlquery" => "Enter query",
1141 "querybtn" => "Submit query",
1142 "selectonly" => "Queries other than \"SELECT\" are restricted to
1143 Wikipedia developers.",
1144 "querysuccessful" => "Query successful",
1145
1146 # Move page
1147 #
1148 "movepage" => "Move page",
1149 "movepagetext" => "Using the form below will rename a page, moving all
1150 of its history to the new name.
1151 The old title will become a redirect page to the new title.
1152 Links to the old page title will not be changed; be sure to
1153 [[Special:Maintenance|check]] for double or broken redirects.
1154 You are responsible for making sure that links continue to
1155 point where they are supposed to go.
1156
1157 Note that the page will '''not''' be moved if there is already
1158 a page at the new title, unless it is empty or a redirect and has no
1159 past edit history. This means that you can rename a page back to where
1160 it was just renamed from if you make a mistake, and you cannot overwrite
1161 an existing page.
1162
1163 <b>WARNING!</b>
1164 This can be a drastic and unexpected change for a popular page;
1165 please be sure you understand the consequences of this before
1166 proceeding.",
1167 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1168 *You are moving the page across namespaces,
1169 *A non-empty talk page already exists under the new name, or
1170 *You uncheck the box below.
1171
1172 In those cases, you will have to move or merge the page manually if desired.",
1173 "movearticle" => "Move page",
1174 "movenologin" => "Not logged in",
1175 "movenologintext" => "You must be a registered user and <a href=\"" .
1176 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1177 to move a page.",
1178 "newtitle" => "To new title",
1179 "movepagebtn" => "Move page",
1180 "pagemovedsub" => "Move succeeded",
1181 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1182 "articleexists" => "A page of that name already exists, or the
1183 name you have chosen is not valid.
1184 Please choose another name.",
1185 "talkexists" => "The page itself was moved successfully, but the
1186 talk page could not be moved because one already exists at the new
1187 title. Please merge them manually.",
1188 "movedto" => "moved to",
1189 "movetalk" => "Move \"talk\" page as well, if applicable.",
1190 "talkpagemoved" => "The corresponding talk page was also moved.",
1191 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1192
1193 );
1194
1195 #--------------------------------------------------------------------------
1196 # Internationalisation code
1197 #--------------------------------------------------------------------------
1198
1199 class Language {
1200
1201 function getDefaultUserOptions () {
1202 global $wgDefaultUserOptionsEn ;
1203 return $wgDefaultUserOptionsEn ;
1204 }
1205
1206 function getBookstoreList () {
1207 global $wgBookstoreListEn ;
1208 return $wgBookstoreListEn ;
1209 }
1210
1211 function getNamespaces() {
1212 global $wgNamespaceNamesEn;
1213 return $wgNamespaceNamesEn;
1214 }
1215
1216 function getNsText( $index ) {
1217 global $wgNamespaceNamesEn;
1218 return $wgNamespaceNamesEn[$index];
1219 }
1220
1221 function getNsIndex( $text ) {
1222 global $wgNamespaceNamesEn;
1223
1224 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1225 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1226 }
1227 return false;
1228 }
1229
1230 function specialPage( $name ) {
1231 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1232 }
1233
1234 function getQuickbarSettings() {
1235 global $wgQuickbarSettingsEn;
1236 return $wgQuickbarSettingsEn;
1237 }
1238
1239 function getSkinNames() {
1240 global $wgSkinNamesEn;
1241 return $wgSkinNamesEn;
1242 }
1243
1244 function getMathNames() {
1245 global $wgMathNamesEn;
1246 return $wgMathNamesEn;
1247 }
1248
1249 function getDateFormats() {
1250 global $wgDateFormatsEn;
1251 return $wgDateFormatsEn;
1252 }
1253
1254 function getUserToggles() {
1255 global $wgUserTogglesEn;
1256 return $wgUserTogglesEn;
1257 }
1258
1259 function getLanguageNames() {
1260 global $wgLanguageNamesEn;
1261 return $wgLanguageNamesEn;
1262 }
1263
1264 function getLanguageName( $code ) {
1265 global $wgLanguageNamesEn;
1266 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1267 return "";
1268 }
1269 return $wgLanguageNamesEn[$code];
1270 }
1271
1272 function getMonthName( $key )
1273 {
1274 global $wgMonthNamesEn;
1275 return $wgMonthNamesEn[$key-1];
1276 }
1277
1278 /* by default we just return base form */
1279 function getMonthNameGen( $key )
1280 {
1281 global $wgMonthNamesEn;
1282 return $wgMonthNamesEn[$key-1];
1283 }
1284
1285 function getMonthRegex()
1286 {
1287 global $wgMonthNamesEn;
1288 return implode( "|", $wgMonthNamesEn );
1289 }
1290
1291 function getMonthAbbreviation( $key )
1292 {
1293 global $wgMonthAbbreviationsEn;
1294 return $wgMonthAbbreviationsEn[$key-1];
1295 }
1296
1297 function getWeekdayName( $key )
1298 {
1299 global $wgWeekdayNamesEn;
1300 return $wgWeekdayNamesEn[$key-1];
1301 }
1302
1303 function userAdjust( $ts )
1304 {
1305 global $wgUser, $wgLocalTZoffset;
1306
1307 $diff = $wgUser->getOption( "timecorrection" );
1308 if ( ! is_numeric( $diff ) ) {
1309 $diff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1310 }
1311 if ( 0 == $diff ) { return $ts; }
1312
1313 $t = mktime( ( (int)substr( $ts, 8, 2) ) + $diff,
1314 (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
1315 (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ),
1316 (int)substr( $ts, 0, 4 ) );
1317 return date( "YmdHis", $t );
1318 }
1319
1320 function date( $ts, $adj = false )
1321 {
1322 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1323
1324 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1325
1326 if ( $wgUseDynamicDates ) {
1327 $datePreference = $wgUser->getOption( 'date' );
1328 if ( $datePreference == 0 ) {
1329 $datePreference = $wgAmericanDates ? 1 : 2;
1330 }
1331 } else {
1332 $datePreference = $wgAmericanDates ? 1 : 2;
1333 }
1334
1335 if ( $datePreference == 1 ) {
1336 # MDY
1337 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1338 " " . (0 + substr( $ts, 6, 2 )) . ", " .
1339 substr( $ts, 0, 4 );
1340 } else if ( $datePreference == 2 ) {
1341 #DMY
1342 $d = (0 + substr( $ts, 6, 2 )) . " " .
1343 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1344 substr( $ts, 0, 4 );
1345 } else {
1346 #YMD
1347 $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1348 " " . (0 + substr( $ts, 6, 2 ));
1349 }
1350
1351 return $d;
1352 }
1353
1354 function time( $ts, $adj = false )
1355 {
1356 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1357
1358 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1359 return $t;
1360 }
1361
1362 function timeanddate( $ts, $adj = false )
1363 {
1364 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1365 }
1366
1367 function rfc1123( $ts )
1368 {
1369 return date( "D, d M Y H:i:s T", $ts );
1370 }
1371
1372 function getValidSpecialPages()
1373 {
1374 global $wgValidSpecialPagesEn;
1375 return $wgValidSpecialPagesEn;
1376 }
1377
1378 function getSysopSpecialPages()
1379 {
1380 global $wgSysopSpecialPagesEn;
1381 return $wgSysopSpecialPagesEn;
1382 }
1383
1384 function getDeveloperSpecialPages()
1385 {
1386 global $wgDeveloperSpecialPagesEn;
1387 return $wgDeveloperSpecialPagesEn;
1388 }
1389
1390 function getMessage( $key )
1391 {
1392 global $wgAllMessagesEn;
1393 return $wgAllMessagesEn[$key];
1394 }
1395
1396 function iconv( $in, $out, $string ) {
1397 # For most languages, this is a wrapper for iconv
1398 return iconv( $in, $out, $string );
1399 }
1400
1401 function ucfirst( $string ) {
1402 # For most languages, this is a wrapper for ucfirst()
1403 return ucfirst( $string );
1404 }
1405
1406 function checkTitleEncoding( $s ) {
1407 global $wgInputEncoding;
1408
1409 # Check for UTF-8 URLs; Internet Explorer produces these if you
1410 # type non-ASCII chars in the URL bar or follow unescaped links.
1411 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1412 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1413 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1414
1415 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1416 return iconv( "UTF-8", $wgInputEncoding, $s );
1417
1418 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1419 return utf8_encode( $s );
1420
1421 # Other languages can safely leave this function, or replace
1422 # it with one to detect and convert another legacy encoding.
1423 return $s;
1424 }
1425
1426 function stripForSearch( $in ) {
1427 # Some languages have special punctuation to strip out
1428 # or characters which need to be converted for MySQL's
1429 # indexing to grok it correctly. Make such changes here.
1430 return $in;
1431 }
1432
1433
1434 function setAltEncoding() {
1435 # Some languages may have an alternate char encoding option
1436 # (Esperanto X-coding, Japanese furigana conversion, etc)
1437 # If 'altencoding' is checked in user prefs, this gives a
1438 # chance to swap out the default encoding settings.
1439 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1440 }
1441
1442 function recodeForEdit( $s ) {
1443 # For some languages we'll want to explicitly specify
1444 # which characters make it into the edit box raw
1445 # or are converted in some way or another.
1446 # Note that if wgOutputEncoding is different from
1447 # wgInputEncoding, this text will be further converted
1448 # to wgOutputEncoding.
1449 global $wgInputEncoding, $wgEditEncoding;
1450 if( $wgEditEncoding == "" or
1451 $wgEditEncoding == $wgInputEncoding ) {
1452 return $s;
1453 } else {
1454 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1455 }
1456 }
1457
1458 function recodeInput( $s ) {
1459 # Take the previous into account.
1460 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1461 if($wgEditEncoding != "") {
1462 $enc = $wgEditEncoding;
1463 } else {
1464 $enc = $wgOutputEncoding;
1465 }
1466 if( $enc == $wgInputEncoding ) {
1467 return $s;
1468 } else {
1469 return $this->iconv( $enc, $wgInputEncoding, $s );
1470 }
1471 }
1472
1473 function replaceDates( $text )
1474 {
1475 global $wgUser, $wgInputEncoding, $wgUseDynamicDates;
1476
1477 # Feature can be disabled
1478 if ( !$wgUseDynamicDates ) {
1479 return;
1480 }
1481
1482 # Setup
1483
1484 $datePreference = $wgUser->getOption( 'date' );
1485
1486 static $monthNames = "", $rxDM, $rxMD, $rxY, $rxDMY, $rxYDM, $rxMDY, $rxYMD;
1487 if ( $monthNames == "" ) {
1488 $monthNames = $this->getMonthRegex();
1489
1490 # Attempt at UTF-8 support, untested at the moment
1491 if ( $wgInputEncoding == 'UTF-8' ) {
1492 $regexTrail = '(?![a-z])/iu';
1493 } else {
1494 $regexTrail = '(?![a-z])/i';
1495 }
1496
1497 # Partial regular expressions
1498 $prxDM = '\[\[(\d{1,2})[ _](' . $monthNames . ')]]';
1499 $prxMD = '\[\[(' . $monthNames . ')[ _](\d{1,2})]]';
1500 $prxY = '\[\[(\d{1,4}([ _]BC|))]]';
1501
1502 # Real regular expressions
1503 $rxDMY = "/{$prxDM} *,? *{$prxY}{$regexTrail}";
1504 $rxYDM = "/{$prxY} *,? *{$prxDM}{$regexTrail}";
1505 $rxMDY = "/{$prxMD} *,? *{$prxY}{$regexTrail}";
1506 $rxYMD = "/{$prxY} *,? *{$prxMD}{$regexTrail}";
1507 $rxDM = "/{$prxDM}{$regexTrail}";
1508 $rxMD = "/{$prxMD}{$regexTrail}";
1509 $rxY = "/{$prxY}{$regexTrail}";
1510 }
1511
1512 # Do replacements
1513 # TODO: month capitalisation?
1514 if ( $datePreference == 0 ) {
1515 # no preference
1516 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
1517 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1518 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1519 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1520 $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
1521 } else if ( $datePreference == 1 ) {
1522 # MDY preferred
1523 $text = preg_replace( $rxDMY, '[[$2 $1]], [[$3]]', $text);
1524 $text = preg_replace( $rxYDM, '[[$4 $3]], [[$1]]', $text);
1525 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1526 $text = preg_replace( $rxYMD, '[[$3 $4]], [[$1]]', $text);
1527 $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
1528 } else if ( $datePreference == 2 ) {
1529 # DMY preferred
1530 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]] [[$3]]', $text);
1531 $text = preg_replace( $rxYDM, '[[$4 $3|$3 $4]] [[$1]]', $text);
1532 $text = preg_replace( $rxMDY, '[[$1 $2|$2 $1]] [[$3]]', $text);
1533 $text = preg_replace( $rxYMD, '[[$3 $4|$4 $3]] [[$1]]', $text);
1534 $text = preg_replace ( $rxDM, '[[$2 $1|$1 $2]]', $text);
1535 $text = preg_replace ( $rxMD, '[[$1 $2|$2 $1]]', $text);
1536 } else if ( $datePreference == 3 ) {
1537 # YMD preferred
1538 $text = preg_replace( $rxDMY, '[[$3]] [[$2 $1]]', $text);
1539 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1540 $text = preg_replace( $rxMDY, '[[$3]] [[$1 $2]]', $text);
1541 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1542 $text = preg_replace ( $rxDM, '[[$2 $1]]', $text);
1543 }
1544 return $text;
1545 }
1546
1547 # For right-to-left language support
1548 function isRTL() { return false; }
1549
1550 function getMagicWords()
1551 {
1552 global $wgMagicWordsEn;
1553 return $wgMagicWordsEn;
1554 }
1555
1556 # Fill a MagicWord object with data from here
1557 function getMagic( &$mw )
1558 {
1559 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1560 $rawEntry = $raw[$mw->mId];
1561 $mw->mCaseSensitive = $rawEntry[0];
1562 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1563 }
1564 }
1565
1566 global $IP;
1567 @include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
1568
1569 ?>