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