Elegant solution for the problem with separate lists of special pages language files
[lhc/web/wiklou.git] / languages / Language.php
1 <?
2 #--------------------------------------------------------------------------
3 # Constants
4 #--------------------------------------------------------------------------
5
6 # Magic words
7 define("MAG_REDIRECT", 0);
8 define("MAG_NOTOC", 1);
9 define("MAG_START", 2);
10 define("MAG_CURRENTMONTH", 3);
11 define("MAG_CURRENTMONTHNAME", 4);
12 define("MAG_CURRENTDAY", 5);
13 define("MAG_CURRENTDAYNAME", 6);
14 define("MAG_CURRENTYEAR", 7);
15 define("MAG_CURRENTTIME", 8);
16 define("MAG_NUMBEROFARTICLES", 9);
17 define("MAG_CURRENTMONTHNAMEGEN", 10);
18 define("MAG_MSG", 11);
19 define("MAG_SUBST", 12);
20 define("MAG_MSGNW", 13);
21 define("MAG_NOEDITSECTION", 14);
22 define("MAG_END", 15);
23 define("MAG_IMG_THUMBNAIL", 16);
24 define("MAG_IMG_RIGHT", 17);
25 define("MAG_IMG_LEFT", 18);
26 define("MAG_IMG_NONE", 19);
27 define("MAG_IMG_WIDTH", 20);
28
29
30 #--------------------------------------------------------------------------
31 # Language-specific text
32 #--------------------------------------------------------------------------
33
34 # NOTE: To turn off "Current Events" in the sidebar,
35 # set "currentevents" => "-"
36
37 # NOTE: To turn off "Disclaimers" in the title links,
38 # set "disclaimers" => "-"
39
40 # The names of the namespaces can be set here, but the numbers
41 # are magical, so don't change or move them! The Namespace class
42 # encapsulates some of the magic-ness.
43 #
44
45 if($wgMetaNamespace === FALSE)
46 $wgMetaNamespace = str_replace( " ", "_", $wgSitename );
47
48 /* private */ $wgNamespaceNamesEn = array(
49 -2 => "Media",
50 -1 => "Special",
51 0 => "",
52 1 => "Talk",
53 2 => "User",
54 3 => "User_talk",
55 4 => $wgMetaNamespace,
56 5 => $wgMetaNamespace . "_talk",
57 6 => "Image",
58 7 => "Image_talk",
59 8 => "MediaWiki",
60 9 => "MediaWiki_talk"
61 );
62
63 /* private */ $wgDefaultUserOptionsEn = array(
64 "quickbar" => 1, "underline" => 1, "hover" => 1,
65 "cols" => 80, "rows" => 25, "searchlimit" => 20,
66 "contextlines" => 5, "contextchars" => 50,
67 "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
68 "highlightbroken" => 1, "stubthreshold" => 0,
69 "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
70 "showtoolbar" =>1,
71 "date" => 0
72 );
73
74 /* private */ $wgQuickbarSettingsEn = array(
75 "None", "Fixed left", "Fixed right", "Floating left"
76 );
77
78 /* private */ $wgSkinNamesEn = array(
79 "Standard", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
80 );
81
82 /* private */ $wgMathNamesEn = array(
83 "Always render PNG",
84 "HTML if very simple or else PNG",
85 "HTML if possible or else PNG",
86 "Leave it as TeX (for text browsers)",
87 "Recommended for modern browsers"
88 );
89
90 /* private */ $wgDateFormatsEn = array(
91 "No preference",
92 "January 15, 2001",
93 "15 January 2001",
94 "2001 January 15",
95 "2001-01-15"
96 );
97
98 /* private */ $wgUserTogglesEn = array(
99 "hover" => "Show hoverbox over wiki links",
100 "underline" => "Underline links",
101 "highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like
102 this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
103 "justify" => "Justify paragraphs",
104 "hideminor" => "Hide minor edits in recent changes",
105 "usenewrc" => "Enhanced recent changes (not for all browsers)",
106 "numberheadings" => "Auto-number headings",
107 "showtoolbar"=>"Show edit box toolbar",
108 "editondblclick" => "Edit pages on double click (JavaScript)",
109 "editsection"=>"Enable section editing via [edit] links",
110 "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
111 "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
112 "rememberpassword" => "Remember password across sessions",
113 "editwidth" => "Edit box has full width",
114 "watchdefault" => "Add pages you edit to your watchlist",
115 "minordefault" => "Mark all edits minor by default",
116 "previewontop" => "Show preview before edit box and not after it",
117 "nocache" => "Disable page caching"
118 );
119
120 /* private */ $wgBookstoreListEn = array(
121 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
122 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
123 "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
124 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
125 );
126
127 /* private */ $wgLanguageNamesEn = array(
128 "aa" => "Afar",
129 "ab" => "&#1040;&#1191;&#1089;&#1085;&#1099; (Apsny)",
130 "af" => "Afrikaans",
131 "als" => "Els&auml;ssisch", # FIXME: not a real language code; is subsumed under 'gem'
132 "am" => "Amharic",
133 "ar" => "&#8238;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;&#8236; (Araby)",
134 "as" => "Assamese",
135 "ay" => "Aymara",
136 "az" => "&#1040;&#1079;&#1241;&#1088;&#1073;&#1072;&#1112;&#1209;&#1072;&#1085; (Azerbajan)",
137 "ba" => "&#1041;&#1072;&#1096;&#1082;&#1086;&#1088;&#1090; (Bashkort)",
138 "be" => "&#1041;&#1077;&#1083;&#1072;&#1088;&#1091;&#1089;&#1082;&#1080;",
139 "bg" => "Bulgarian",
140 "bh" => "Bihara",
141 "bi" => "Bislama",
142 "bn" => "Bengali",
143 "bo" => "Tibetan",
144 "br" => "Brezhoneg",
145 "bs" => "Bosnian",
146 "ca" => "Catal&#224;",
147 "ch" => "Chamoru",
148 "co" => "Corsican",
149 "cs" => "&#268;esk&#225;",
150 "cy" => "Cymraeg",
151 "da" => "Dansk", # Note two different subdomains.
152 "dk" => "Dansk", # 'da' is correct for the language.
153 "de" => "Deutsch",
154 "dz" => "Bhutani",
155 "el" => "&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940; (Ellenika)",
156 "en" => "English",
157 "eo" => "Esperanto",
158 "es" => "Espa&#241;ol",
159 "et" => "Eesti",
160 "eu" => "Euskara",
161 "fa" => "&#8238;&#1601;&#1585;&#1587;&#1609;&#8236; (Farsi)",
162 "fi" => "Suomi",
163 "fj" => "Fijian",
164 "fo" => "Faeroese",
165 "fr" => "Fran&#231;ais",
166 "fy" => "Frysk",
167 "ga" => "Gaelige",
168 "gd" => "G&agrave;idhlig",
169 "gl" => "Galician",
170 "gn" => "Guarani",
171 "gu" => "&#2711;&#2753;&#2716;&#2736;&#2750;&#2724;&#2752; (Gujarati)",
172 "gv" => "Gaelg",
173 "ha" => "Hausa",
174 "he" => "&#1506;&#1489;&#1512;&#1497;&#1514; (Ivrit)",
175 "hi" => "&#2361;&#2367;&#2344;&#2381;&#2342;&#2368; (Hindi)",
176 "hr" => "Hrvatski",
177 "hu" => "Magyar",
178 "hy" => "&#1344;&#1377;&#1397;&#1381;&#1408;&#1383;&#1398; (Armjan)",
179 "ia" => "Interlingua",
180 "id" => "Indonesia",
181 "ik" => "Inupiak",
182 "is" => "&#205;slenska",
183 "it" => "Italiano",
184 "iu" => "Inuktitut",
185 "ja" => "&#26085;&#26412;&#35486; (Nihongo)",
186 "jv" => "Javanese",
187 "ka" => "&#4325;&#4304;&#4320;&#4311;&#4309;&#4308;&#4314;&#4312; (Kartuli)",
188 "kk" => "&#1178;&#1072;&#1079;&#1072;&#1179; (Kazakh)",
189 "kl" => "Greenlandic",
190 "km" => "Cambodian",
191 "kn" => "&#3221;&#3240;&#3277;&#3240;&#3233; (Kannada)",
192 "ko" => "&#54620;&#44397;&#50612; (Hangukeo)",
193 "ks" => "Kashmiri",
194 "ku" => "Kurd&icirc;",
195 "kw" => "Kernewek",
196 "ky" => "Kirghiz",
197 "la" => "Latina",
198 "ln" => "Lingala",
199 "lo" => "Laotian",
200 "lt" => "Lietuvi&#371;",
201 "lv" => "Latviešu",
202 "mg" => "Malagasy",
203 "mi" => "Maori",
204 "mk" => "Makedonš&#269;ina",
205 "ml" => "Malayalam",
206 "mn" => "Mongolian",
207 "mo" => "Moldavian",
208 "mr" => "Marathi",
209 "ms" => "Bahasa Melayu",
210 "my" => "Burmese",
211 "na" => "Nauru",
212 "nah" => "Nahuatl",
213 "nds" => "Plattd&uuml;&uuml;tsch",
214 "ne" => "&#2344;&#2375;&#2346;&#2366;&#2354;&#2368; (Nepali)",
215 "nl" => "Nederlands",
216 "no" => "Norsk",
217 "oc" => "Occitan",
218 "om" => "Oromo",
219 "or" => "Oriya",
220 "pa" => "Punjabi",
221 "pl" => "Polski",
222 "ps" => "Pashto",
223 "pt" => "Portugu&#234;s",
224 "qu" => "Quechua",
225 "rm" => "Rhaeto-Romance",
226 "rn" => "Kirundi",
227 "ro" => "Rom&#226;n&#259;",
228 "ru" => "&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; (Russkij)",
229 "rw" => "Kinyarwanda",
230 "sa" => "&#2360;&#2306;&#2360;&#2381;&#2325;&#2371;&#2340; (Samskrta)",
231 "sd" => "Sindhi",
232 "sg" => "Sangro",
233 "sh" => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1086;&#1093;&#1088;&#1074;&#1072;&#1090;&#1089;&#1082;&#1080; (Srbskohrvatski)",
234 "si" => "Sinhalese",
235 "simple" => "Simple English",
236 "sk" => "Slovak",
237 "sl" => "Slovensko",
238 "sm" => "Samoan",
239 "sn" => "Shona",
240 "so" => "Soomaali",
241 "sq" => "Shqip",
242 "sr" => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1080; (Srpski)",
243 "ss" => "Siswati",
244 "st" => "Sesotho",
245 "su" => "Sundanese",
246 "sv" => "Svenska",
247 "sw" => "Kiswahili",
248 "ta" => "&#2980;&#2990;&#3007;&#2996;&#3021; (Tamil)",
249 "te" => "&#3108;&#3142;&#3122;&#3137;&#3095;&#3137; (Telugu)",
250 "tg" => "Tajik",
251 "th" => "Thai",
252 "ti" => "Tigrinya",
253 "tk" => "Turkmen",
254 "tl" => "Tagalog",
255 "tn" => "Setswana",
256 "to" => "Tonga",
257 "tr" => "T&#252;rk&#231;e",
258 "ts" => "Tsonga",
259 "tt" => "&#1058;&#1072;&#1090;&#1072;&#1088; (Tatar)",
260 "tw" => "Twi",
261 "ug" => "Uighur",
262 "uk" => "&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072; (Ukrayins`ka)",
263 "ur" => "Urdu",
264 "uz" => "&#1038;&#1079;&#1073;&#1077;&#1082; (Uzbek)",
265 "vi" => "Ti&#7871;ng Vi&#7879;t",
266 "vo" => "Volap&#252;k",
267 "wo" => "Wolof",
268 "xh" => "isiXhosa",
269 "yi" => "Yiddish",
270 "yo" => "Yoruba",
271 "za" => "Zhuang",
272 "zh" => "&#20013;&#25991; (Zhongwen)",
273 "zh-cn" => "&#20013;&#25991;(&#31616;&#20307;) (Simplified Chinese)",
274 "zh-tw" => "&#20013;&#25991;(&#32321;&#20307;) (Traditional Chinese)",
275 "zu" => "Zulu"
276 );
277
278 /* private */ $wgWeekdayNamesEn = array(
279 "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
280 "Friday", "Saturday"
281 );
282
283 /* private */ $wgMonthNamesEn = array(
284 "January", "February", "March", "April", "May", "June",
285 "July", "August", "September", "October", "November",
286 "December"
287 );
288
289 /* private */ $wgMonthAbbreviationsEn = array(
290 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
291 "Sep", "Oct", "Nov", "Dec"
292 );
293
294 /* private */ $wgMagicWordsEn = array(
295 # ID CASE SYNONYMS
296 MAG_REDIRECT => array( 0, "#redirect" ),
297 MAG_NOTOC => array( 0, "__NOTOC__" ),
298 MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__" ),
299 MAG_START => array( 0, "__START__" ),
300 MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
301 MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),
302 MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}" ),
303 MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}" ),
304 MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}" ),
305 MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}" ),
306 MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}" ),
307 MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}"),
308 MAG_MSG => array( 0, "{{MSG:$1}}" ),
309 MAG_SUBST => array( 0, "{{SUBST:$1}}" ),
310 MAG_MSGNW => array( 0, "{{MSGNW:$1}}" ),
311 MAG_END => array( 0, "__END__" ),
312 MAG_IMG_THUMBNAIL => array( 1, "thumbnail", "thumb" ),
313 MAG_IMG_RIGHT => array( 1, "right" ),
314 MAG_IMG_LEFT => array( 1, "left" ),
315 MAG_IMG_NONE => array( 1, "none" ),
316 MAG_IMG_WIDTH => array( 1, "$1px" )
317
318 );
319
320 # All special pages have to be listed here: a description of ""
321 # will make them not show up on the "Special Pages" page, which
322 # is the right thing for some of them (such as the "targeted" ones).
323 #
324 /* private */ $wgValidSpecialPagesEn = array(
325 "Userlogin" => "",
326 "Userlogout" => "",
327 "Preferences" => "Set my user preferences",
328 "Watchlist" => "My watchlist",
329 "Recentchanges" => "Recently updated pages",
330 "Upload" => "Upload image files",
331 "Imagelist" => "Image list",
332 "Listusers" => "Registered users",
333 "Statistics" => "Site statistics",
334 "Randompage" => "Random article",
335
336 "Lonelypages" => "Orphaned articles",
337 "Unusedimages" => "Orphaned images",
338 "Popularpages" => "Popular articles",
339 "Wantedpages" => "Most wanted articles",
340 "Shortpages" => "Short articles",
341 "Longpages" => "Long articles",
342 "Newpages" => "Newly created articles",
343 "Ancientpages" => "Oldest articles",
344 "Deadendpages" => "Dead-end pages",
345 # "Intl" => "Interlanguage Links",
346 "Allpages" => "All pages by title",
347
348 "Ipblocklist" => "Blocked users/IP addresses",
349 "Maintenance" => "Maintenance page",
350 "Specialpages" => "",
351 "Contributions" => "",
352 "Emailuser" => "",
353 "Whatlinkshere" => "",
354 "Recentchangeslinked" => "",
355 "Movepage" => "",
356 "Booksources" => "External book sources",
357 # "Categories" => "Page categories",
358 "Export" => "XML page export",
359 "Version" => "Show MediaWiki version",
360 );
361
362 /* private */ $wgSysopSpecialPagesEn = array(
363 "Blockip" => "Block a user/IP address",
364 "Asksql" => "Query the database",
365 "Undelete" => "Restore deleted pages",
366 "Makesysop" => "Turn a user into a sysop"
367 );
368
369 /* private */ $wgDeveloperSpecialPagesEn = array(
370 "Lockdb" => "Make database read-only",
371 "Unlockdb" => "Restore DB write access"
372 );
373
374 #-------------------------------------------------------------------
375 # Default messages
376 #-------------------------------------------------------------------
377 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
378 # hyphen (-). If you need more characters, you may be able to change
379 # the regex in MagicWord::initRegex
380
381 /* private */ $wgAllMessagesEn = array(
382
383 # Bits of text used by many pages:
384 #
385 "categories" => "Page categories",
386 "category" => "category",
387 "category_header" => "Articles in category \"$1\"",
388 "subcategories" => "Subcategories",
389
390 "linktrail" => "/^([a-z]+)(.*)\$/sD",
391 "mainpage" => "Main Page",
392 "mainpagetext" => "Wiki software successfully installed.",
393 "about" => "About",
394 "aboutwikipedia" => "About $wgSitename",
395 "aboutpage" => "$wgMetaNamespace:About",
396 "help" => "Help",
397 "helppage" => "$wgMetaNamespace:Help",
398 "wikititlesuffix" => "$wgSitename",
399 "bugreports" => "Bug reports",
400 "bugreportspage" => "$wgMetaNamespace:Bug_reports",
401 "sitesupport" => "Donations",
402 "sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
403 "faq" => "FAQ",
404 "faqpage" => "$wgMetaNamespace:FAQ",
405 "edithelp" => "Editing help",
406 "edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
407 "cancel" => "Cancel",
408 "qbfind" => "Find",
409 "qbbrowse" => "Browse",
410 "qbedit" => "Edit",
411 "qbpageoptions" => "This page",
412 "qbpageinfo" => "Context",
413 "qbmyoptions" => "My pages",
414 "qbspecialpages" => "Special pages",
415 "moredotdotdot" => "More...",
416 "mypage" => "My page",
417 "mytalk" => "My talk",
418 "currentevents" => "Current events",
419 "disclaimers" => "Disclaimers",
420 "disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
421 "errorpagetitle" => "Error",
422 "returnto" => "Return to $1.",
423 "fromwikipedia" => "From $wgSitename, the free encyclopedia.",
424 "whatlinkshere" => "Pages that link here",
425 "help" => "Help",
426 "search" => "Search",
427 "go" => "Go",
428 "history" => "Page history",
429 "printableversion" => "Printable version",
430 "editthispage" => "Edit this page",
431 "deletethispage" => "Delete this page",
432 "protectthispage" => "Protect this page",
433 "unprotectthispage" => "Unprotect this page",
434 "newpage" => "New page",
435 "talkpage" => "Discuss this page",
436 "postcomment" => "Post a comment",
437 "articlepage" => "View article",
438 "subjectpage" => "View subject", # For compatibility
439 "userpage" => "View user page",
440 "wikipediapage" => "View meta page",
441 "imagepage" => "View image page",
442 "viewtalkpage" => "View discussion",
443 "otherlanguages" => "Other languages",
444 "redirectedfrom" => "(Redirected from $1)",
445 "lastmodified" => "This page was last modified $1.",
446 "viewcount" => "This page has been accessed $1 times.",
447 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
448 "printsubtitle" => "(From http://www.wikipedia.org)",
449 "protectedpage" => "Protected page",
450 "administrators" => "$wgMetaNamespace:Administrators",
451 "sysoptitle" => "Sysop access required",
452 "sysoptext" => "The action you have requested can only be
453 performed by users with \"sysop\" status.
454 See $1.",
455 "developertitle" => "Developer access required",
456 "developertext" => "The action you have requested can only be
457 performed by users with \"developer\" status.
458 See $1.",
459 "bureaucrattitle" => "Bureaucrat access required",
460 "bureaucrattext" => "The action you have requested can only be
461 performed by sysops with \"bureaucrat\" status.",
462 "nbytes" => "$1 bytes",
463 "go" => "Go",
464 "ok" => "OK",
465 "sitetitle" => "$wgSitename",
466 "sitesubtitle" => "The Free Encyclopedia",
467 "retrievedfrom" => "Retrieved from \"$1\"",
468 "newmessages" => "You have $1.",
469 "newmessageslink" => "new messages",
470 "editsection"=>"edit",
471 "toc" => "Table of contents",
472 "showtoc" => "show",
473 "hidetoc" => "hide",
474 "thisisdeleted" => "View or restore $1?",
475 "restorelink" => "$1 deleted edits",
476
477 # Main script and global functions
478 #
479 "nosuchaction" => "No such action",
480 "nosuchactiontext" => "The action specified by the URL is not
481 recognized by the wiki",
482 "nosuchspecialpage" => "No such special page",
483 "nospecialpagetext" => "You have requested a special page that is not
484 recognized by the wiki.",
485
486 # General errors
487 #
488 "error" => "Error",
489 "databaseerror" => "Database error",
490 "dberrortext" => "A database query syntax error has occurred.
491 This could be because of an illegal search query (see $5),
492 or it may indicate a bug in the software.
493 The last attempted database query was:
494 <blockquote><tt>$1</tt></blockquote>
495 from within function \"<tt>$2</tt>\".
496 MySQL returned error \"<tt>$3: $4</tt>\".",
497 "dberrortextcl" => "A database query syntax error has occurred.
498 The last attempted database query was:
499 \"$1\"
500 from within function \"$2\".
501 MySQL returned error \"$3: $4\".\n",
502 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
503 "nodb" => "Could not select database $1",
504 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
505 "readonly" => "Database locked",
506 "enterlockreason" => "Enter a reason for the lock, including an estimate
507 of when the lock will be released",
508 "readonlytext" => "The database is currently locked to new
509 entries and other modifications, probably for routine database maintenance,
510 after which it will be back to normal.
511 The administrator who locked it offered this explanation:
512 <p>$1",
513 "missingarticle" => "The database did not find the text of a page
514 that it should have found, named \"$1\".
515
516 <p>This is usually caused by following an outdated diff or history link to a
517 page that has been deleted.
518
519 <p>If this is not the case, you may have found a bug in the software.
520 Please report this to an administrator, making note of the URL.",
521 "internalerror" => "Internal error",
522 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
523 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
524 "filedeleteerror" => "Could not delete file \"$1\".",
525 "filenotfound" => "Could not find file \"$1\".",
526 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
527 "formerror" => "Error: could not submit form",
528 "badarticleerror" => "This action cannot be performed on this page.",
529 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
530 "badtitle" => "Bad title",
531 "badtitletext" => "The requested page title was invalid, empty, or
532 an incorrectly linked inter-language or inter-wiki title.",
533 "perfdisabled" => "Sorry! This feature has been temporarily disabled
534 because it slows the database down to the point that no one can use
535 the wiki.",
536 "perfdisabledsub" => "Here's a saved copy from $1:",
537 "wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
538 Function: $1<br>
539 Query: $2
540 ",
541 "viewsource" => "View source",
542 "protectedtext" => "This page has been locked to prevent editing; there are
543 a number of reasons why this may be so, please see
544 [[$wgMetaNamespace:Protected page]].
545
546 You can view and copy the source of this page:",
547
548 # Login and logout pages
549 #
550 "logouttitle" => "User logout",
551 "logouttext" => "You are now logged out.
552 You can continue to use $wgSitename anonymously, or you can log in
553 again as the same or as a different user. Note that some pages may
554 continue to be displayed as if you were still logged in, until you clear
555 your browser cache\n",
556
557 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
558 Don't forget to personalize your wikipedia preferences.",
559
560 "loginpagetitle" => "User login",
561 "yourname" => "Your user name",
562 "yourpassword" => "Your password",
563 "yourpasswordagain" => "Retype password",
564 "newusersonly" => " (new users only)",
565 "remembermypassword" => "Remember my password across sessions.",
566 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
567 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
568
569 "login" => "Log in",
570 "loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
571 "userlogin" => "Log in",
572 "logout" => "Log out",
573 "userlogout" => "Log out",
574 "notloggedin" => "Not logged in",
575 "createaccount" => "Create new account",
576 "createaccountmail" => "by eMail",
577 "badretype" => "The passwords you entered do not match.",
578 "userexists" => "The user name you entered is already in use. Please choose a different name.",
579 "youremail" => "Your e-mail*",
580 "yournick" => "Your nickname (for signatures)",
581 "emailforlost" => "* Entering an email address is optional. But it enables people to
582 contact you through the website without you having to reveal your
583 email address to them, and it also helps you if you forget your
584 password.",
585 "loginerror" => "Login error",
586 "nocookiesnew" => "The user account was created, but you are not logged in. $wgSitename uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
587 "nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
588 "noname" => "You have not specified a valid user name.",
589 "loginsuccesstitle" => "Login successful",
590 "loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
591 "nosuchuser" => "There is no user by the name \"$1\".
592 Check your spelling, or use the form below to create a new user account.",
593 "wrongpassword" => "The password you entered is incorrect. Please try again.",
594 "mailmypassword" => "Mail me a new password",
595 "passwordremindertitle" => "Password reminder from $wgSitename",
596 "passwordremindertext" => "Someone (probably you, from IP address $1)
597 requested that we send you a new $wgSitename login password.
598 The password for user \"$2\" is now \"$3\".
599 You should log in and change your password now.",
600 "noemail" => "There is no e-mail address recorded for user \"$1\".",
601 "passwordsent" => "A new password has been sent to the e-mail address
602 registered for \"$1\".
603 Please log in again after you receive it.",
604 "loginend" => "",
605
606 # Edit page toolbar
607 "bold_sample"=>"Bold text",
608 "bold_tip"=>"Bold text",
609 "italic_sample"=>"Italic text",
610 "italic_tip"=>"Italic text",
611 "link_sample"=>"Link title",
612 "link_tip"=>"Internal link",
613 "extlink_sample"=>"http://www.example.com link title",
614 "extlink_tip"=>"External link (remember http:// prefix)",
615 "headline_sample"=>"Headline text",
616 "headline_tip"=>"Level 2 headline",
617 "math_sample"=>"Insert formula here",
618 "math_tip"=>"Mathematical formula (LaTeX)",
619 "nowiki_sample"=>"Insert non-formatted text here",
620 "nowiki_tip"=>"Ignore wiki formatting",
621 "image_sample"=>"Example.jpg",
622 "image_tip"=>"Embedded image",
623 "media_sample"=>"Example.mp3",
624 "media_tip"=>"Media file link",
625 "sig_tip"=>"Your signature with timestamp",
626 "hr_tip"=>"Horizontal line (use sparingly)",
627 "infobox"=>"Click a button to get an example text",
628
629 # Edit pages
630 #
631 "summary" => "Summary",
632 "subject" => "Subject/headline",
633 "minoredit" => "This is a minor edit",
634 "watchthis" => "Watch this article",
635 "savearticle" => "Save page",
636 "preview" => "Preview",
637 "showpreview" => "Show preview",
638 "blockedtitle" => "User is blocked",
639 "blockedtext" => "Your user name or IP address has been blocked by $1.
640 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
641 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
642
643 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
644
645 Your IP address is $3. Please include this address in any queries you make.
646
647 ==Note to AOL users==
648 Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused.
649
650 If this happens to you, please email an administrator, using an AOL email address. Be sure to include the IP address given above.
651 ",
652 "whitelistedittitle" => "Login required to edit",
653 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
654 "whitelistreadtitle" => "Login required to read",
655 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
656 "whitelistacctitle" => "You are not allowed to create an account",
657 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
658 "accmailtitle" => "Password sent.",
659 "accmailtext" => "The Password for '$1' has been sent to $2.",
660 "newarticle" => "(New)",
661 "newarticletext" =>
662 "You've followed a link to a page that doesn't exist yet.
663 To create the page, start typing in the box below
664 (see the [[$wgMetaNamespace:Help|help page]] for more info).
665 If you are here by mistake, just click your browser's '''back''' button.",
666 "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.'' ",
667 "noarticletext" => "(There is currently no text in this page)",
668 "updated" => "(Updated)",
669 "note" => "<strong>Note:</strong> ",
670 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
671 "previewconflict" => "This preview reflects the text in the upper
672 text editing area as it will appear if you choose to save.",
673 "editing" => "Editing $1",
674 "sectionedit" => " (section)",
675 "commentedit" => " (comment)",
676 "editconflict" => "Edit conflict: $1",
677 "explainconflict" => "Someone else has changed this page since you
678 started editing it.
679 The upper text area contains the page text as it currently exists.
680 Your changes are shown in the lower text area.
681 You will have to merge your changes into the existing text.
682 <b>Only</b> the text in the upper text area will be saved when you
683 press \"Save page\".\n<p>",
684 "yourtext" => "Your text",
685 "storedversion" => "Stored version",
686 "editingold" => "<strong>WARNING: You are editing an out-of-date
687 revision of this page.
688 If you save it, any changes made since this revision will be lost.</strong>\n",
689 "yourdiff" => "Differences",
690 # FIXME: This is inappropriate for third-party use!
691 "copyrightwarning" => "Please note that all contributions to $wgSitename are
692 considered to be released under the GNU Free Documentation License
693 (see $1 for details).
694 If you don't want your writing to be edited mercilessly and redistributed
695 at will, then don't submit it here.<br>
696 You are also promising us that you wrote this yourself, or copied it from a
697 public domain or similar free resource.
698 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
699 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
700 browsers may have problems editing pages approaching or longer than 32kb.
701 Please consider breaking the page into smaller sections.",
702 "readonlywarning" => "WARNING: The database has been locked for maintenance,
703 so you will not be able to save your edits right now. You may wish to cut-n-paste
704 the text into a text file and save it for later.",
705 "protectedpagewarning" => "WARNING: This page has been locked so that only
706 users with sysop privileges can edit it. Be sure you are following the
707 <a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
708 guidelines</a>.",
709
710 # History pages
711 #
712 "revhistory" => "Revision history",
713 "nohistory" => "There is no edit history for this page.",
714 "revnotfound" => "Revision not found",
715 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
716 Please check the URL you used to access this page.\n",
717 "loadhist" => "Loading page history",
718 "currentrev" => "Current revision",
719 "revisionasof" => "Revision as of $1",
720 "cur" => "cur",
721 "next" => "next",
722 "last" => "last",
723 "orig" => "orig",
724 "histlegend" => "Legend: (cur) = difference with current version,
725 (last) = difference with preceding version, M = minor edit",
726
727 # Diffs
728 #
729 "difference" => "(Difference between revisions)",
730 "loadingrev" => "loading revision for diff",
731 "lineno" => "Line $1:",
732 "editcurrent" => "Edit the current version of this page",
733
734 # Search results
735 #
736 "searchresults" => "Search results",
737 "searchhelppage" => "$wgMetaNamespace:Searching",
738 "searchingwikipedia" => "Searching $wgSitename",
739 "searchresulttext" => "For more information about searching $wgSitename, see $1.",
740 "searchquery" => "For query \"$1\"",
741 "badquery" => "Badly formed search query",
742 "badquerytext" => "We could not process your query.
743 This is probably because you have attempted to search for a
744 word fewer than three letters long, which is not yet supported.
745 It could also be that you have mistyped the expression, for
746 example \"fish and and scales\".
747 Please try another query.",
748 "matchtotals" => "The query \"$1\" matched $2 article titles
749 and the text of $3 articles.",
750 "nogomatch" => "No page with this exact title exists, trying full text search.",
751 "titlematches" => "Article title matches",
752 "notitlematches" => "No article title matches",
753 "textmatches" => "Article text matches",
754 "notextmatches" => "No article text matches",
755 "prevn" => "previous $1",
756 "nextn" => "next $1",
757 "viewprevnext" => "View ($1) ($2) ($3).",
758 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
759 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
760 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
761 often caused by searching for common words like \"have\" and \"from\",
762 which are not indexed, or by specifying more than one search term (only pages
763 containing all of the search terms will appear in the result).",
764 "powersearch" => "Search",
765 "powersearchtext" => "
766 Search in namespaces :<br>
767 $1<br>
768 $2 List redirects &nbsp; Search for $3 $9",
769 "searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>
770
771 <!-- SiteSearch Google -->
772 <FORM method=GET action=\"http://www.google.com/search\">
773 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
774 <A HREF=\"http://www.google.com/\">
775 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
776 border=\"0\" ALT=\"Google\"></A>
777 </td>
778 <td>
779 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
780 <INPUT type=submit name=btnG VALUE=\"Google Search\">
781 <font size=-1>
782 <input type=hidden name=domains value=\"{$wgServer}\"><br><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br>
783 <input type='hidden' name='ie' value='$2'>
784 <input type='hidden' name='oe' value='$2'>
785 </font>
786 </td></tr></TABLE>
787 </FORM>
788 <!-- SiteSearch Google -->",
789 "blanknamespace" => "(Main)",
790
791 # Preferences page
792 #
793 "preferences" => "Preferences",
794 "prefsnologin" => "Not logged in",
795 "prefsnologintext" => "You must be <a href=\"" .
796 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
797 to set user preferences.",
798 "prefslogintext" => "You are logged in as \"$1\".
799 Your internal ID number is $2.
800
801 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
802 "prefsreset" => "Preferences have been reset from storage.",
803 "qbsettings" => "Quickbar settings",
804 "changepassword" => "Change password",
805 "skin" => "Skin",
806 "math" => "Rendering math",
807 "dateformat" => "Date format",
808 "math_failure" => "Failed to parse",
809 "math_unknown_error" => "unknown error",
810 "math_unknown_function" => "unknown function ",
811 "math_lexing_error" => "lexing error",
812 "math_syntax_error" => "syntax error",
813 "math_image_error" => "PNG conversion failed",
814 "saveprefs" => "Save preferences",
815 "resetprefs" => "Reset preferences",
816 "oldpassword" => "Old password",
817 "newpassword" => "New password",
818 "retypenew" => "Retype new password",
819 "textboxsize" => "Textbox dimensions",
820 "rows" => "Rows",
821 "columns" => "Columns",
822 "searchresultshead" => "Search result settings",
823 "resultsperpage" => "Hits to show per page",
824 "contextlines" => "Lines to show per hit",
825 "contextchars" => "Characters of context per line",
826 "stubthreshold" => "Threshold for stub display",
827 "recentchangescount" => "Number of titles in recent changes",
828 "savedprefs" => "Your preferences have been saved.",
829 "timezonetext" => "Enter number of hours your local time differs
830 from server time (UTC).",
831 "localtime" => "Local time display",
832 "timezoneoffset" => "Offset",
833 "servertime" => "Server time is now",
834 "guesstimezone" => "Fill in from browser",
835 "emailflag" => "Disable e-mail from other users",
836 "defaultns" => "Search in these namespaces by default:",
837
838 # Recent changes
839 #
840 "changes" => "changes",
841 "recentchanges" => "Recent changes",
842 "recentchangestext" => "Track the most recent changes to the wiki on this page.",
843 "rcloaderr" => "Loading recent changes",
844 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
845 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
846 "rclistfrom" => "Show new changes starting from $1",
847 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
848 # "rclinks" => "Show last $1 changes in last $2 days.",
849 "showhideminor" => "$1 minor edits | $2 bots | $3 logged in users ",
850 "rclinks" => "Show last $1 changes in last $2 days<br>$3",
851 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
852 "rcliu" => "; $1 edits from logged in users",
853 "diff" => "diff",
854 "hist" => "hist",
855 "hide" => "hide",
856 "show" => "show",
857 "tableform" => "table",
858 "listform" => "list",
859 "nchanges" => "$1 changes",
860 "minoreditletter" => "M",
861 "newpageletter" => "N",
862
863 # Upload
864 #
865 "upload" => "Upload file",
866 "uploadbtn" => "Upload file",
867 "uploadlink" => "Upload images",
868 "reupload" => "Re-upload",
869 "reuploaddesc" => "Return to the upload form.",
870 "uploadnologin" => "Not logged in",
871 "uploadnologintext" => "You must be <a href=\"" .
872 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
873 to upload files.",
874 "uploadfile" => "Upload images, sounds, documents etc.",
875 "uploaderror" => "Upload error",
876 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
877 make sure to read and follow the <a href=\"" .
878 wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
879 <p>If a file with the name you are specifying already
880 exists on the wiki, it'll be replaced without warning.
881 So unless you mean to update a file, it's a good idea
882 to first check if such a file exists.
883 <p>To view or search previously uploaded images,
884 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
885 "\">list of uploaded images</a>.
886 Uploads and deletions are logged on the <a href=\"" .
887 wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
888 <p>Use the form below to upload new image files for use in
889 illustrating your articles.
890 On most browsers, you will see a \"Browse...\" button, which will
891 bring up your operating system's standard file open dialog.
892 Choosing a file will fill the name of that file into the text
893 field next to the button.
894 You must also check the box affirming that you are not
895 violating any copyrights by uploading the file.
896 Press the \"Upload\" button to finish the upload.
897 This may take some time if you have a slow internet connection.
898 <p>The preferred formats are JPEG for photographic images, PNG
899 for drawings and other iconic images, and OGG for sounds.
900 Please name your files descriptively to avoid confusion.
901 To include the image in an article, use a link in the form
902 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
903 or <b>[[media:file.ogg]]</b> for sounds.
904 <p>Please note that as with wiki pages, others may edit or
905 delete your uploads if they think it serves the encyclopedia, and
906 you may be blocked from uploading if you abuse the system.",
907
908 "uploadlog" => "upload log",
909 "uploadlogpage" => "Upload_log",
910 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
911 All times shown are server time (UTC).
912 <ul>
913 </ul>
914 ",
915 "filename" => "Filename",
916 "filedesc" => "Summary",
917 "filestatus" => "Copyright status",
918 "filesource" => "Source",
919 "affirmation" => "I affirm that the copyright holder of this file
920 agrees to license it under the terms of the $1.",
921 "copyrightpage" => "$wgMetaNamespace:Copyrights",
922 "copyrightpagename" => "$wgSitename copyright",
923 "uploadedfiles" => "Uploaded files",
924 "noaffirmation" => "You must affirm that your upload does not violate
925 any copyrights.",
926 "ignorewarning" => "Ignore warning and save file anyway.",
927 "minlength" => "Image names must be at least three letters.",
928 "badfilename" => "Image name has been changed to \"$1\".",
929 "badfiletype" => "\".$1\" is not a recommended image file format.",
930 "largefile" => "It is recommended that images not exceed 100k in size.",
931 "successfulupload" => "Successful upload",
932 "fileuploaded" => "File \"$1\" uploaded successfully.
933 Please follow this link: ($2) to the description page and fill
934 in information about the file, such as where it came from, when it was
935 created and by whom, and anything else you may know about it.",
936 "uploadwarning" => "Upload warning",
937 "savefile" => "Save file",
938 "uploadedimage" => "uploaded \"$1\"",
939 "uploaddisabled" => "Sorry, uploading is disabled.",
940
941 # Image list
942 #
943 "imagelist" => "Image list",
944 "imagelisttext" => "Below is a list of $1 images sorted $2.",
945 "getimagelist" => "fetching image list",
946 "ilshowmatch" => "Show all images with names matching",
947 "ilsubmit" => "Search",
948 "showlast" => "Show last $1 images sorted $2.",
949 "all" => "all",
950 "byname" => "by name",
951 "bydate" => "by date",
952 "bysize" => "by size",
953 "imgdelete" => "del",
954 "imgdesc" => "desc",
955 "imglegend" => "Legend: (desc) = show/edit image description.",
956 "imghistory" => "Image history",
957 "revertimg" => "rev",
958 "deleteimg" => "del",
959 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
960 this old version, (rev) = revert to this old version.
961 <br><i>Click on date to see image uploaded on that date</i>.",
962 "imagelinks" => "Image links",
963 "linkstoimage" => "The following pages link to this image:",
964 "nolinkstoimage" => "There are no pages that link to this image.",
965
966 # Statistics
967 #
968 "statistics" => "Statistics",
969 "sitestats" => "Site statistics",
970 "userstats" => "User statistics",
971 "sitestatstext" => "There are <b>$1</b> total pages in the database.
972 This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
973 pages, redirects, and others that probably don't qualify as articles.
974 Excluding those, there are <b>$2</b> pages that are probably legitimate
975 articles.<p>
976 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
977 since the software was upgraded (July 20, 2002).
978 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
979 "userstatstext" => "There are <b>$1</b> registered users.
980 <b>$2</b> of these are administrators (see $3).",
981
982 # Maintenance Page
983 #
984 "maintenance" => "Maintenance page",
985 "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 ;-)",
986 "maintenancebacklink" => "Back to Maintenance Page",
987 "disambiguations" => "Disambiguation pages",
988 "disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
989 "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.",
990 "doubleredirects" => "Double Redirects",
991 "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.",
992 "brokenredirects" => "Broken Redirects",
993 "brokenredirectstext" => "The following redirects link to a non-existing article.",
994 "selflinks" => "Pages with Self Links",
995 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
996 "mispeelings" => "Pages with misspellings",
997 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
998 "mispeelingspage" => "List of common misspellings",
999 "missinglanguagelinks" => "Missing Language Links",
1000 "missinglanguagelinksbutton" => "Find missing language links for",
1001 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1002
1003
1004 # Miscellaneous special pages
1005 #
1006 "orphans" => "Orphaned pages",
1007 "lonelypages" => "Orphaned pages",
1008 "unusedimages" => "Unused images",
1009 "popularpages" => "Popular pages",
1010 "nviews" => "$1 views",
1011 "wantedpages" => "Wanted pages",
1012 "nlinks" => "$1 links",
1013 "allpages" => "All pages",
1014 "randompage" => "Random page",
1015 "shortpages" => "Short pages",
1016 "longpages" => "Long pages",
1017 "deadendpages" => "Dead-end pages",
1018 "listusers" => "User list",
1019 "specialpages" => "Special pages",
1020 "spheading" => "Special pages for all users",
1021 "sysopspheading" => "For sysop use only",
1022 "developerspheading" => "For developer use only",
1023 "protectpage" => "Protect page",
1024 "recentchangeslinked" => "Related changes",
1025 "rclsub" => "(to pages linked from \"$1\")",
1026 "debug" => "Debug",
1027 "newpages" => "New pages",
1028 "ancientpages" => "Oldest articles",
1029 "intl" => "Interlanguage links",
1030 "movethispage" => "Move this page",
1031 "unusedimagestext" => "<p>Please note that other web sites
1032 such as the international Wikipedias may link to an image with
1033 a direct URL, and so may still be listed here despite being
1034 in active use.",
1035 "booksources" => "Book sources",
1036 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1037 "booksourcetext" => "Below is a list of links to other sites that
1038 sell new and used books, and may also have further information
1039 about books you are looking for.
1040 $wgSitename is not affiliated with any of these businesses, and
1041 this list should not be construed as an endorsement.",
1042 "alphaindexline" => "$1 to $2",
1043 "version" => "Version",
1044
1045 # Email this user
1046 #
1047 "mailnologin" => "No send address",
1048 "mailnologintext" => "You must be <a href=\"" .
1049 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1050 and have a valid e-mail address in your <a href=\"" .
1051 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
1052 to send e-mail to other users.",
1053 "emailuser" => "E-mail this user",
1054 "emailpage" => "E-mail user",
1055 "emailpagetext" => "If this user has entered a valid e-mail address in
1056 his or her user preferences, the form below will send a single message.
1057 The e-mail address you entered in your user preferences will appear
1058 as the \"From\" address of the mail, so the recipient will be able
1059 to reply.",
1060 "noemailtitle" => "No e-mail address",
1061 "noemailtext" => "This user has not specified a valid e-mail address,
1062 or has chosen not to receive e-mail from other users.",
1063 "emailfrom" => "From",
1064 "emailto" => "To",
1065 "emailsubject" => "Subject",
1066 "emailmessage" => "Message",
1067 "emailsend" => "Send",
1068 "emailsent" => "E-mail sent",
1069 "emailsenttext" => "Your e-mail message has been sent.",
1070
1071 # Watchlist
1072 #
1073 "watchlist" => "My watchlist",
1074 "watchlistsub" => "(for user \"$1\")",
1075 "nowatchlist" => "You have no items on your watchlist.",
1076 "watchnologin" => "Not logged in",
1077 "watchnologintext" => "You must be <a href=\"" .
1078 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1079 to modify your watchlist.",
1080 "addedwatch" => "Added to watchlist",
1081 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
1082 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
1083 Future changes to this page and its associated Talk page will be listed there,
1084 and the page will appear <b>bolded</b> in the <a href=\"" .
1085 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
1086 make it easier to pick out.</p>
1087
1088 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1089 "removedwatch" => "Removed from watchlist",
1090 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
1091 "watchthispage" => "Watch this page",
1092 "unwatchthispage" => "Stop watching",
1093 "notanarticle" => "Not an article",
1094 "watchnochange" => "None of your watched items were edited in the time period displayed.",
1095 "watchdetails" => "($1 pages watched not counting talk pages;
1096 $2 total pages edited since cutoff;
1097 $3...
1098 <a href='$4'>show and edit complete list</a>.)",
1099 "watchmethod-recent"=> "checking recent edits for watched pages",
1100 "watchmethod-list" => "checking watched pages for recent edits",
1101 "removechecked" => "Remove checked items from watchlist",
1102 "watchlistcontains" => "Your watchlist contains $1 pages.",
1103 "watcheditlist" => "Here's an alphabetical list of your
1104 watched pages. Check the boxes of pages you want to remove
1105 from your watchlist and click the 'remove checked' button
1106 at the bottom of the screen.",
1107 "removingchecked" => "Removing requested items from watchlist...",
1108 "couldntremove" => "Couldn't remove item '$1'...",
1109 "iteminvalidname" => "Problem with item '$1', invalid name...",
1110 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
1111 "wlshowlast" => "Show last $1 hours $2 days $3",
1112 "wlsaved" => "This is a saved version of your watchlist.",
1113
1114
1115 # Delete/protect/revert
1116 #
1117 "deletepage" => "Delete page",
1118 "confirm" => "Confirm",
1119 "excontent" => "content was:",
1120 "exbeforeblank" => "content before blanking was:",
1121 "exblank" => "page was empty",
1122 "confirmdelete" => "Confirm delete",
1123 "deletesub" => "(Deleting \"$1\")",
1124 "historywarning" => "Warning: The page you are about to delete has a history: ",
1125 "confirmdeletetext" => "You are about to permanently delete a page
1126 or image along with all of its history from the database.
1127 Please confirm that you intend to do this, that you understand the
1128 consequences, and that you are doing this in accordance with
1129 [[$wgMetaNamespace:Policy]].",
1130 "confirmcheck" => "Yes, I really want to delete this.",
1131 "actioncomplete" => "Action complete",
1132 "deletedtext" => "\"$1\" has been deleted.
1133 See $2 for a record of recent deletions.",
1134 "deletedarticle" => "deleted \"$1\"",
1135 "dellogpage" => "Deletion_log",
1136 "dellogpagetext" => "Below is a list of the most recent deletions.
1137 All times shown are server time (UTC).
1138 <ul>
1139 </ul>
1140 ",
1141 "deletionlog" => "deletion log",
1142 "reverted" => "Reverted to earlier revision",
1143 "deletecomment" => "Reason for deletion",
1144 "imagereverted" => "Revert to earlier version was successful.",
1145 "rollback" => "Roll back edits",
1146 "rollbacklink" => "rollback",
1147 "rollbackfailed" => "Rollback failed",
1148 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1149 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1150 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1151
1152 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1153 # only shown if there is an edit comment
1154 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1155 "revertpage" => "Reverted edit of $2, changed back to last version by $1",
1156 "protectlogpage" => "Protection_log",
1157 "protectlogtext" => "Below is a list of page locks/unlocks.
1158 See [[$wgMetaNamespace:Protected page]] for more information.",
1159 "protectedarticle" => "protected [[$1]]",
1160 "unprotectedarticle" => "unprotected [[$1]]",
1161
1162 # Undelete
1163 "undelete" => "Restore deleted page",
1164 "undeletepage" => "View and restore deleted pages",
1165 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1166 can be restored. The archive may be periodically cleaned out.",
1167 "undeletearticle" => "Restore deleted article",
1168 "undeleterevisions" => "$1 revisions archived",
1169 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1170 If a new page with the same name has been created since the deletion, the restored
1171 revisions will appear in the prior history, and the current revision of the live page
1172 will not be automatically replaced.",
1173 "undeleterevision" => "Deleted revision as of $1",
1174 "undeletebtn" => "Restore!",
1175 "undeletedarticle" => "restored \"$1\"",
1176 "undeletedtext" => "The article [[$1]] has been successfully restored.
1177 See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
1178
1179 # Contributions
1180 #
1181 "contributions" => "User contributions",
1182 "mycontris" => "My contributions",
1183 "contribsub" => "For $1",
1184 "nocontribs" => "No changes were found matching these criteria.",
1185 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1186 "uclinks" => "View the last $1 changes; view the last $2 days.",
1187 "uctop" => " (top)" ,
1188
1189 # What links here
1190 #
1191 "whatlinkshere" => "What links here",
1192 "notargettitle" => "No target",
1193 "notargettext" => "You have not specified a target page or user
1194 to perform this function on.",
1195 "linklistsub" => "(List of links)",
1196 "linkshere" => "The following pages link to here:",
1197 "nolinkshere" => "No pages link to here.",
1198 "isredirect" => "redirect page",
1199
1200 # Block/unblock IP
1201 #
1202 "blockip" => "Block user",
1203 "blockiptext" => "Use the form below to block write access
1204 from a specific IP address or username.
1205 This should be done only only to prevent vandalism, and in
1206 accordance with [[$wgMetaNamespace:Policy|policy]].
1207 Fill in a specific reason below (for example, citing particular
1208 pages that were vandalized).",
1209 "ipaddress" => "IP Address/username",
1210 "ipbreason" => "Reason",
1211 "ipbsubmit" => "Block this user",
1212 "badipaddress" => "No user exists by that name",
1213 "noblockreason" => "You must supply a reason for the block.",
1214 "blockipsuccesssub" => "Block succeeded",
1215 "blockipsuccesstext" => "\"$1\" has been blocked.
1216 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1217 "unblockip" => "Unblock user",
1218 "unblockiptext" => "Use the form below to restore write access
1219 to a previously blocked IP address or username.",
1220 "ipusubmit" => "Unblock this address",
1221 "ipusuccess" => "\"$1\" unblocked",
1222 "ipblocklist" => "List of blocked IP addresses and usernames",
1223 "blocklistline" => "$1, $2 blocked $3",
1224 "blocklink" => "block",
1225 "unblocklink" => "unblock",
1226 "contribslink" => "contribs",
1227 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1228 "blocklogpage" => "Block_log",
1229 "blocklogentry" => 'blocked "$1"',
1230 "blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
1231 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1232 the list of currently operational bans and blocks.",
1233 "unblocklogentry" => 'unblocked "$1"',
1234
1235 # Developer tools
1236 #
1237 "lockdb" => "Lock database",
1238 "unlockdb" => "Unlock database",
1239 "lockdbtext" => "Locking the database will suspend the ability of all
1240 users to edit pages, change their preferences, edit their watchlists, and
1241 other things requiring changes in the database.
1242 Please confirm that this is what you intend to do, and that you will
1243 unlock the database when your maintenance is done.",
1244 "unlockdbtext" => "Unlocking the database will restore the ability of all
1245 users to edit pages, change their preferences, edit their watchlists, and
1246 other things requiring changes in the database.
1247 Please confirm that this is what you intend to do.",
1248 "lockconfirm" => "Yes, I really want to lock the database.",
1249 "unlockconfirm" => "Yes, I really want to unlock the database.",
1250 "lockbtn" => "Lock database",
1251 "unlockbtn" => "Unlock database",
1252 "locknoconfirm" => "You did not check the confirmation box.",
1253 "lockdbsuccesssub" => "Database lock succeeded",
1254 "unlockdbsuccesssub" => "Database lock removed",
1255 "lockdbsuccesstext" => "The database has been locked.
1256 <br>Remember to remove the lock after your maintenance is complete.",
1257 "unlockdbsuccesstext" => "The database has been unlocked.",
1258
1259 # SQL query
1260 #
1261 "asksql" => "SQL query",
1262 "asksqltext" => "Use the form below to make a direct query of the
1263 database.
1264 Use single quotes ('like this') to delimit string literals.
1265 This can often add considerable load to the server, so please use
1266 this function sparingly.",
1267 "sqlislogged" => "Please note that all queries are logged.",
1268 "sqlquery" => "Enter query",
1269 "querybtn" => "Submit query",
1270 "selectonly" => "Only read-only queries are allowed.",
1271 "querysuccessful" => "Query successful",
1272
1273 # Make sysop
1274 "makesysoptitle" => "Make a user into a sysop",
1275 "makesysoptext" => "This form is used by bureaucrats to turn ordinary users into administrators.
1276 Type the name of the user in the box and press the button to make the user an administrator",
1277 "makesysopname" => "Name of the user:",
1278 "makesysopsubmit" => "Make this user into a sysop",
1279 "makesysopok" => "<b>User '$1' is now a sysop</b>",
1280 "makesysopfail" => "<b>User '$1' could not be made into a sysop. (Did you enter the name correctly?)</b>",
1281
1282 # Move page
1283 #
1284 "movepage" => "Move page",
1285 "movepagetext" => "Using the form below will rename a page, moving all
1286 of its history to the new name.
1287 The old title will become a redirect page to the new title.
1288 Links to the old page title will not be changed; be sure to
1289 [[Special:Maintenance|check]] for double or broken redirects.
1290 You are responsible for making sure that links continue to
1291 point where they are supposed to go.
1292
1293 Note that the page will '''not''' be moved if there is already
1294 a page at the new title, unless it is empty or a redirect and has no
1295 past edit history. This means that you can rename a page back to where
1296 it was just renamed from if you make a mistake, and you cannot overwrite
1297 an existing page.
1298
1299 <b>WARNING!</b>
1300 This can be a drastic and unexpected change for a popular page;
1301 please be sure you understand the consequences of this before
1302 proceeding.",
1303 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1304 *You are moving the page across namespaces,
1305 *A non-empty talk page already exists under the new name, or
1306 *You uncheck the box below.
1307
1308 In those cases, you will have to move or merge the page manually if desired.",
1309 "movearticle" => "Move page",
1310 "movenologin" => "Not logged in",
1311 "movenologintext" => "You must be a registered user and <a href=\"" .
1312 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1313 to move a page.",
1314 "newtitle" => "To new title",
1315 "movepagebtn" => "Move page",
1316 "pagemovedsub" => "Move succeeded",
1317 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1318 "articleexists" => "A page of that name already exists, or the
1319 name you have chosen is not valid.
1320 Please choose another name.",
1321 "talkexists" => "The page itself was moved successfully, but the
1322 talk page could not be moved because one already exists at the new
1323 title. Please merge them manually.",
1324 "movedto" => "moved to",
1325 "movetalk" => "Move \"talk\" page as well, if applicable.",
1326 "talkpagemoved" => "The corresponding talk page was also moved.",
1327 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1328 "1movedto2" => "$1 moved to $2",
1329
1330 # Export
1331
1332 "export" => "Export pages",
1333 "exporttext" => "You can export the text and editing history of a particular
1334 page or set of pages wrapped in some XML; this can then be imported into another
1335 wiki running MediaWiki software, transformed, or just kept for your private
1336 amusement.",
1337 "exportcuronly" => "Include only the current revision, not the full history",
1338
1339 # Namespace 8 related
1340
1341 "allmessages" => "All_messages",
1342 "allmessagestext" => "This is a list of all messages available in the MediaWiki: namespace",
1343
1344 # Thumbnails
1345
1346 "thumbnail-more" => "Enlarge"
1347
1348 );
1349
1350 #--------------------------------------------------------------------------
1351 # Internationalisation code
1352 #--------------------------------------------------------------------------
1353
1354 class Language {
1355 function Language(){
1356 # Copies any missing values in the specified arrays from En to the current language
1357 $fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
1358 $name = get_class( $this );
1359 if( strpos( $name, "language" ) == 0){
1360 $lang = ucfirst( substr( $name, 8 ) );
1361 foreach( $fillin as $arrname ){
1362 $langver = "{$arrname}{$lang}";
1363 $enver = "{$arrname}En";
1364 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1365 continue;
1366 foreach($GLOBALS[$enver] as $spage => $text){
1367 if( ! isset( $GLOBALS[$langver][$spage] ) )
1368 $GLOBALS[$langver][$spage] = $text;
1369 }
1370 }
1371 }
1372 }
1373
1374 function getDefaultUserOptions () {
1375 global $wgDefaultUserOptionsEn ;
1376 return $wgDefaultUserOptionsEn ;
1377 }
1378
1379 function getBookstoreList () {
1380 global $wgBookstoreListEn ;
1381 return $wgBookstoreListEn ;
1382 }
1383
1384 function getNamespaces() {
1385 global $wgNamespaceNamesEn;
1386 return $wgNamespaceNamesEn;
1387 }
1388
1389 function getNsText( $index ) {
1390 global $wgNamespaceNamesEn;
1391 return $wgNamespaceNamesEn[$index];
1392 }
1393
1394 function getNsIndex( $text ) {
1395 global $wgNamespaceNamesEn;
1396
1397 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1398 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1399 }
1400 return false;
1401 }
1402
1403 function specialPage( $name ) {
1404 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1405 }
1406
1407 function getQuickbarSettings() {
1408 global $wgQuickbarSettingsEn;
1409 return $wgQuickbarSettingsEn;
1410 }
1411
1412 function getSkinNames() {
1413 global $wgSkinNamesEn;
1414 return $wgSkinNamesEn;
1415 }
1416
1417 function getMathNames() {
1418 global $wgMathNamesEn;
1419 return $wgMathNamesEn;
1420 }
1421
1422 function getDateFormats() {
1423 global $wgDateFormatsEn;
1424 return $wgDateFormatsEn;
1425 }
1426
1427 function getUserToggles() {
1428 global $wgUserTogglesEn;
1429 return $wgUserTogglesEn;
1430 }
1431
1432 function getLanguageNames() {
1433 global $wgLanguageNamesEn;
1434 return $wgLanguageNamesEn;
1435 }
1436
1437 function getLanguageName( $code ) {
1438 global $wgLanguageNamesEn;
1439 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1440 return "";
1441 }
1442 return $wgLanguageNamesEn[$code];
1443 }
1444
1445 function getMonthName( $key )
1446 {
1447 global $wgMonthNamesEn;
1448 return $wgMonthNamesEn[$key-1];
1449 }
1450
1451 /* by default we just return base form */
1452 function getMonthNameGen( $key )
1453 {
1454 return $this->getMonthName( $key );
1455 }
1456
1457 function getMonthAbbreviation( $key )
1458 {
1459 global $wgMonthAbbreviationsEn;
1460 return $wgMonthAbbreviationsEn[$key-1];
1461 }
1462
1463 function getWeekdayName( $key )
1464 {
1465 global $wgWeekdayNamesEn;
1466 return $wgWeekdayNamesEn[$key-1];
1467 }
1468
1469 function userAdjust( $ts )
1470 {
1471 global $wgUser, $wgLocalTZoffset;
1472
1473 $tz = $wgUser->getOption( "timecorrection" );
1474 if ( $tz === "" ) {
1475 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1476 $minDiff = 0;
1477 } elseif ( strpos( $tz, ":" ) !== false ) {
1478 $tzArray = explode( ":", $tz );
1479 $hrDiff = intval($tzArray[0]);
1480 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1481 } else {
1482 $hrDiff = intval( $tz );
1483 }
1484 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1485
1486 $t = mktime( (
1487 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1488 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1489 (int)substr( $ts, 12, 2 ), # Seconds
1490 (int)substr( $ts, 4, 2 ), # Month
1491 (int)substr( $ts, 6, 2 ), # Day
1492 (int)substr( $ts, 0, 4 ) ); #Year
1493 return date( "YmdHis", $t );
1494 }
1495
1496 function date( $ts, $adj = false )
1497 {
1498 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1499
1500 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1501
1502 if ( $wgUseDynamicDates ) {
1503 $datePreference = $wgUser->getOption( 'date' );
1504 if ( $datePreference == 0 ) {
1505 $datePreference = $wgAmericanDates ? 1 : 2;
1506 }
1507 } else {
1508 $datePreference = $wgAmericanDates ? 1 : 2;
1509 }
1510
1511 if ( $datePreference == 1 ) {
1512 # MDY
1513 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1514 " " . (0 + substr( $ts, 6, 2 )) . ", " .
1515 substr( $ts, 0, 4 );
1516 } else if ( $datePreference == 2 ) {
1517 #DMY
1518 $d = (0 + substr( $ts, 6, 2 )) . " " .
1519 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1520 substr( $ts, 0, 4 );
1521 } else {
1522 #YMD
1523 $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1524 " " . (0 + substr( $ts, 6, 2 ));
1525 }
1526
1527 return $d;
1528 }
1529
1530 function time( $ts, $adj = false )
1531 {
1532 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1533
1534 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1535 return $t;
1536 }
1537
1538 function timeanddate( $ts, $adj = false )
1539 {
1540 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1541 }
1542
1543 function rfc1123( $ts )
1544 {
1545 return date( "D, d M Y H:i:s T", $ts );
1546 }
1547
1548 function getValidSpecialPages()
1549 {
1550 global $wgValidSpecialPagesEn;
1551 return $wgValidSpecialPagesEn;
1552 }
1553
1554 function getSysopSpecialPages()
1555 {
1556 global $wgSysopSpecialPagesEn;
1557 return $wgSysopSpecialPagesEn;
1558 }
1559
1560 function getDeveloperSpecialPages()
1561 {
1562 global $wgDeveloperSpecialPagesEn;
1563 return $wgDeveloperSpecialPagesEn;
1564 }
1565
1566 function getMessage( $key )
1567 {
1568 global $wgAllMessagesEn;
1569 return $wgAllMessagesEn[$key];
1570 }
1571
1572 function getAllMessages()
1573 {
1574 global $wgAllMessagesEn;
1575 return $wgAllMessagesEn;
1576 }
1577
1578 function iconv( $in, $out, $string ) {
1579 # For most languages, this is a wrapper for iconv
1580 return iconv( $in, $out, $string );
1581 }
1582
1583 function ucfirst( $string ) {
1584 # For most languages, this is a wrapper for ucfirst()
1585 return ucfirst( $string );
1586 }
1587
1588 function lcfirst( $s ) {
1589 return strtolower( $s{0} ). substr( $s, 1 );
1590 }
1591
1592 function checkTitleEncoding( $s ) {
1593 global $wgInputEncoding;
1594
1595 # Check for UTF-8 URLs; Internet Explorer produces these if you
1596 # type non-ASCII chars in the URL bar or follow unescaped links.
1597 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1598 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1599 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1600
1601 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1602 return iconv( "UTF-8", $wgInputEncoding, $s );
1603
1604 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1605 return utf8_encode( $s );
1606
1607 # Other languages can safely leave this function, or replace
1608 # it with one to detect and convert another legacy encoding.
1609 return $s;
1610 }
1611
1612 function stripForSearch( $in ) {
1613 # Some languages have special punctuation to strip out
1614 # or characters which need to be converted for MySQL's
1615 # indexing to grok it correctly. Make such changes here.
1616 return $in;
1617 }
1618
1619
1620 function setAltEncoding() {
1621 # Some languages may have an alternate char encoding option
1622 # (Esperanto X-coding, Japanese furigana conversion, etc)
1623 # If 'altencoding' is checked in user prefs, this gives a
1624 # chance to swap out the default encoding settings.
1625 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1626 }
1627
1628 function recodeForEdit( $s ) {
1629 # For some languages we'll want to explicitly specify
1630 # which characters make it into the edit box raw
1631 # or are converted in some way or another.
1632 # Note that if wgOutputEncoding is different from
1633 # wgInputEncoding, this text will be further converted
1634 # to wgOutputEncoding.
1635 global $wgInputEncoding, $wgEditEncoding;
1636 if( $wgEditEncoding == "" or
1637 $wgEditEncoding == $wgInputEncoding ) {
1638 return $s;
1639 } else {
1640 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1641 }
1642 }
1643
1644 function recodeInput( $s ) {
1645 # Take the previous into account.
1646 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1647 if($wgEditEncoding != "") {
1648 $enc = $wgEditEncoding;
1649 } else {
1650 $enc = $wgOutputEncoding;
1651 }
1652 if( $enc == $wgInputEncoding ) {
1653 return $s;
1654 } else {
1655 return $this->iconv( $enc, $wgInputEncoding, $s );
1656 }
1657 }
1658
1659 # For right-to-left language support
1660 function isRTL() { return false; }
1661
1662 function getMagicWords()
1663 {
1664 global $wgMagicWordsEn;
1665 return $wgMagicWordsEn;
1666 }
1667
1668 # Fill a MagicWord object with data from here
1669 function getMagic( &$mw )
1670 {
1671 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1672 $rawEntry = $raw[$mw->mId];
1673 $mw->mCaseSensitive = $rawEntry[0];
1674 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1675 }
1676
1677 # Italic is unsuitable for some languages
1678 function emphasize( $text )
1679 {
1680 return "<em>$text</em>";
1681 }
1682 }
1683
1684 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
1685
1686 ?>