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