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