Add zh-cn and zh-tw language prefixes in order to label simplified and traditional...
[lhc/web/wiklou.git] / languages / Language.php
1 <?
2
3 # NOTE: To turn off "Current Events" in the sidebar,
4 # set "currentevents" => "-"
5
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.
9 #
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"
20 );
21
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
29 );
30
31 /* private */ $wgQuickbarSettingsEn = array(
32 "None", "Fixed left", "Fixed right", "Floating left"
33 );
34
35 /* private */ $wgSkinNamesEn = array(
36 "Standard", "Nostalgia", "Cologne Blue"
37 );
38
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"
45 );
46
47 /* private */ $wgDateFormatsEn = array(
48 "No preference",
49 "January 15, 2001",
50 "15 January, 2001",
51 "2001 January 15"
52 );
53
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"
72 );
73
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"
79 );
80
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 "zh-cn" => "&#20013;&#25991;(&#31616;&#20307;) (Simplified Chinese)",
221 "zh-tw" => "&#20013;&#25991;(&#32321;&#20307;) (Traditional Chinese)",
222 "zu" => "Zulu"
223 );
224
225 /* private */ $wgWeekdayNamesEn = array(
226 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
227 "Friday", "Saturday"
228 );
229
230 /* private */ $wgMonthNamesEn = array(
231 "January", "February", "March", "April", "May", "June",
232 "July", "August", "September", "October", "November",
233 "December"
234 );
235
236 /* private */ $wgMonthAbbreviationsEn = array(
237 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
238 "Sep", "Oct", "Nov", "Dec"
239 );
240
241 # All special pages have to be listed here: a description of ""
242 # will make them not show up on the "Special Pages" page, which
243 # is the right thing for some of them (such as the "targeted" ones).
244 #
245 /* private */ $wgValidSpecialPagesEn = array(
246 "Userlogin" => "",
247 "Userlogout" => "",
248 "Preferences" => "Set my user preferences",
249 "Watchlist" => "My watchlist",
250 "Recentchanges" => "Recently updated pages",
251 "Upload" => "Upload image files",
252 "Imagelist" => "Image list",
253 "Listusers" => "Registered users",
254 "Statistics" => "Site statistics",
255 "Randompage" => "Random article",
256
257 "Lonelypages" => "Orphaned articles",
258 "Unusedimages" => "Orphaned images",
259 "Popularpages" => "Popular articles",
260 "Wantedpages" => "Most wanted articles",
261 "Shortpages" => "Short articles",
262 "Longpages" => "Long articles",
263 "Newpages" => "Newly created articles",
264 "Ancientpages" => "Oldest articles",
265 "Intl" => "Interlanguage links",
266 "Allpages" => "All pages by title",
267
268 "Ipblocklist" => "Blocked IP addresses",
269 "Maintenance" => "Maintenance page",
270 "Specialpages" => "",
271 "Contributions" => "",
272 "Emailuser" => "",
273 "Whatlinkshere" => "",
274 "Recentchangeslinked" => "",
275 "Movepage" => "",
276 "Booksources" => "External book sources"
277 );
278
279 /* private */ $wgSysopSpecialPagesEn = array(
280 "Blockip" => "Block an IP address",
281 "Asksql" => "Query the database",
282 "Undelete" => "Restore deleted pages"
283 );
284
285 /* private */ $wgDeveloperSpecialPagesEn = array(
286 "Lockdb" => "Make database read-only",
287 "Unlockdb" => "Restore DB write access",
288 "Debug" => "Debugging information"
289 );
290
291 /* private */ $wgAllMessagesEn = array(
292
293 # Bits of text used by many pages:
294 #
295 "linktrail" => "/^([a-z]+)(.*)\$/sD",
296 "mainpage" => "Main Page",
297 "mainpagetext" => "Wiki software successfully installed.",
298 "about" => "About",
299 "aboutwikipedia" => "About Wikipedia",
300 "aboutpage" => "Wikipedia:About",
301 "help" => "Help",
302 "helppage" => "Wikipedia:Help",
303 "wikititlesuffix" => "Wikipedia",
304 "bugreports" => "Bug reports",
305 "bugreportspage" => "Wikipedia:Bug_reports",
306 "faq" => "FAQ",
307 "faqpage" => "Wikipedia:FAQ",
308 "edithelp" => "Editing help",
309 "edithelppage" => "Wikipedia:How_does_one_edit_a_page",
310 "cancel" => "Cancel",
311 "qbfind" => "Find",
312 "qbbrowse" => "Browse",
313 "qbedit" => "Edit",
314 "qbpageoptions" => "Page options",
315 "qbpageinfo" => "Page info",
316 "qbmyoptions" => "My options",
317 "mypage" => "My page",
318 "mytalk" => "My talk",
319 "currentevents" => "Current events",
320 "errorpagetitle" => "Error",
321 "returnto" => "Return to $1.",
322 "fromwikipedia" => "From Wikipedia, the free encyclopedia.",
323 "whatlinkshere" => "Pages that link here",
324 "help" => "Help",
325 "search" => "Search",
326 "go" => "Go",
327 "history" => "Page history",
328 "printableversion" => "Printable version",
329 "editthispage" => "Edit this page",
330 "deletethispage" => "Delete this page",
331 "protectthispage" => "Protect this page",
332 "unprotectthispage" => "Unprotect this page",
333 "newpage" => "New page",
334 "talkpage" => "Discuss this page",
335 "articlepage" => "View article",
336 "subjectpage" => "View subject", # For compatibility
337 "userpage" => "View user page",
338 "wikipediapage" => "View meta page",
339 "imagepage" => "View image page",
340 "viewtalkpage" => "View discussion",
341 "otherlanguages" => "Other languages",
342 "redirectedfrom" => "(Redirected from $1)",
343 "lastmodified" => "This page was last modified $1.",
344 "viewcount" => "This page has been accessed $1 times.",
345 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
346 "printsubtitle" => "(From http://www.wikipedia.org)",
347 "protectedpage" => "Protected page",
348 "administrators" => "Wikipedia:Administrators",
349 "sysoptitle" => "Sysop access required",
350 "sysoptext" => "The action you have requested can only be
351 performed by users with \"sysop\" status.
352 See $1.",
353 "developertitle" => "Developer access required",
354 "developertext" => "The action you have requested can only be
355 performed by users with \"developer\" status.
356 See $1.",
357 "nbytes" => "$1 bytes",
358 "go" => "Go",
359 "ok" => "OK",
360 "sitetitle" => "Wikipedia",
361 "sitesubtitle" => "The Free Encyclopedia",
362 "retrievedfrom" => "Retrieved from \"$1\"",
363 "newmessages" => "You have $1.",
364 "newmessageslink" => "new messages",
365 "editsection"=>"edit",
366 "toc" => "Table of contents",
367
368 # Main script and global functions
369 #
370 "nosuchaction" => "No such action",
371 "nosuchactiontext" => "The action specified by the URL is not
372 recognized by the Wikipedia software",
373 "nosuchspecialpage" => "No such special page",
374 "nospecialpagetext" => "You have requested a special page that is not
375 recognized by the Wikipedia software.",
376
377 # General errors
378 #
379 "error" => "Error",
380 "databaseerror" => "Database error",
381 "dberrortext" => "A database query syntax error has occurred.
382 This could be because of an illegal search query (see $5),
383 or it may indicate a bug in the software.
384 The last attempted database query was:
385 <blockquote><tt>$1</tt></blockquote>
386 from within function \"<tt>$2</tt>\".
387 MySQL returned error \"<tt>$3: $4</tt>\".",
388 "dberrortextcl" => "A database query syntax error has occurred.
389 The last attempted database query was:
390 \"$1\"
391 from within function \"$2\".
392 MySQL returned error \"$3: $4\".\n",
393 "noconnect" => "Could not connect to DB on $1",
394 "nodb" => "Could not select database $1",
395 "readonly" => "Database locked",
396 "enterlockreason" => "Enter a reason for the lock, including an estimate
397 of when the lock will be released",
398 "readonlytext" => "The Wikipedia database is currently locked to new
399 entries and other modifications, probably for routine database maintenance,
400 after which it will be back to normal.
401 The administrator who locked it offered this explanation:
402 <p>$1",
403 "missingarticle" => "The database did not find the text of a page
404 that it should have found, named \"$1\".
405
406 <p>This is usually caused by following an outdated diff or history link to a
407 page that has been deleted.
408
409 <p>If this is not the case, you may have found a bug in the software.
410 Please report this to an administrator, making note of the URL.",
411 "internalerror" => "Internal error",
412 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
413 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
414 "filedeleteerror" => "Could not delete file \"$1\".",
415 "filenotfound" => "Could not find file \"$1\".",
416 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
417 "formerror" => "Error: could not submit form",
418 "badarticleerror" => "This action cannot be performed on this page.",
419 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
420 "badtitle" => "Bad title",
421 "badtitletext" => "The requested page title was invalid, empty, or
422 an incorrectly linked inter-language or inter-wiki title.",
423 "perfdisabled" => "Sorry! This feature has been temporarily disabled
424 because it slows the database down to the point that no one can use
425 the wiki.",
426 "perfdisabledsub" => "Here's a saved copy from $1:",
427
428 # Login and logout pages
429 #
430 "logouttitle" => "User logout",
431 "logouttext" => "You are now logged out.
432 You can continue to use Wikipedia anonymously, or you can log in
433 again as the same or as a different user.\n",
434
435 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
436 Don't forget to personalize your wikipedia preferences.",
437
438 "loginpagetitle" => "User login",
439 "yourname" => "Your user name",
440 "yourpassword" => "Your password",
441 "yourpasswordagain" => "Retype password",
442 "newusersonly" => " (new users only)",
443 "remembermypassword" => "Remember my password across sessions.",
444 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
445 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
446
447 "areyounew" => "If you are new to Wikipedia and want to get a user account,
448 enter a user name, then type and re-type a password.
449 Your e-mail address is optional; if you lose your password you can request
450 that it be to the address you give.<br>\n",
451
452 "login" => "Log in",
453 "userlogin" => "Log in",
454 "logout" => "Log out",
455 "userlogout" => "Log out",
456 "notloggedin" => "Not logged in",
457 "createaccount" => "Create new account",
458 "badretype" => "The passwords you entered do not match.",
459 "userexists" => "The user name you entered is already in use. Please choose a different name.",
460 "youremail" => "Your e-mail*",
461 "yournick" => "Your nickname (for signatures)",
462 "emailforlost" => "* Entering an email address is optional. But it enables people to
463 contact you through the website without you having to reveal your
464 email address to them, and it also helps you if you forget your
465 password.",
466 "loginerror" => "Login error",
467 "noname" => "You have not specified a valid user name.",
468 "loginsuccesstitle" => "Login successful",
469 "loginsuccess" => "You are now logged in to Wikipedia as \"$1\".",
470 "nosuchuser" => "There is no user by the name \"$1\".
471 Check your spelling, or use the form below to create a new user account.",
472 "wrongpassword" => "The password you entered is incorrect. Please try again.",
473 "mailmypassword" => "Mail me a new password",
474 "passwordremindertitle" => "Password reminder from Wikipedia",
475 "passwordremindertext" => "Someone (probably you, from IP address $1)
476 requested that we send you a new Wikipedia login password.
477 The password for user \"$2\" is now \"$3\".
478 You should log in and change your password now.",
479 "noemail" => "There is no e-mail address recorded for user \"$1\".",
480 "passwordsent" => "A new password has been sent to the e-mail address
481 registered for \"$1\".
482 Please log in again after you receive it.",
483
484 # Edit pages
485 #
486 "summary" => "Summary",
487 "minoredit" => "This is a minor edit",
488 "watchthis" => "Watch this article",
489 "savearticle" => "Save page",
490 "preview" => "Preview",
491 "showpreview" => "Show preview",
492 "blockedtitle" => "User is blocked",
493 "blockedtext" => "Your user name or IP address has been blocked by $1.
494 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
495 [[Wikipedia:administrators|administrators]] to discuss the block.",
496 "newarticle" => "(New)",
497 "newarticletext" =>
498 "You've followed a link to a page that doesn't exist yet.
499 To create the page, start typing in the box below
500 (see the [[Wikipedia:Help|help page]] for more info).
501 If you are here by mistake, just click your browser's '''back''' button.",
502 "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.'' ",
503 "noarticletext" => "(There is currently no text in this page)",
504 "updated" => "(Updated)",
505 "note" => "<strong>Note:</strong> ",
506 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
507 "previewconflict" => "This preview reflects the text in the upper
508 text editing area as it will appear if you choose to save.",
509 "editing" => "Editing $1",
510 "sectionedit" => " (section)",
511 "editconflict" => "Edit conflict: $1",
512 "explainconflict" => "Someone else has changed this page since you
513 started editing it.
514 The upper text area contains the page text as it currently exists.
515 Your changes are shown in the lower text area.
516 You will have to merge your changes into the existing text.
517 <b>Only</b> the text in the upper text area will be saved when you
518 press \"Save page\".\n<p>",
519 "yourtext" => "Your text",
520 "storedversion" => "Stored version",
521 "editingold" => "<strong>WARNING: You are editing an out-of-date
522 revision of this page.
523 If you save it, any changes made since this revision will be lost.</strong>\n",
524 "yourdiff" => "Differences",
525 "copyrightwarning" => "Please note that all contributions to Wikipedia are
526 considered to be released under the GNU Free Documentation License
527 (see $1 for details).
528 If you don't want your writing to be edited mercilessly and redistributed
529 at will, then don't submit it here.<br>
530 You are also promising us that you wrote this yourself, or copied it from a
531 public domain or similar free resource.
532 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
533 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
534 browsers may have problems editing pages approaching or longer than 32kb.
535 Please consider breaking the page into smaller sections.",
536 "readonlywarning" => "WARNING: The database has been locked for maintenance,
537 so you will not be able to save your edits right now. You may wish to cut-n-paste
538 the text into a text file and save it for later.",
539 "protectedpagewarning" => "WARNING: This page has been locked so that only
540 users with sysop privileges can edit it. Be sure you are following the
541 <a href='/wiki/Wikipedia:Protected_page_guidelines'>protected page
542 guidelines</a>.",
543
544 # History pages
545 #
546 "revhistory" => "Revision history",
547 "nohistory" => "There is no edit history for this page.",
548 "revnotfound" => "Revision not found",
549 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
550 Please check the URL you used to access this page.\n",
551 "loadhist" => "Loading page history",
552 "currentrev" => "Current revision",
553 "revisionasof" => "Revision as of $1",
554 "cur" => "cur",
555 "next" => "next",
556 "last" => "last",
557 "orig" => "orig",
558 "histlegend" => "Legend: (cur) = difference with current version,
559 (last) = difference with preceding version, M = minor edit",
560
561 # Diffs
562 #
563 "difference" => "(Difference between revisions)",
564 "loadingrev" => "loading revision for diff",
565 "lineno" => "Line $1:",
566 "editcurrent" => "Edit the current version of this page",
567
568 # Search results
569 #
570 "searchresults" => "Search results",
571 "searchhelppage" => "Wikipedia:Searching",
572 "searchingwikipedia" => "Searching Wikipedia",
573 "searchresulttext" => "For more information about searching Wikipedia, see $1.",
574 "searchquery" => "For query \"$1\"",
575 "badquery" => "Badly formed search query",
576 "badquerytext" => "We could not process your query.
577 This is probably because you have attempted to search for a
578 word fewer than three letters long, which is not yet supported.
579 It could also be that you have mistyped the expression, for
580 example \"fish and and scales\".
581 Please try another query.",
582 "matchtotals" => "The query \"$1\" matched $2 article titles
583 and the text of $3 articles.",
584 "nogomatch" => "No page with this exact title exists, trying full text search.",
585 "titlematches" => "Article title matches",
586 "notitlematches" => "No article title matches",
587 "textmatches" => "Article text matches",
588 "notextmatches" => "No article text matches",
589 "prevn" => "previous $1",
590 "nextn" => "next $1",
591 "viewprevnext" => "View ($1) ($2) ($3).",
592 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
593 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
594 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
595 often caused by searching for common words like \"have\" and \"from\",
596 which are not indexed, or by specifying more than one search term (only pages
597 containing all of the search terms will appear in the result).",
598 "powersearch" => "Search",
599 "powersearchtext" => "
600 Search in namespaces :<br>
601 $1<br>
602 $2 List redirects &nbsp; Search for $3 $9",
603
604
605 # Preferences page
606 #
607 "preferences" => "Preferences",
608 "prefsnologin" => "Not logged in",
609 "prefsnologintext" => "You must be <a href=\"" .
610 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
611 to set user preferences.",
612 "prefslogintext" => "You are logged in as \"$1\".
613 Your internal ID number is $2.",
614 "prefsreset" => "Preferences have been reset from storage.",
615 "qbsettings" => "Quickbar settings",
616 "changepassword" => "Change password",
617 "skin" => "Skin",
618 "math" => "Rendering math",
619 "dateformat" => "Date format",
620 "math_failure" => "Failed to parse",
621 "math_unknown_error" => "unknown error",
622 "math_unknown_function" => "unknown function ",
623 "math_lexing_error" => "lexing error",
624 "math_syntax_error" => "syntax error",
625 "saveprefs" => "Save preferences",
626 "resetprefs" => "Reset preferences",
627 "oldpassword" => "Old password",
628 "newpassword" => "New password",
629 "retypenew" => "Retype new password",
630 "textboxsize" => "Textbox dimensions",
631 "rows" => "Rows",
632 "columns" => "Columns",
633 "searchresultshead" => "Search result settings",
634 "resultsperpage" => "Hits to show per page",
635 "contextlines" => "Lines to show per hit",
636 "contextchars" => "Characters of context per line",
637 "stubthreshold" => "Threshold for stub display",
638 "recentchangescount" => "Number of titles in recent changes",
639 "savedprefs" => "Your preferences have been saved.",
640 "timezonetext" => "Enter number of hours your local time differs
641 from server time (UTC).",
642 "localtime" => "Local time display",
643 "timezoneoffset" => "Offset",
644 "servertime" => "Server time is now",
645 "guesstimezone" => "Fill in from browser",
646 "emailflag" => "Disable e-mail from other users",
647 "defaultns" => "Search in these namespaces by default:",
648
649 # Recent changes
650 #
651 "changes" => "changes",
652 "recentchanges" => "Recent changes",
653 "recentchangestext" => "Track the most recent changes to Wikipedia on this page.
654 [[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
655 Please have a look at these pages: [[wikipedia:FAQ|Wikipedia FAQ]],
656 [[Wikipedia:Policies and guidelines|Wikipedia policy]]
657 (especially [[wikipedia:Naming conventions|naming conventions]],
658 [[wikipedia:Neutral point of view|neutral point of view]]),
659 and [[wikipedia:Most common Wikipedia faux pas|most common Wikipedia faux pas]].
660
661 If you want to see Wikipedia succeed, it's very important that you don't add
662 material restricted by others' [[wikipedia:Copyrights|copyrights]].
663 The legal liability could really hurt the project, so please don't do it.
664 See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta discussion].",
665 "rcloaderr" => "Loading recent changes",
666 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
667 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
668 "rclistfrom" => "Show new changes starting from $1",
669 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
670 # "rclinks" => "Show last $1 changes in last $2 days.",
671 "rclinks" => "Show last $1 changes in last $2 days; $3 minor edits",
672 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
673 "rcliu" => "; $1 edits from logged in users",
674 "diff" => "diff",
675 "hist" => "hist",
676 "hide" => "hide",
677 "show" => "show",
678 "tableform" => "table",
679 "listform" => "list",
680 "nchanges" => "$1 changes",
681 "minoreditletter" => "M",
682 "newpageletter" => "N",
683
684 # Upload
685 #
686 "upload" => "Upload file",
687 "uploadbtn" => "Upload file",
688 "uploadlink" => "Upload images",
689 "reupload" => "Re-upload",
690 "reuploaddesc" => "Return to the upload form.",
691 "uploadnologin" => "Not logged in",
692 "uploadnologintext" => "You must be <a href=\"" .
693 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
694 to upload files.",
695 "uploadfile" => "Upload file",
696 "uploaderror" => "Upload error",
697 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
698 make sure to read and follow Wikipedia's <a href=\"" .
699 wfLocalUrlE( "Wikipedia:Image_use_policy" ) . "\">image use policy</a>.
700 <p>To view or search previously uploaded images,
701 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
702 "\">list of uploaded images</a>.
703 Uploads and deletions are logged on the <a href=\"" .
704 wfLocalUrlE( "Wikipedia:Upload_log" ) . "\">upload log</a>.
705 <p>Use the form below to upload new image files for use in
706 illustrating your articles.
707 On most browsers, you will see a \"Browse...\" button, which will
708 bring up your operating system's standard file open dialog.
709 Choosing a file will fill the name of that file into the text
710 field next to the button.
711 You must also check the box affirming that you are not
712 violating any copyrights by uploading the file.
713 Press the \"Upload\" button to finish the upload.
714 This may take some time if you have a slow internet connection.
715 <p>The preferred formats are JPEG for photographic images, PNG
716 for drawings and other iconic images, and OGG for sounds.
717 Please name your files descriptively to avoid confusion.
718 To include the image in an article, use a link in the form
719 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
720 or <b>[[media:file.ogg]]</b> for sounds.
721 <p>Please note that as with Wikipedia pages, others may edit or
722 delete your uploads if they think it serves the encyclopedia, and
723 you may be blocked from uploading if you abuse the system.",
724 "uploadlog" => "upload log",
725 "uploadlogpage" => "Upload_log",
726 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
727 All times shown are server time (UTC).
728 <ul>
729 </ul>
730 ",
731 "filename" => "Filename",
732 "filedesc" => "Summary",
733 "affirmation" => "I affirm that the copyright holder of this file
734 agrees to license it under the terms of the $1.",
735 "copyrightpage" => "Wikipedia:Copyrights",
736 "copyrightpagename" => "Wikipedia copyright",
737 "uploadedfiles" => "Uploaded files",
738 "noaffirmation" => "You must affirm that your upload does not violate
739 any copyrights.",
740 "ignorewarning" => "Ignore warning and save file anyway.",
741 "minlength" => "Image names must be at least three letters.",
742 "badfilename" => "Image name has been changed to \"$1\".",
743 "badfiletype" => "\".$1\" is not a recommended image file format.",
744 "largefile" => "It is recommended that images not exceed 100k in size.",
745 "successfulupload" => "Successful upload",
746 "fileuploaded" => "File \"$1\" uploaded successfully.
747 Please follow this link: ($2) to the description page and fill
748 in information about the file, such as where it came from, when it was
749 created and by whom, and anything else you may know about it.",
750 "uploadwarning" => "Upload warning",
751 "savefile" => "Save file",
752 "uploadedimage" => "uploaded \"$1\"",
753
754 # Image list
755 #
756 "imagelist" => "Image list",
757 "imagelisttext" => "Below is a list of $1 images sorted $2.",
758 "getimagelist" => "fetching image list",
759 "ilshowmatch" => "Show all images with names matching",
760 "ilsubmit" => "Search",
761 "showlast" => "Show last $1 images sorted $2.",
762 "all" => "all",
763 "byname" => "by name",
764 "bydate" => "by date",
765 "bysize" => "by size",
766 "imgdelete" => "del",
767 "imgdesc" => "desc",
768 "imglegend" => "Legend: (desc) = show/edit image description.",
769 "imghistory" => "Image history",
770 "revertimg" => "rev",
771 "deleteimg" => "del",
772 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
773 this old version, (rev) = revert to this old version.
774 <br><i>Click on date to see image uploaded on that date</i>.",
775 "imagelinks" => "Image links",
776 "linkstoimage" => "The following pages link to this image:",
777 "nolinkstoimage" => "There are no pages that link to this image.",
778
779 # Statistics
780 #
781 "statistics" => "Statistics",
782 "sitestats" => "Site statistics",
783 "userstats" => "User statistics",
784 "sitestatstext" => "There are <b>$1</b> total pages in the database.
785 This includes \"talk\" pages, pages about Wikipedia, minimal \"stub\"
786 pages, redirects, and others that probably don't qualify as articles.
787 Excluding those, there are <b>$2</b> pages that are probably legitimate
788 articles.<p>
789 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
790 since the software was upgraded (July 20, 2002).
791 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
792 "userstatstext" => "There are <b>$1</b> registered users.
793 <b>$2</b> of these are administrators (see $3).",
794
795 # Maintenance Page
796 #
797 "maintenance" => "Maintenance page",
798 "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 ;-)",
799 "maintenancebacklink" => "Back to Maintenance Page",
800 "disambiguations" => "Disambiguation pages",
801 "disambiguationspage" => "Wikipedia:Links_to_disambiguating_pages",
802 "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.",
803 "doubleredirects" => "Double Redirects",
804 "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.",
805 "brokenredirects" => "Broken Redirects",
806 "brokenredirectstext" => "The following redirects link to a non-existing article.",
807 "selflinks" => "Pages with Self Links",
808 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
809 "mispeelings" => "Pages with misspellings",
810 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
811 "mispeelingspage" => "List of common misspellings",
812 "missinglanguagelinks" => "Missing Language Links",
813 "missinglanguagelinksbutton" => "Find missing language links for",
814 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
815
816
817 # Miscellaneous special pages
818 #
819 "orphans" => "Orphaned pages",
820 "lonelypages" => "Orphaned pages",
821 "unusedimages" => "Unused images",
822 "popularpages" => "Popular pages",
823 "nviews" => "$1 views",
824 "wantedpages" => "Wanted pages",
825 "nlinks" => "$1 links",
826 "allpages" => "All pages",
827 "randompage" => "Random page",
828 "shortpages" => "Short pages",
829 "longpages" => "Long pages",
830 "listusers" => "User list",
831 "specialpages" => "Special pages",
832 "spheading" => "Special pages",
833 "sysopspheading" => "Special pages for sysop use",
834 "developerspheading" => "Special pages for developer use",
835 "protectpage" => "Protect page",
836 "recentchangeslinked" => "Related changes",
837 "rclsub" => "(to pages linked from \"$1\")",
838 "debug" => "Debug",
839 "newpages" => "New pages",
840 "ancientpages" => "Oldest articles",
841 "intl" => "Interlanguage links",
842 "movethispage" => "Move this page",
843 "unusedimagestext" => "<p>Please note that other web sites
844 such as the international Wikipedias may link to an image with
845 a direct URL, and so may still be listed here despite being
846 in active use.",
847 "booksources" => "Book sources",
848 "booksourcetext" => "Below is a list of links to other sites that
849 sell new and used books, and may also have further information
850 about books you are looking for.
851 Wikipedia is not affiliated with any of these businesses, and
852 this list should not be construed as an endorsement.",
853 "alphaindexline" => "$1 to $2",
854
855 # Email this user
856 #
857 "mailnologin" => "No send address",
858 "mailnologintext" => "You must be <a href=\"" .
859 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
860 and have a valid e-mail address in your <a href=\"" .
861 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
862 to send e-mail to other users.",
863 "emailuser" => "E-mail this user",
864 "emailpage" => "E-mail user",
865 "emailpagetext" => "If this user has entered a valid e-mail address in
866 his or her user preferences, the form below will send a single message.
867 The e-mail address you entered in your user preferences will appear
868 as the \"From\" address of the mail, so the recipient will be able
869 to reply.",
870 "noemailtitle" => "No e-mail address",
871 "noemailtext" => "This user has not specified a valid e-mail address,
872 or has chosen not to receive e-mail from other users.",
873 "emailfrom" => "From",
874 "emailto" => "To",
875 "emailsubject" => "Subject",
876 "emailmessage" => "Message",
877 "emailsend" => "Send",
878 "emailsent" => "E-mail sent",
879 "emailsenttext" => "Your e-mail message has been sent.",
880
881 # Watchlist
882 #
883 "watchlist" => "My watchlist",
884 "watchlistsub" => "(for user \"$1\")",
885 "nowatchlist" => "You have no items on your watchlist.",
886 "watchnologin" => "Not logged in",
887 "watchnologintext" => "You must be <a href=\"" .
888 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
889 to modify your watchlist.",
890 "addedwatch" => "Added to watchlist",
891 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
892 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
893 Future changes to this page and its associated Talk page will be listed there,
894 and the page will appear <b>bolded</b> in the <a href=\"" .
895 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
896 make it easier to pick out.</p>
897
898 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
899 "removedwatch" => "Removed from watchlist",
900 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
901 "watchthispage" => "Watch this page",
902 "unwatchthispage" => "Stop watching",
903 "notanarticle" => "Not an article",
904
905 # Delete/protect/revert
906 #
907 "deletepage" => "Delete page",
908 "confirm" => "Confirm",
909 "excontent" => "content was:",
910 "exbeforeblank" => "content before blanking was:",
911 "exblank" => "page was empty",
912 "confirmdelete" => "Confirm delete",
913 "deletesub" => "(Deleting \"$1\")",
914 "historywarning" => "Warning: The page you are about to delete has a history: ",
915 "confirmdeletetext" => "You are about to permanently delete a page
916 or image along with all of its history from the database.
917 Please confirm that you intend to do this, that you understand the
918 consequences, and that you are doing this in accordance with
919 [[Wikipedia:Policy]].",
920 "confirmcheck" => "Yes, I really want to delete this.",
921 "actioncomplete" => "Action complete",
922 "deletedtext" => "\"$1\" has been deleted.
923 See $2 for a record of recent deletions.",
924 "deletedarticle" => "deleted \"$1\"",
925 "dellogpage" => "Deletion_log",
926 "dellogpagetext" => "Below is a list of the most recent deletions.
927 All times shown are server time (UTC).
928 <ul>
929 </ul>
930 ",
931 "deletionlog" => "deletion log",
932 "reverted" => "Reverted to earlier revision",
933 "deletecomment" => "Reason for deletion",
934 "imagereverted" => "Revert to earlier version was successful.",
935 "rollback" => "Roll back edits",
936 "rollbacklink" => "rollback",
937 "rollbackfailed" => "Rollback failed",
938 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
939 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
940 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
941
942 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
943 # only shown if there is an edit comment
944 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
945 "revertpage" => "Reverted to last edit by $1",
946
947 # Undelete
948 "undelete" => "Restore deleted page",
949 "undeletepage" => "View and restore deleted pages",
950 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
951 can be restored. The archive may be periodically cleaned out.",
952 "undeletearticle" => "Restore deleted article",
953 "undeleterevisions" => "$1 revisions archived",
954 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
955 If a new page with the same name has been created since the deletion, the restored
956 revisions will appear in the prior history, and the current revision of the live page
957 will not be automatically replaced.",
958 "undeleterevision" => "Deleted revision as of $1",
959 "undeletebtn" => "Restore!",
960 "undeletedarticle" => "restored \"$1\"",
961 "undeletedtext" => "The article [[$1]] has been successfully restored.
962 See [[Wikipedia:Deletion_log]] for a record of recent deletions and restorations.",
963
964 # Contributions
965 #
966 "contributions" => "User contributions",
967 "mycontris" => "My contributions",
968 "contribsub" => "For $1",
969 "nocontribs" => "No changes were found matching these criteria.",
970 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
971 "uclinks" => "View the last $1 changes; view the last $2 days.",
972 "uctop" => " (top)" ,
973
974 # What links here
975 #
976 "whatlinkshere" => "What links here",
977 "notargettitle" => "No target",
978 "notargettext" => "You have not specified a target page or user
979 to perform this function on.",
980 "linklistsub" => "(List of links)",
981 "linkshere" => "The following pages link to here:",
982 "nolinkshere" => "No pages link to here.",
983 "isredirect" => "redirect page",
984
985 # Block/unblock IP
986 #
987 "blockip" => "Block IP address",
988 "blockiptext" => "Use the form below to block write access
989 from a specific IP address.
990 This should be done only only to prevent vandalism, and in
991 accordance with [[Wikipedia:Policy|Wikipedia policy]].
992 Fill in a specific reason below (for example, citing particular
993 pages that were vandalized).",
994 "ipaddress" => "IP Address",
995 "ipbreason" => "Reason",
996 "ipbsubmit" => "Block this address",
997 "badipaddress" => "The IP address is badly formed.",
998 "noblockreason" => "You must supply a reason for the block.",
999 "blockipsuccesssub" => "Block succeeded",
1000 "blockipsuccesstext" => "The IP address \"$1\" has been blocked.
1001 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1002 "unblockip" => "Unblock IP address",
1003 "unblockiptext" => "Use the form below to restore write access
1004 to a previously blocked IP address.",
1005 "ipusubmit" => "Unblock this address",
1006 "ipusuccess" => "IP address \"$1\" unblocked",
1007 "ipblocklist" => "List of blocked IP addresses",
1008 "blocklistline" => "$1, $2 blocked $3",
1009 "blocklink" => "block",
1010 "unblocklink" => "unblock",
1011 "contribslink" => "contribs",
1012
1013 # Developer tools
1014 #
1015 "lockdb" => "Lock database",
1016 "unlockdb" => "Unlock database",
1017 "lockdbtext" => "Locking the database will suspend the ability of all
1018 users to edit pages, change their preferences, edit their watchlists, and
1019 other things requiring changes in the database.
1020 Please confirm that this is what you intend to do, and that you will
1021 unlock the database when your maintenance is done.",
1022 "unlockdbtext" => "Unlocking the database will restore the ability of all
1023 users to edit pages, change their preferences, edit their watchlists, and
1024 other things requiring changes in the database.
1025 Please confirm that this is what you intend to do.",
1026 "lockconfirm" => "Yes, I really want to lock the database.",
1027 "unlockconfirm" => "Yes, I really want to unlock the database.",
1028 "lockbtn" => "Lock database",
1029 "unlockbtn" => "Unlock database",
1030 "locknoconfirm" => "You did not check the confirmation box.",
1031 "lockdbsuccesssub" => "Database lock succeeded",
1032 "unlockdbsuccesssub" => "Database lock removed",
1033 "lockdbsuccesstext" => "The Wikipedia database has been locked.
1034 <br>Remember to remove the lock after your maintenance is complete.",
1035 "unlockdbsuccesstext" => "The Wikipedia database has been unlocked.",
1036
1037 # SQL query
1038 #
1039 "asksql" => "SQL query",
1040 "asksqltext" => "Use the form below to make a direct query of the
1041 Wikipedia database.
1042 Use single quotes ('like this') to delimit string literals.
1043 This can often add considerable load to the server, so please use
1044 this function sparingly.",
1045 "sqlislogged" => "Please note that all queries are logged.",
1046 "sqlquery" => "Enter query",
1047 "querybtn" => "Submit query",
1048 "selectonly" => "Queries other than \"SELECT\" are restricted to
1049 Wikipedia developers.",
1050 "querysuccessful" => "Query successful",
1051
1052 # Move page
1053 #
1054 "movepage" => "Move page",
1055 "movepagetext" => "Using the form below will rename a page, moving all
1056 of its history to the new name.
1057 The old title will become a redirect page to the new title.
1058 Links to the old page title will not be changed; be sure to
1059 [[Special:Maintenance|check]] for double or broken redirects.
1060 You are responsible for making sure that links continue to
1061 point where they are supposed to go.
1062
1063 Note that the page will '''not''' be moved if there is already
1064 a page at the new title, unless it is empty or a redirect and has no
1065 past edit history. This means that you can rename a page back to where
1066 it was just renamed from if you make a mistake, and you cannot overwrite
1067 an existing page.
1068
1069 <b>WARNING!</b>
1070 This can be a drastic and unexpected change for a popular page;
1071 please be sure you understand the consequences of this before
1072 proceeding.",
1073 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1074 *You are moving the page across namespaces,
1075 *A non-empty talk page already exists under the new name, or
1076 *You uncheck the box below.
1077
1078 In those cases, you will have to move or merge the page manually if desired.",
1079 "movearticle" => "Move page",
1080 "movenologin" => "Not logged in",
1081 "movenologintext" => "You must be a registered user and <a href=\"" .
1082 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1083 to move a page.",
1084 "newtitle" => "To new title",
1085 "movepagebtn" => "Move page",
1086 "pagemovedsub" => "Move succeeded",
1087 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1088 "articleexists" => "A page of that name already exists, or the
1089 name you have chosen is not valid.
1090 Please choose another name.",
1091 "talkexists" => "The page itself was moved successfully, but the
1092 talk page could not be moved because one already exists at the new
1093 title. Please merge them manually.",
1094 "movedto" => "moved to",
1095 "movetalk" => "Move \"talk\" page as well, if applicable.",
1096 "talkpagemoved" => "The corresponding talk page was also moved.",
1097 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1098
1099 );
1100
1101 class Language {
1102
1103 function getDefaultUserOptions () {
1104 global $wgDefaultUserOptionsEn ;
1105 return $wgDefaultUserOptionsEn ;
1106 }
1107
1108 function getBookstoreList () {
1109 global $wgBookstoreListEn ;
1110 return $wgBookstoreListEn ;
1111 }
1112
1113 function getNamespaces() {
1114 global $wgNamespaceNamesEn;
1115 return $wgNamespaceNamesEn;
1116 }
1117
1118 function getNsText( $index ) {
1119 global $wgNamespaceNamesEn;
1120 return $wgNamespaceNamesEn[$index];
1121 }
1122
1123 function getNsIndex( $text ) {
1124 global $wgNamespaceNamesEn;
1125
1126 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1127 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1128 }
1129 return false;
1130 }
1131
1132 function specialPage( $name ) {
1133 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1134 }
1135
1136 function getQuickbarSettings() {
1137 global $wgQuickbarSettingsEn;
1138 return $wgQuickbarSettingsEn;
1139 }
1140
1141 function getSkinNames() {
1142 global $wgSkinNamesEn;
1143 return $wgSkinNamesEn;
1144 }
1145
1146 function getMathNames() {
1147 global $wgMathNamesEn;
1148 return $wgMathNamesEn;
1149 }
1150
1151 function getDateFormats() {
1152 global $wgDateFormatsEn;
1153 return $wgDateFormatsEn;
1154 }
1155
1156 function getUserToggles() {
1157 global $wgUserTogglesEn;
1158 return $wgUserTogglesEn;
1159 }
1160
1161 function getLanguageNames() {
1162 global $wgLanguageNamesEn;
1163 return $wgLanguageNamesEn;
1164 }
1165
1166 function getLanguageName( $code ) {
1167 global $wgLanguageNamesEn;
1168 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1169 return "";
1170 }
1171 return $wgLanguageNamesEn[$code];
1172 }
1173
1174 function getMonthName( $key )
1175 {
1176 global $wgMonthNamesEn;
1177 return $wgMonthNamesEn[$key-1];
1178 }
1179
1180 /* by default we just return base form */
1181 function getMonthNameGen( $key )
1182 {
1183 global $wgMonthNamesEn;
1184 return $wgMonthNamesEn[$key-1];
1185 }
1186
1187 function getMonthRegex()
1188 {
1189 global $wgMonthNamesEn;
1190 return implode( "|", $wgMonthNamesEn );
1191 }
1192
1193 function getMonthAbbreviation( $key )
1194 {
1195 global $wgMonthAbbreviationsEn;
1196 return $wgMonthAbbreviationsEn[$key-1];
1197 }
1198
1199 function getWeekdayName( $key )
1200 {
1201 global $wgWeekdayNamesEn;
1202 return $wgWeekdayNamesEn[$key-1];
1203 }
1204
1205 function userAdjust( $ts )
1206 {
1207 global $wgUser, $wgLocalTZoffset;
1208
1209 $diff = $wgUser->getOption( "timecorrection" );
1210 if ( ! is_numeric( $diff ) ) {
1211 $diff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1212 }
1213 if ( 0 == $diff ) { return $ts; }
1214
1215 $t = mktime( ( (int)substr( $ts, 8, 2) ) + $diff,
1216 (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
1217 (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ),
1218 (int)substr( $ts, 0, 4 ) );
1219 return date( "YmdHis", $t );
1220 }
1221
1222 function date( $ts, $adj = false )
1223 {
1224 global $wgAmericanDates, $wgUser;
1225
1226 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1227
1228 $datePreference = $wgUser->getOption('date');
1229 if ( $datePrefernce == 0 ) {
1230 $datePreference = $wgAmericanDates ? 1 : 2;
1231 }
1232
1233 if ( $datePreference == 1 ) {
1234 # MDY
1235 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1236 " " . (0 + substr( $ts, 6, 2 )) . ", " .
1237 substr( $ts, 0, 4 );
1238 } else if ( $datePreference == 2 ) {
1239 #DMY
1240 $d = (0 + substr( $ts, 6, 2 )) . " " .
1241 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1242 substr( $ts, 0, 4 );
1243 } else {
1244 #YMD
1245 $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1246 " " . (0 + substr( $ts, 6, 2 ));
1247 }
1248
1249 return $d;
1250 }
1251
1252 function time( $ts, $adj = false )
1253 {
1254 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1255
1256 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1257 return $t;
1258 }
1259
1260 function timeanddate( $ts, $adj = false )
1261 {
1262 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
1263 }
1264
1265 function rfc1123( $ts )
1266 {
1267 return date( "D, d M Y H:i:s T", $ts );
1268 }
1269
1270 function getValidSpecialPages()
1271 {
1272 global $wgValidSpecialPagesEn;
1273 return $wgValidSpecialPagesEn;
1274 }
1275
1276 function getSysopSpecialPages()
1277 {
1278 global $wgSysopSpecialPagesEn;
1279 return $wgSysopSpecialPagesEn;
1280 }
1281
1282 function getDeveloperSpecialPages()
1283 {
1284 global $wgDeveloperSpecialPagesEn;
1285 return $wgDeveloperSpecialPagesEn;
1286 }
1287
1288 function getMessage( $key )
1289 {
1290 global $wgAllMessagesEn;
1291 return $wgAllMessagesEn[$key];
1292 }
1293
1294 function iconv( $in, $out, $string ) {
1295 # For most languages, this is a wrapper for iconv
1296 return iconv( $in, $out, $string );
1297 }
1298
1299 function ucfirst( $string ) {
1300 # For most languages, this is a wrapper for ucfirst()
1301 return ucfirst( $string );
1302 }
1303
1304 function checkTitleEncoding( $s ) {
1305 global $wgInputEncoding;
1306
1307 # Check for UTF-8 URLs; Internet Explorer produces these if you
1308 # type non-ASCII chars in the URL bar or follow unescaped links.
1309 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1310 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1311 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1312
1313 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1314 return iconv( "UTF-8", $wgInputEncoding, $s );
1315
1316 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1317 return utf8_encode( $s );
1318
1319 # Other languages can safely leave this function, or replace
1320 # it with one to detect and convert another legacy encoding.
1321 return $s;
1322 }
1323
1324 function stripForSearch( $in ) {
1325 # Some languages have special punctuation to strip out
1326 # or characters which need to be converted for MySQL's
1327 # indexing to grok it correctly. Make such changes here.
1328 return $in;
1329 }
1330
1331
1332 function setAltEncoding() {
1333 # Some languages may have an alternate char encoding option
1334 # (Esperanto X-coding, Japanese furigana conversion, etc)
1335 # If 'altencoding' is checked in user prefs, this gives a
1336 # chance to swap out the default encoding settings.
1337 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1338 }
1339
1340 function recodeForEdit( $s ) {
1341 # For some languages we'll want to explicitly specify
1342 # which characters make it into the edit box raw
1343 # or are converted in some way or another.
1344 # Note that if wgOutputEncoding is different from
1345 # wgInputEncoding, this text will be further converted
1346 # to wgOutputEncoding.
1347 global $wgInputEncoding, $wgEditEncoding;
1348 if( $wgEditEncoding == "" or
1349 $wgEditEncoding == $wgInputEncoding ) {
1350 return $s;
1351 } else {
1352 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1353 }
1354 }
1355
1356 function recodeInput( $s ) {
1357 # Take the previous into account.
1358 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1359 if($wgEditEncoding != "") {
1360 $enc = $wgEditEncoding;
1361 } else {
1362 $enc = $wgOutputEncoding;
1363 }
1364 if( $enc == $wgInputEncoding ) {
1365 return $s;
1366 } else {
1367 return $this->iconv( $enc, $wgInputEncoding, $s );
1368 }
1369 }
1370
1371 function replaceDates( $text )
1372 {
1373 global $wgUser;
1374
1375 # Setup
1376
1377 $datePreference = $wgUser->getOption('date');
1378 static $monthNames = "", $rxDM, $rxMD, $rxY, $rxDMY, $rxYMD, $rxMDY, $rxYMD;
1379 if ( $monthNames == "" ) {
1380 $monthNames = $this->getMonthRegex();
1381 $rxDM = '\[\[(\d{1,2})[ _](' . $monthNames . ')]](?![a-z])';
1382 $rxMD = '\[\[(' . $monthNames . ')[ _](\d{1,2})]](?![a-z])';
1383 $rxY = '\[\[(\d{1,4}([ _]BC|))]](?![a-z])';
1384
1385 $rxDMY = "/{$rxDM} *, *{$rxY}/i";
1386 $rxYDM = "/{$rxY} *, *{$rxDM}/i";
1387 $rxMDY = "/{$rxMD} *, *{$rxY}/i";
1388 $rxYMD = "/{$rxY} *, *{$rxMD}/i";
1389 }
1390
1391 # Do replacements
1392 # TODO: month capitalisation?
1393 if ( $datePreference == 0 ) {
1394 # no preference
1395 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]], [[$3]]', $text);
1396 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1397 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1398 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1399 $text = preg_replace ( "/$rxDM/i", '[[$2 $1|$1 $2]]', $text);
1400 } else if ( $datePreference == 1 ) {
1401 # MDY preferred
1402 $text = preg_replace( $rxDMY, '[[$2 $1]], [[$3]]', $text);
1403 $text = preg_replace( $rxYDM, '[[$4 $3]], [[$1]]', $text);
1404 $text = preg_replace( $rxMDY, '[[$1 $2]], [[$3]]', $text);
1405 $text = preg_replace( $rxYMD, '[[$3 $4]], [[$1]]', $text);
1406 $text = preg_replace ( "/$rxDM/i", '[[$2 $1]]', $text);
1407 } else if ( $datePreference == 2 ) {
1408 # DMY preferred
1409 $text = preg_replace( $rxDMY, '[[$2 $1|$1 $2]], [[$3]]', $text);
1410 $text = preg_replace( $rxYDM, '[[$4 $3|$3 $4]], [[$1]]', $text);
1411 $text = preg_replace( $rxMDY, '[[$1 $2|$2 $1]], [[$3]]', $text);
1412 $text = preg_replace( $rxYMD, '[[$3 $4|$4 $3]], [[$1]]', $text);
1413 $text = preg_replace ( "/$rxDM/i", '[[$2 $1|$1 $2]]', $text);
1414 $text = preg_replace ( "/$rxMD/i", '[[$1 $2|$2 $1]]', $text);
1415 } else if ( $datePreference == 3 ) {
1416 # YMD preferred
1417 $text = preg_replace( $rxDMY, '[[$3]] [[$2 $1]]', $text);
1418 $text = preg_replace( $rxYDM, '[[$1]] [[$4 $3]]', $text);
1419 $text = preg_replace( $rxMDY, '[[$3]] [[$1 $2]]', $text);
1420 $text = preg_replace( $rxYMD, '[[$1]] [[$3 $4]]', $text);
1421 $text = preg_replace ( "/$rxDM/i", '[[$2 $1]]', $text);
1422 }
1423 return $text;
1424 }
1425 }
1426
1427 global $IP;
1428 @include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
1429
1430 ?>