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