Deletion feature improved:
[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 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
580 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
581 often caused by searching for common words like \"have\" and \"from\",
582 which are not indexed, or by specifying more than one search term (only pages
583 containing all of the search terms will appear in the result).",
584 "powersearch" => "Search",
585 "powersearchtext" => "
586 Search in namespaces :<br>
587 $1<br>
588 $2 List redirects &nbsp; Search for $3 $9",
589
590
591 # Preferences page
592 #
593 "preferences" => "Preferences",
594 "prefsnologin" => "Not logged in",
595 "prefsnologintext" => "You must be <a href=\"" .
596 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
597 to set user preferences.",
598 "prefslogintext" => "You are logged in as \"$1\".
599 Your internal ID number is $2.",
600 "prefsreset" => "Preferences have been reset from storage.",
601 "qbsettings" => "Quickbar settings",
602 "changepassword" => "Change password",
603 "skin" => "Skin",
604 "math" => "Rendering math",
605 "math_failure" => "Failed to parse",
606 "math_unknown_error" => "unknown error",
607 "math_unknown_function" => "unknown function ",
608 "math_lexing_error" => "lexing error",
609 "math_syntax_error" => "syntax error",
610 "saveprefs" => "Save preferences",
611 "resetprefs" => "Reset preferences",
612 "oldpassword" => "Old password",
613 "newpassword" => "New password",
614 "retypenew" => "Retype new password",
615 "textboxsize" => "Textbox dimensions",
616 "rows" => "Rows",
617 "columns" => "Columns",
618 "searchresultshead" => "Search result settings",
619 "resultsperpage" => "Hits to show per page",
620 "contextlines" => "Lines to show per hit",
621 "contextchars" => "Characters of context per line",
622 "stubthreshold" => "Threshold for stub display",
623 "recentchangescount" => "Number of titles in recent changes",
624 "savedprefs" => "Your preferences have been saved.",
625 "timezonetext" => "Enter number of hours your local time differs
626 from server time (UTC).",
627 "localtime" => "Local time display",
628 "timezoneoffset" => "Offset",
629 "servertime" => "Server time is now",
630 "guesstimezone" => "Fill in from browser",
631 "emailflag" => "Disable e-mail from other users",
632
633 # Recent changes
634 #
635 "changes" => "changes",
636 "recentchanges" => "Recent changes",
637 "recentchangestext" => "Track the most recent changes to Wikipedia on this page.
638 [[Wikipedia:Welcome,_newcomers|Welcome, newcomers]]!
639 Please have a look at these pages: [[wikipedia:FAQ|Wikipedia FAQ]],
640 [[Wikipedia:Policies and guidelines|Wikipedia policy]]
641 (especially [[wikipedia:Naming conventions|naming conventions]],
642 [[wikipedia:Neutral point of view|neutral point of view]]),
643 and [[wikipedia:Most common Wikipedia faux pas|most common Wikipedia faux pas]].
644
645 If you want to see Wikipedia succeed, it's very important that you don't add
646 material restricted by others' [[wikipedia:Copyrights|copyrights]].
647 The legal liability could really hurt the project, so please don't do it.
648 See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta discussion].",
649 "rcloaderr" => "Loading recent changes",
650 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
651 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
652 "rclistfrom" => "Show new changes starting from $1",
653 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
654 "rclinks" => "Show last $1 changes in last $2 days.",
655 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
656 "diff" => "diff",
657 "hist" => "hist",
658 "hide" => "hide",
659 "show" => "show",
660 "tableform" => "table",
661 "listform" => "list",
662 "nchanges" => "$1 changes",
663 "minoreditletter" => "M",
664 "newpageletter" => "N",
665
666 # Upload
667 #
668 "upload" => "Upload file",
669 "uploadbtn" => "Upload file",
670 "uploadlink" => "Upload images",
671 "reupload" => "Re-upload",
672 "reuploaddesc" => "Return to the upload form.",
673 "uploadnologin" => "Not logged in",
674 "uploadnologintext" => "You must be <a href=\"" .
675 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
676 to upload files.",
677 "uploadfile" => "Upload file",
678 "uploaderror" => "Upload error",
679 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
680 make sure to read and follow Wikipedia's <a href=\"" .
681 wfLocalUrlE( "Wikipedia:Image_use_policy" ) . "\">image use policy</a>.
682 <p>To view or search previously uploaded images,
683 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
684 "\">list of uploaded images</a>.
685 Uploads and deletions are logged on the <a href=\"" .
686 wfLocalUrlE( "Wikipedia:Upload_log" ) . "\">upload log</a>.
687 <p>Use the form below to upload new image files for use in
688 illustrating your articles.
689 On most browsers, you will see a \"Browse...\" button, which will
690 bring up your operating system's standard file open dialog.
691 Choosing a file will fill the name of that file into the text
692 field next to the button.
693 You must also check the box affirming that you are not
694 violating any copyrights by uploading the file.
695 Press the \"Upload\" button to finish the upload.
696 This may take some time if you have a slow internet connection.
697 <p>The preferred formats are JPEG for photographic images, PNG
698 for drawings and other iconic images, and OGG for sounds.
699 Please name your files descriptively to avoid confusion.
700 To include the image in an article, use a link in the form
701 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
702 or <b>[[media:file.ogg]]</b> for sounds.
703 <p>Please note that as with Wikipedia pages, others may edit or
704 delete your uploads if they think it serves the encyclopedia, and
705 you may be blocked from uploading if you abuse the system.",
706 "uploadlog" => "upload log",
707 "uploadlogpage" => "Upload_log",
708 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
709 All times shown are server time (UTC).
710 <ul>
711 </ul>
712 ",
713 "filename" => "Filename",
714 "filedesc" => "Summary",
715 "affirmation" => "I affirm that the copyright holder of this file
716 agrees to license it under the terms of the $1.",
717 "copyrightpage" => "Wikipedia:Copyrights",
718 "copyrightpagename" => "Wikipedia copyright",
719 "uploadedfiles" => "Uploaded files",
720 "noaffirmation" => "You must affirm that your upload does not violate
721 any copyrights.",
722 "ignorewarning" => "Ignore warning and save file anyway.",
723 "minlength" => "Image names must be at least three letters.",
724 "badfilename" => "Image name has been changed to \"$1\".",
725 "badfiletype" => "\".$1\" is not a recommended image file format.",
726 "largefile" => "It is recommended that images not exceed 100k in size.",
727 "successfulupload" => "Successful upload",
728 "fileuploaded" => "File \"$1\" uploaded successfully.
729 Please follow this link: ($2) to the description page and fill
730 in information about the file, such as where it came from, when it was
731 created and by whom, and anything else you may know about it.",
732 "uploadwarning" => "Upload warning",
733 "savefile" => "Save file",
734 "uploadedimage" => "uploaded \"$1\"",
735
736 # Image list
737 #
738 "imagelist" => "Image list",
739 "imagelisttext" => "Below is a list of $1 images sorted $2.",
740 "getimagelist" => "fetching image list",
741 "ilshowmatch" => "Show all images with names matching",
742 "ilsubmit" => "Search",
743 "showlast" => "Show last $1 images sorted $2.",
744 "all" => "all",
745 "byname" => "by name",
746 "bydate" => "by date",
747 "bysize" => "by size",
748 "imgdelete" => "del",
749 "imgdesc" => "desc",
750 "imglegend" => "Legend: (desc) = show/edit image description.",
751 "imghistory" => "Image history",
752 "revertimg" => "rev",
753 "deleteimg" => "del",
754 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
755 this old version, (rev) = revert to this old version.
756 <br><i>Click on date to see image uploaded on that date</i>.",
757 "imagelinks" => "Image links",
758 "linkstoimage" => "The following pages link to this image:",
759 "nolinkstoimage" => "There are no pages that link to this image.",
760
761 # Statistics
762 #
763 "statistics" => "Statistics",
764 "sitestats" => "Site statistics",
765 "userstats" => "User statistics",
766 "sitestatstext" => "There are <b>$1</b> total pages in the database.
767 This includes \"talk\" pages, pages about Wikipedia, minimal \"stub\"
768 pages, redirects, and others that probably don't qualify as articles.
769 Excluding those, there are <b>$2</b> pages that are probably legitimate
770 articles.<p>
771 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
772 since the software was upgraded (July 20, 2002).
773 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
774 "userstatstext" => "There are <b>$1</b> registered users.
775 <b>$2</b> of these are administrators (see $3).",
776
777 # Maintenance Page
778 #
779 "maintenance" => "Maintenance page",
780 "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 ;-)",
781 "maintenancebacklink" => "Back to Maintenance Page",
782 "disambiguations" => "Disambiguation pages",
783 "disambiguationspage" => "Wikipedia:Links_to_disambiguating_pages",
784 "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.",
785 "doubleredirects" => "Double Redirects",
786 "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.",
787 "brokenredirects" => "Broken Redirects",
788 "brokenredirectstext" => "The following redirects link to a non-existing article.",
789 "selflinks" => "Pages with Self Links",
790 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
791 "mispeelings" => "Pages with misspellings",
792 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
793 "mispeelingspage" => "List of common misspellings",
794 "missinglanguagelinks" => "Missing Language Links",
795 "missinglanguagelinksbutton" => "Find missing language links for",
796 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
797
798
799 # Miscellaneous special pages
800 #
801 "orphans" => "Orphaned pages",
802 "lonelypages" => "Orphaned pages",
803 "unusedimages" => "Unused images",
804 "popularpages" => "Popular pages",
805 "nviews" => "$1 views",
806 "wantedpages" => "Wanted pages",
807 "nlinks" => "$1 links",
808 "allpages" => "All pages",
809 "randompage" => "Random page",
810 "shortpages" => "Short pages",
811 "longpages" => "Long pages",
812 "listusers" => "User list",
813 "specialpages" => "Special pages",
814 "spheading" => "Special pages",
815 "sysopspheading" => "Special pages for sysop use",
816 "developerspheading" => "Special pages for developer use",
817 "protectpage" => "Protect page",
818 "recentchangeslinked" => "Related changes",
819 "rclsub" => "(to pages linked from \"$1\")",
820 "debug" => "Debug",
821 "newpages" => "New pages",
822 "ancientpages" => "Oldest articles",
823 "intl" => "Interlanguage links",
824 "movethispage" => "Move this page",
825 "unusedimagestext" => "<p>Please note that other web sites
826 such as the international Wikipedias may link to an image with
827 a direct URL, and so may still be listed here despite being
828 in active use.",
829 "booksources" => "Book sources",
830 "booksourcetext" => "Below is a list of links to other sites that
831 sell new and used books, and may also have further information
832 about books you are looking for.
833 Wikipedia is not affiliated with any of these businesses, and
834 this list should not be construed as an endorsement.",
835 "alphaindexline" => "$1 to $2",
836
837 # Email this user
838 #
839 "mailnologin" => "No send address",
840 "mailnologintext" => "You must be <a href=\"" .
841 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
842 and have a valid e-mail address in your <a href=\"" .
843 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
844 to send e-mail to other users.",
845 "emailuser" => "E-mail this user",
846 "emailpage" => "E-mail user",
847 "emailpagetext" => "If this user has entered a valid e-mail address in
848 his or her user preferences, the form below will send a single message.
849 The e-mail address you entered in your user preferences will appear
850 as the \"From\" address of the mail, so the recipient will be able
851 to reply.",
852 "noemailtitle" => "No e-mail address",
853 "noemailtext" => "This user has not specified a valid e-mail address,
854 or has chosen not to receive e-mail from other users.",
855 "emailfrom" => "From",
856 "emailto" => "To",
857 "emailsubject" => "Subject",
858 "emailmessage" => "Message",
859 "emailsend" => "Send",
860 "emailsent" => "E-mail sent",
861 "emailsenttext" => "Your e-mail message has been sent.",
862
863 # Watchlist
864 #
865 "watchlist" => "My watchlist",
866 "watchlistsub" => "(for user \"$1\")",
867 "nowatchlist" => "You have no items on your watchlist.",
868 "watchnologin" => "Not logged in",
869 "watchnologintext" => "You must be <a href=\"" .
870 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
871 to modify your watchlist.",
872 "addedwatch" => "Added to watchlist",
873 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
874 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
875 Future changes to this page and its associated Talk page will be listed there,
876 and the page will appear <b>bolded</b> in the <a href=\"" .
877 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
878 make it easier to pick out.</p>
879
880 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
881 "removedwatch" => "Removed from watchlist",
882 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
883 "watchthispage" => "Watch this page",
884 "unwatchthispage" => "Stop watching",
885 "notanarticle" => "Not an article",
886
887 # Delete/protect/revert
888 #
889 "deletepage" => "Delete page",
890 "confirm" => "Confirm",
891 "excontent" => "content was:",
892 "exbeforeblank" => "content before blanking was:",
893 "exblank" => "page was empty",
894 "confirmdelete" => "Confirm delete",
895 "deletesub" => "(Deleting \"$1\")",
896 "historywarning" => "Warning: The page you are about to delete has a history: ",
897 "confirmdeletetext" => "You are about to permanently delete a page
898 or image along with all of its history from the database.
899 Please confirm that you intend to do this, that you understand the
900 consequences, and that you are doing this in accordance with
901 [[Wikipedia:Policy]].",
902 "confirmcheck" => "Yes, I really want to delete this.",
903 "actioncomplete" => "Action complete",
904 "deletedtext" => "\"$1\" has been deleted.
905 See $2 for a record of recent deletions.",
906 "deletedarticle" => "deleted \"$1\"",
907 "dellogpage" => "Deletion_log",
908 "dellogpagetext" => "Below is a list of the most recent deletions.
909 All times shown are server time (UTC).
910 <ul>
911 </ul>
912 ",
913 "deletionlog" => "deletion log",
914 "reverted" => "Reverted to earlier revision",
915 "deletecomment" => "Reason for deletion",
916 "imagereverted" => "Revert to earlier version was successful.",
917 "rollback" => "Roll back edits",
918 "rollbacklink" => "rollback",
919 "cantrollback" => "Can't revert edit; last contributor is only author of this article.",
920 "revertpage" => "Reverted to last edit by $1",
921
922 # Undelete
923 "undelete" => "Restore deleted page",
924 "undeletepage" => "View and restore deleted pages",
925 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
926 can be restored. The archive may be periodically cleaned out.",
927 "undeletearticle" => "Restore deleted article",
928 "undeleterevisions" => "$1 revisions archived",
929 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
930 If a new page with the same name has been created since the deletion, the restored
931 revisions will appear in the prior history, and the current revision of the live page
932 will not be automatically replaced.",
933 "undeleterevision" => "Deleted revision as of $1",
934 "undeletebtn" => "Restore!",
935 "undeletedarticle" => "restored \"$1\"",
936 "undeletedtext" => "The article [[$1]] has been successfully restored.
937 See [[Wikipedia:Deletion_log]] for a record of recent deletions and restorations.",
938
939 # Contributions
940 #
941 "contributions" => "User contributions",
942 "mycontris" => "My contributions",
943 "contribsub" => "For $1",
944 "nocontribs" => "No changes were found matching these criteria.",
945 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
946 "uclinks" => "View the last $1 changes; view the last $2 days.",
947 "uctop" => " (top)" ,
948
949 # What links here
950 #
951 "whatlinkshere" => "What links here",
952 "notargettitle" => "No target",
953 "notargettext" => "You have not specified a target page or user
954 to perform this function on.",
955 "linklistsub" => "(List of links)",
956 "linkshere" => "The following pages link to here:",
957 "nolinkshere" => "No pages link to here.",
958 "isredirect" => "redirect page",
959
960 # Block/unblock IP
961 #
962 "blockip" => "Block IP address",
963 "blockiptext" => "Use the form below to block write access
964 from a specific IP address.
965 This should be done only only to prevent vandalism, and in
966 accordance with [[Wikipedia:Policy|Wikipedia policy]].
967 Fill in a specific reason below (for example, citing particular
968 pages that were vandalized).",
969 "ipaddress" => "IP Address",
970 "ipbreason" => "Reason",
971 "ipbsubmit" => "Block this address",
972 "badipaddress" => "The IP address is badly formed.",
973 "noblockreason" => "You must supply a reason for the block.",
974 "blockipsuccesssub" => "Block succeeded",
975 "blockipsuccesstext" => "The IP address \"$1\" has been blocked.
976 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
977 "unblockip" => "Unblock IP address",
978 "unblockiptext" => "Use the form below to restore write access
979 to a previously blocked IP address.",
980 "ipusubmit" => "Unblock this address",
981 "ipusuccess" => "IP address \"$1\" unblocked",
982 "ipblocklist" => "List of blocked IP addresses",
983 "blocklistline" => "$1, $2 blocked $3",
984 "blocklink" => "block",
985 "unblocklink" => "unblock",
986 "contribslink" => "contribs",
987
988 # Developer tools
989 #
990 "lockdb" => "Lock database",
991 "unlockdb" => "Unlock database",
992 "lockdbtext" => "Locking the database will suspend 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, and that you will
996 unlock the database when your maintenance is done.",
997 "unlockdbtext" => "Unlocking the database will restore the ability of all
998 users to edit pages, change their preferences, edit their watchlists, and
999 other things requiring changes in the database.
1000 Please confirm that this is what you intend to do.",
1001 "lockconfirm" => "Yes, I really want to lock the database.",
1002 "unlockconfirm" => "Yes, I really want to unlock the database.",
1003 "lockbtn" => "Lock database",
1004 "unlockbtn" => "Unlock database",
1005 "locknoconfirm" => "You did not check the confirmation box.",
1006 "lockdbsuccesssub" => "Database lock succeeded",
1007 "unlockdbsuccesssub" => "Database lock removed",
1008 "lockdbsuccesstext" => "The Wikipedia database has been locked.
1009 <br>Remember to remove the lock after your maintenance is complete.",
1010 "unlockdbsuccesstext" => "The Wikipedia database has been unlocked.",
1011
1012 # SQL query
1013 #
1014 "asksql" => "SQL query",
1015 "asksqltext" => "Use the form below to make a direct query of the
1016 Wikipedia database.
1017 Use single quotes ('like this') to delimit string literals.
1018 This can often add considerable load to the server, so please use
1019 this function sparingly.",
1020 "sqlquery" => "Enter query",
1021 "querybtn" => "Submit query",
1022 "selectonly" => "Queries other than \"SELECT\" are restricted to
1023 Wikipedia developers.",
1024 "querysuccessful" => "Query successful",
1025
1026 # Move page
1027 #
1028 "movepage" => "Move page",
1029 "movepagetext" => "Using the form below will rename a page, moving all
1030 of its history to the new name.
1031 The old title will become a redirect page to the new title.
1032 Links to the old page title will not be changed; be sure to
1033 [[Special:Maintenance|check]] for double or broken redirects.
1034 You are responsible for making sure that links continue to
1035 point where they are supposed to go.
1036
1037 Note that the page will '''not''' be moved if there is already
1038 a page at the new title, unless it is empty or a redirect and has no
1039 past edit history. This means that you can rename a page back to where
1040 it was just renamed from if you make a mistake, and you cannot overwrite
1041 an existing page.
1042
1043 <b>WARNING!</b>
1044 This can be a drastic and unexpected change for a popular page;
1045 please be sure you understand the consequences of this before
1046 proceeding.",
1047 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1048 *You are moving the page across namespaces,
1049 *A non-empty talk page already exists under the new name, or
1050 *You uncheck the box below.
1051
1052 In those cases, you will have to move or merge the page manually if desired.",
1053 "movearticle" => "Move page",
1054 "movenologin" => "Not logged in",
1055 "movenologintext" => "You must be a registered user and <a href=\"" .
1056 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1057 to move a page.",
1058 "newtitle" => "To new title",
1059 "movepagebtn" => "Move page",
1060 "pagemovedsub" => "Move succeeded",
1061 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1062 "articleexists" => "A page of that name already exists, or the
1063 name you have chosen is not valid.
1064 Please choose another name.",
1065 "talkexists" => "The page itself was moved successfully, but the
1066 talk page could not be moved because one already exists at the new
1067 title. Please merge them manually.",
1068 "movedto" => "moved to",
1069 "movetalk" => "Move \"talk\" page as well, if applicable.",
1070 "talkpagemoved" => "The corresponding talk page was also moved.",
1071 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1072
1073 );
1074
1075 class Language {
1076
1077 function getDefaultUserOptions () {
1078 global $wgDefaultUserOptionsEn ;
1079 return $wgDefaultUserOptionsEn ;
1080 }
1081
1082 function getBookstoreList () {
1083 global $wgBookstoreListEn ;
1084 return $wgBookstoreListEn ;
1085 }
1086
1087 function getNamespaces() {
1088 global $wgNamespaceNamesEn;
1089 return $wgNamespaceNamesEn;
1090 }
1091
1092 function getNsText( $index ) {
1093 global $wgNamespaceNamesEn;
1094 return $wgNamespaceNamesEn[$index];
1095 }
1096
1097 function getNsIndex( $text ) {
1098 global $wgNamespaceNamesEn;
1099
1100 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1101 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1102 }
1103 return false;
1104 }
1105
1106 function specialPage( $name ) {
1107 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1108 }
1109
1110 function getQuickbarSettings() {
1111 global $wgQuickbarSettingsEn;
1112 return $wgQuickbarSettingsEn;
1113 }
1114
1115 function getSkinNames() {
1116 global $wgSkinNamesEn;
1117 return $wgSkinNamesEn;
1118 }
1119
1120 function getMathNames() {
1121 global $wgMathNamesEn;
1122 return $wgMathNamesEn;
1123 }
1124
1125 function getUserToggles() {
1126 global $wgUserTogglesEn;
1127 return $wgUserTogglesEn;
1128 }
1129
1130 function getLanguageNames() {
1131 global $wgLanguageNamesEn;
1132 return $wgLanguageNamesEn;
1133 }
1134
1135 function getLanguageName( $code ) {
1136 global $wgLanguageNamesEn;
1137 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1138 return "";
1139 }
1140 return $wgLanguageNamesEn[$code];
1141 }
1142
1143 function getMonthName( $key )
1144 {
1145 global $wgMonthNamesEn;
1146 return $wgMonthNamesEn[$key-1];
1147 }
1148
1149 /* by default we just return base form */
1150 function getMonthNameGen( $key )
1151 {
1152 global $wgMonthNamesEn;
1153 return $wgMonthNamesEn[$key-1];
1154 }
1155
1156 function getMonthAbbreviation( $key )
1157 {
1158 global $wgMonthAbbreviationsEn;
1159 return $wgMonthAbbreviationsEn[$key-1];
1160 }
1161
1162 function getWeekdayName( $key )
1163 {
1164 global $wgWeekdayNamesEn;
1165 return $wgWeekdayNamesEn[$key-1];
1166 }
1167
1168 function userAdjust( $ts )
1169 {
1170 global $wgUser, $wgLocalTZoffset;
1171
1172 $diff = $wgUser->getOption( "timecorrection" );
1173 if ( ! is_numeric( $diff ) ) {
1174 $diff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1175 }
1176 if ( 0 == $diff ) { return $ts; }
1177
1178 $t = mktime( ( (int)substr( $ts, 8, 2) ) + $diff,
1179 (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
1180 (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ),
1181 (int)substr( $ts, 0, 4 ) );
1182 return date( "YmdHis", $t );
1183 }
1184
1185 function date( $ts, $adj = false )
1186 {
1187 global $wgAmericanDates;
1188 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1189
1190 if( $wgAmericanDates ) {
1191 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1192 " " . (0 + substr( $ts, 6, 2 )) . ", " .
1193 substr( $ts, 0, 4 );
1194 } else {
1195 $d = (0 + substr( $ts, 6, 2 )) . " " .
1196 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1197 substr( $ts, 0, 4 );
1198 }
1199 return $d;
1200 }
1201
1202 function time( $ts, $adj = false )
1203 {
1204 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1205
1206 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1207 return $t;
1208 }
1209
1210 function timeanddate( $ts, $adj = false )
1211 {
1212 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
1213 }
1214
1215 function rfc1123( $ts )
1216 {
1217 return date( "D, d M Y H:i:s T", $ts );
1218 }
1219
1220 function getValidSpecialPages()
1221 {
1222 global $wgValidSpecialPagesEn;
1223 return $wgValidSpecialPagesEn;
1224 }
1225
1226 function getSysopSpecialPages()
1227 {
1228 global $wgSysopSpecialPagesEn;
1229 return $wgSysopSpecialPagesEn;
1230 }
1231
1232 function getDeveloperSpecialPages()
1233 {
1234 global $wgDeveloperSpecialPagesEn;
1235 return $wgDeveloperSpecialPagesEn;
1236 }
1237
1238 function getMessage( $key )
1239 {
1240 global $wgAllMessagesEn;
1241 return $wgAllMessagesEn[$key];
1242 }
1243
1244 function iconv( $in, $out, $string ) {
1245 # For most languages, this is a wrapper for iconv
1246 return iconv( $in, $out, $string );
1247 }
1248
1249 function ucfirst( $string ) {
1250 # For most languages, this is a wrapper for ucfirst()
1251 return ucfirst( $string );
1252 }
1253
1254 function checkTitleEncoding( $s ) {
1255 global $wgInputEncoding;
1256
1257 # Check for UTF-8 URLs; Internet Explorer produces these if you
1258 # type non-ASCII chars in the URL bar or follow unescaped links.
1259 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1260 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1261 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1262
1263 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1264 return iconv( "UTF-8", $wgInputEncoding, $s );
1265
1266 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1267 return utf8_encode( $s );
1268
1269 # Other languages can safely leave this function, or replace
1270 # it with one to detect and convert another legacy encoding.
1271 return $s;
1272 }
1273
1274 function stripForSearch( $in ) {
1275 # Some languages have special punctuation to strip out
1276 # or characters which need to be converted for MySQL's
1277 # indexing to grok it correctly. Make such changes here.
1278 return $in;
1279 }
1280
1281
1282 function setAltEncoding() {
1283 # Some languages may have an alternate char encoding option
1284 # (Esperanto X-coding, Japanese furigana conversion, etc)
1285 # If 'altencoding' is checked in user prefs, this gives a
1286 # chance to swap out the default encoding settings.
1287 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1288 }
1289
1290 function recodeForEdit( $s ) {
1291 # For some languages we'll want to explicitly specify
1292 # which characters make it into the edit box raw
1293 # or are converted in some way or another.
1294 # Note that if wgOutputEncoding is different from
1295 # wgInputEncoding, this text will be further converted
1296 # to wgOutputEncoding.
1297 global $wgInputEncoding, $wgEditEncoding;
1298 if( $wgEditEncoding == "" or
1299 $wgEditEncoding == $wgInputEncoding ) {
1300 return $s;
1301 } else {
1302 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1303 }
1304 }
1305
1306 function recodeInput( $s ) {
1307 # Take the previous into account.
1308 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1309 if($wgEditEncoding != "") {
1310 $enc = $wgEditEncoding;
1311 } else {
1312 $enc = $wgOutputEncoding;
1313 }
1314 if( $enc == $wgInputEncoding ) {
1315 return $s;
1316 } else {
1317 return $this->iconv( $enc, $wgInputEncoding, $s );
1318 }
1319 }
1320
1321 }
1322
1323 global $IP;
1324 @include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
1325
1326 ?>