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