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