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