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