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