Created a new page, "SpecialAllmessages.php", which builds
[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 "Booksources" => "External book sources",
398 # "Categories" => "Page categories",
399 "Export" => "XML page export",
400 "Version" => "Show MediaWiki version",
401 );
402
403 /* private */ $wgSysopSpecialPagesEn = array(
404 "Blockip" => "Block a user/IP address",
405 "Asksql" => "Query the database",
406 "Allmessages" => "All system messages",
407 "Undelete" => "Restore deleted pages",
408 "Makesysop" => "Turn a user into a sysop"
409 );
410
411 /* private */ $wgDeveloperSpecialPagesEn = array(
412 "Lockdb" => "Make database read-only",
413 "Unlockdb" => "Restore DB write access"
414 );
415
416 #-------------------------------------------------------------------
417 # Default messages
418 #-------------------------------------------------------------------
419 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
420 # hyphen (-). If you need more characters, you may be able to change
421 # the regex in MagicWord::initRegex
422
423 /* private */ $wgAllMessagesEn = array(
424
425 # Bits of text used by many pages:
426 #
427 "categories" => "Page categories",
428 "category" => "category",
429 "category_header" => "Articles in category \"$1\"",
430 "subcategories" => "Subcategories",
431
432 "linktrail" => "/^([a-z]+)(.*)\$/sD",
433 "mainpage" => "Main Page",
434 "mainpagetext" => "Wiki software successfully installed.",
435 "about" => "About",
436 "aboutwikipedia" => "About $wgSitename",
437 "aboutpage" => "$wgMetaNamespace:About",
438 "help" => "Help",
439 "helppage" => "$wgMetaNamespace:Help",
440 "wikititlesuffix" => "$wgSitename",
441 "bugreports" => "Bug reports",
442 "bugreportspage" => "$wgMetaNamespace:Bug_reports",
443 "sitesupport" => "Donations",
444 "sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
445 "faq" => "FAQ",
446 "faqpage" => "$wgMetaNamespace:FAQ",
447 "edithelp" => "Editing help",
448 "edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
449 "cancel" => "Cancel",
450 "qbfind" => "Find",
451 "qbbrowse" => "Browse",
452 "qbedit" => "Edit",
453 "qbpageoptions" => "This page",
454 "qbpageinfo" => "Context",
455 "qbmyoptions" => "My pages",
456 "qbspecialpages" => "Special pages",
457 "moredotdotdot" => "More...",
458 "mypage" => "My page",
459 "mytalk" => "My talk",
460 "currentevents" => "Current events",
461 "disclaimers" => "Disclaimers",
462 "disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
463 "errorpagetitle" => "Error",
464 "returnto" => "Return to $1.",
465 "fromwikipedia" => "From $wgSitename, the free encyclopedia.",
466 "whatlinkshere" => "Pages that link here",
467 "help" => "Help",
468 "search" => "Search",
469 "go" => "Go",
470 "history" => "Page history",
471 "printableversion" => "Printable version",
472 "editthispage" => "Edit this page",
473 "deletethispage" => "Delete this page",
474 "protectthispage" => "Protect this page",
475 "unprotectthispage" => "Unprotect this page",
476 "newpage" => "New page",
477 "talkpage" => "Discuss this page",
478 "postcomment" => "Post a comment",
479 "articlepage" => "View article",
480 "subjectpage" => "View subject", # For compatibility
481 "userpage" => "View user page",
482 "wikipediapage" => "View meta page",
483 "imagepage" => "View image page",
484 "viewtalkpage" => "View discussion",
485 "otherlanguages" => "Other languages",
486 "redirectedfrom" => "(Redirected from $1)",
487 "lastmodified" => "This page was last modified $1.",
488 "viewcount" => "This page has been accessed $1 times.",
489 "gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
490 "printsubtitle" => "(From $wgServer)",
491 "protectedpage" => "Protected page",
492 "administrators" => "$wgMetaNamespace:Administrators",
493 "sysoptitle" => "Sysop access required",
494 "sysoptext" => "The action you have requested can only be
495 performed by users with \"sysop\" status.
496 See $1.",
497 "developertitle" => "Developer access required",
498 "developertext" => "The action you have requested can only be
499 performed by users with \"developer\" status.
500 See $1.",
501 "bureaucrattitle" => "Bureaucrat access required",
502 "bureaucrattext" => "The action you have requested can only be
503 performed by sysops with \"bureaucrat\" status.",
504 "nbytes" => "$1 bytes",
505 "go" => "Go",
506 "ok" => "OK",
507 "sitetitle" => "$wgSitename",
508 "sitesubtitle" => "The Free Encyclopedia",
509 "retrievedfrom" => "Retrieved from \"$1\"",
510 "newmessages" => "You have $1.",
511 "newmessageslink" => "new messages",
512 "editsection"=>"edit",
513 "toc" => "Table of contents",
514 "showtoc" => "show",
515 "hidetoc" => "hide",
516 "thisisdeleted" => "View or restore $1?",
517 "restorelink" => "$1 deleted edits",
518
519 # Main script and global functions
520 #
521 "nosuchaction" => "No such action",
522 "nosuchactiontext" => "The action specified by the URL is not
523 recognized by the wiki",
524 "nosuchspecialpage" => "No such special page",
525 "nospecialpagetext" => "You have requested a special page that is not
526 recognized by the wiki.",
527
528 # General errors
529 #
530 "error" => "Error",
531 "databaseerror" => "Database error",
532 "dberrortext" => "A database query syntax error has occurred.
533 This could be because of an illegal search query (see $5),
534 or it may indicate a bug in the software.
535 The last attempted database query was:
536 <blockquote><tt>$1</tt></blockquote>
537 from within function \"<tt>$2</tt>\".
538 MySQL returned error \"<tt>$3: $4</tt>\".",
539 "dberrortextcl" => "A database query syntax error has occurred.
540 The last attempted database query was:
541 \"$1\"
542 from within function \"$2\".
543 MySQL returned error \"$3: $4\".\n",
544 "noconnect" => "Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.",
545 "nodb" => "Could not select database $1",
546 "cachederror" => "The following is a cached copy of the requested page, and may not be up to date.",
547 "readonly" => "Database locked",
548 "enterlockreason" => "Enter a reason for the lock, including an estimate
549 of when the lock will be released",
550 "readonlytext" => "The database is currently locked to new
551 entries and other modifications, probably for routine database maintenance,
552 after which it will be back to normal.
553 The administrator who locked it offered this explanation:
554 <p>$1",
555 "missingarticle" => "The database did not find the text of a page
556 that it should have found, named \"$1\".
557
558 <p>This is usually caused by following an outdated diff or history link to a
559 page that has been deleted.
560
561 <p>If this is not the case, you may have found a bug in the software.
562 Please report this to an administrator, making note of the URL.",
563 "internalerror" => "Internal error",
564 "filecopyerror" => "Could not copy file \"$1\" to \"$2\".",
565 "filerenameerror" => "Could not rename file \"$1\" to \"$2\".",
566 "filedeleteerror" => "Could not delete file \"$1\".",
567 "filenotfound" => "Could not find file \"$1\".",
568 "unexpected" => "Unexpected value: \"$1\"=\"$2\".",
569 "formerror" => "Error: could not submit form",
570 "badarticleerror" => "This action cannot be performed on this page.",
571 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
572 "badtitle" => "Bad title",
573 "badtitletext" => "The requested page title was invalid, empty, or
574 an incorrectly linked inter-language or inter-wiki title.",
575 "perfdisabled" => "Sorry! This feature has been temporarily disabled
576 because it slows the database down to the point that no one can use
577 the wiki.",
578 "perfdisabledsub" => "Here's a saved copy from $1:",
579 "wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
580 Function: $1<br>
581 Query: $2
582 ",
583 "viewsource" => "View source",
584 "protectedtext" => "This page has been locked to prevent editing; there are
585 a number of reasons why this may be so, please see
586 [[$wgMetaNamespace:Protected page]].
587
588 You can view and copy the source of this page:",
589
590 # Login and logout pages
591 #
592 "logouttitle" => "User logout",
593 "logouttext" => "You are now logged out.
594 You can continue to use $wgSitename anonymously, or you can log in
595 again as the same or as a different user. Note that some pages may
596 continue to be displayed as if you were still logged in, until you clear
597 your browser cache\n",
598
599 "welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
600 Don't forget to change your $wgSitename preferences.",
601
602 "loginpagetitle" => "User login",
603 "yourname" => "Your user name",
604 "yourpassword" => "Your password",
605 "yourpasswordagain" => "Retype password",
606 "newusersonly" => " (new users only)",
607 "remembermypassword" => "Remember my password across sessions.",
608 "loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
609 "alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
610
611 "login" => "Log in",
612 "loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
613 "userlogin" => "Log in",
614 "logout" => "Log out",
615 "userlogout" => "Log out",
616 "notloggedin" => "Not logged in",
617 "createaccount" => "Create new account",
618 "createaccountmail" => "by eMail",
619 "badretype" => "The passwords you entered do not match.",
620 "userexists" => "The user name you entered is already in use. Please choose a different name.",
621 "youremail" => "Your e-mail*",
622 "yournick" => "Your nickname (for signatures)",
623 "emailforlost" => "* Entering an email address is optional. But it enables people to
624 contact you through the website without you having to reveal your
625 email address to them, and it also helps you if you forget your
626 password.",
627 "loginerror" => "Login error",
628 "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.",
629 "nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
630 "noname" => "You have not specified a valid user name.",
631 "loginsuccesstitle" => "Login successful",
632 "loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
633 "nosuchuser" => "There is no user by the name \"$1\".
634 Check your spelling, or use the form below to create a new user account.",
635 "wrongpassword" => "The password you entered is incorrect. Please try again.",
636 "mailmypassword" => "Mail me a new password",
637 "passwordremindertitle" => "Password reminder from $wgSitename",
638 "passwordremindertext" => "Someone (probably you, from IP address $1)
639 requested that we send you a new $wgSitename login password.
640 The password for user \"$2\" is now \"$3\".
641 You should log in and change your password now.",
642 "noemail" => "There is no e-mail address recorded for user \"$1\".",
643 "passwordsent" => "A new password has been sent to the e-mail address
644 registered for \"$1\".
645 Please log in again after you receive it.",
646 "loginend" => "",
647
648 # Edit page toolbar
649 "bold_sample"=>"Bold text",
650 "bold_tip"=>"Bold text",
651 "italic_sample"=>"Italic text",
652 "italic_tip"=>"Italic text",
653 "link_sample"=>"Link title",
654 "link_tip"=>"Internal link",
655 "extlink_sample"=>"http://www.example.com link title",
656 "extlink_tip"=>"External link (remember http:// prefix)",
657 "headline_sample"=>"Headline text",
658 "headline_tip"=>"Level 2 headline",
659 "math_sample"=>"Insert formula here",
660 "math_tip"=>"Mathematical formula (LaTeX)",
661 "nowiki_sample"=>"Insert non-formatted text here",
662 "nowiki_tip"=>"Ignore wiki formatting",
663 "image_sample"=>"Example.jpg",
664 "image_tip"=>"Embedded image",
665 "media_sample"=>"Example.mp3",
666 "media_tip"=>"Media file link",
667 "sig_tip"=>"Your signature with timestamp",
668 "hr_tip"=>"Horizontal line (use sparingly)",
669 "infobox"=>"Click a button to get an example text",
670
671 # Edit pages
672 #
673 "summary" => "Summary",
674 "subject" => "Subject/headline",
675 "minoredit" => "This is a minor edit",
676 "watchthis" => "Watch this article",
677 "savearticle" => "Save page",
678 "preview" => "Preview",
679 "showpreview" => "Show preview",
680 "blockedtitle" => "User is blocked",
681 "blockedtext" => "Your user name or IP address has been blocked by $1.
682 The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
683 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
684
685 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]].
686
687 Your IP address is $3. Please include this address in any queries you make.
688 ",
689 "whitelistedittitle" => "Login required to edit",
690 "whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
691 "whitelistreadtitle" => "Login required to read",
692 "whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
693 "whitelistacctitle" => "You are not allowed to create an account",
694 "whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
695 "accmailtitle" => "Password sent.",
696 "accmailtext" => "The Password for '$1' has been sent to $2.",
697 "newarticle" => "(New)",
698 "newarticletext" =>
699 "You've followed a link to a page that doesn't exist yet.
700 To create the page, start typing in the box below
701 (see the [[$wgMetaNamespace:Help|help page]] for more info).
702 If you are here by mistake, just click your browser's '''back''' button.",
703 "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.'' ",
704 "noarticletext" => "(There is currently no text in this page)",
705 "updated" => "(Updated)",
706 "note" => "<strong>Note:</strong> ",
707 "previewnote" => "Remember that this is only a preview, and has not yet been saved!",
708 "previewconflict" => "This preview reflects the text in the upper
709 text editing area as it will appear if you choose to save.",
710 "editing" => "Editing $1",
711 "sectionedit" => " (section)",
712 "commentedit" => " (comment)",
713 "editconflict" => "Edit conflict: $1",
714 "explainconflict" => "Someone else has changed this page since you
715 started editing it.
716 The upper text area contains the page text as it currently exists.
717 Your changes are shown in the lower text area.
718 You will have to merge your changes into the existing text.
719 <b>Only</b> the text in the upper text area will be saved when you
720 press \"Save page\".\n<p>",
721 "yourtext" => "Your text",
722 "storedversion" => "Stored version",
723 "editingold" => "<strong>WARNING: You are editing an out-of-date
724 revision of this page.
725 If you save it, any changes made since this revision will be lost.</strong>\n",
726 "yourdiff" => "Differences",
727 # FIXME: This is inappropriate for third-party use!
728 "copyrightwarning" => "Please note that all contributions to $wgSitename are
729 considered to be released under the GNU Free Documentation License
730 (see $1 for details).
731 If you don't want your writing to be edited mercilessly and redistributed
732 at will, then don't submit it here.<br>
733 You are also promising us that you wrote this yourself, or copied it from a
734 public domain or similar free resource.
735 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
736 "longpagewarning" => "WARNING: This page is $1 kilobytes long; some
737 browsers may have problems editing pages approaching or longer than 32kb.
738 Please consider breaking the page into smaller sections.",
739 "readonlywarning" => "WARNING: The database has been locked for maintenance,
740 so you will not be able to save your edits right now. You may wish to cut-n-paste
741 the text into a text file and save it for later.",
742 "protectedpagewarning" => "WARNING: This page has been locked so that only
743 users with sysop privileges can edit it. Be sure you are following the
744 <a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
745 guidelines</a>.",
746
747 # History pages
748 #
749 "revhistory" => "Revision history",
750 "nohistory" => "There is no edit history for this page.",
751 "revnotfound" => "Revision not found",
752 "revnotfoundtext" => "The old revision of the page you asked for could not be found.
753 Please check the URL you used to access this page.\n",
754 "loadhist" => "Loading page history",
755 "currentrev" => "Current revision",
756 "revisionasof" => "Revision as of $1",
757 "cur" => "cur",
758 "next" => "next",
759 "last" => "last",
760 "orig" => "orig",
761 "histlegend" => "Legend: (cur) = difference with current version,
762 (last) = difference with preceding version, M = minor edit",
763
764 # Diffs
765 #
766 "difference" => "(Difference between revisions)",
767 "loadingrev" => "loading revision for diff",
768 "lineno" => "Line $1:",
769 "editcurrent" => "Edit the current version of this page",
770
771 # Search results
772 #
773 "searchresults" => "Search results",
774 "searchhelppage" => "$wgMetaNamespace:Searching",
775 "searchingwikipedia" => "Searching $wgSitename",
776 "searchresulttext" => "For more information about searching $wgSitename, see $1.",
777 "searchquery" => "For query \"$1\"",
778 "badquery" => "Badly formed search query",
779 "badquerytext" => "We could not process your query.
780 This is probably because you have attempted to search for a
781 word fewer than three letters long, which is not yet supported.
782 It could also be that you have mistyped the expression, for
783 example \"fish and and scales\".
784 Please try another query.",
785 "matchtotals" => "The query \"$1\" matched $2 article titles
786 and the text of $3 articles.",
787 "nogomatch" => "No page with this exact title exists, trying full text search.",
788 "titlematches" => "Article title matches",
789 "notitlematches" => "No article title matches",
790 "textmatches" => "Article text matches",
791 "notextmatches" => "No article text matches",
792 "prevn" => "previous $1",
793 "nextn" => "next $1",
794 "viewprevnext" => "View ($1) ($2) ($3).",
795 "showingresults" => "Showing below <b>$1</b> results starting with #<b>$2</b>.",
796 "showingresultsnum" => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
797 "nonefound" => "<strong>Note</strong>: unsuccessful searches are
798 often caused by searching for common words like \"have\" and \"from\",
799 which are not indexed, or by specifying more than one search term (only pages
800 containing all of the search terms will appear in the result).",
801 "powersearch" => "Search",
802 "powersearchtext" => "
803 Search in namespaces :<br>
804 $1<br>
805 $2 List redirects &nbsp; Search for $3 $9",
806 "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>",
807 "googlesearch" => "
808 <!-- SiteSearch Google -->
809 <FORM method=GET action=\"http://www.google.com/search\">
810 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
811 <A HREF=\"http://www.google.com/\">
812 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
813 border=\"0\" ALT=\"Google\"></A>
814 </td>
815 <td>
816 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
817 <INPUT type=submit name=btnG VALUE=\"Google Search\">
818 <font size=-1>
819 <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>
820 <input type='hidden' name='ie' value='$2'>
821 <input type='hidden' name='oe' value='$2'>
822 </font>
823 </td></tr></TABLE>
824 </FORM>
825 <!-- SiteSearch Google -->",
826 "blanknamespace" => "(Main)",
827
828 # Preferences page
829 #
830 "preferences" => "Preferences",
831 "prefsnologin" => "Not logged in",
832 "prefsnologintext" => "You must be <a href=\"" .
833 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
834 to set user preferences.",
835 "prefslogintext" => "You are logged in as \"$1\".
836 Your internal ID number is $2.
837
838 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
839 "prefsreset" => "Preferences have been reset from storage.",
840 "qbsettings" => "Quickbar settings",
841 "changepassword" => "Change password",
842 "skin" => "Skin",
843 "math" => "Rendering math",
844 "dateformat" => "Date format",
845 "math_failure" => "Failed to parse",
846 "math_unknown_error" => "unknown error",
847 "math_unknown_function" => "unknown function ",
848 "math_lexing_error" => "lexing error",
849 "math_syntax_error" => "syntax error",
850 "math_image_error" => "PNG conversion failed",
851 "saveprefs" => "Save preferences",
852 "resetprefs" => "Reset preferences",
853 "oldpassword" => "Old password",
854 "newpassword" => "New password",
855 "retypenew" => "Retype new password",
856 "textboxsize" => "Textbox dimensions",
857 "rows" => "Rows",
858 "columns" => "Columns",
859 "searchresultshead" => "Search result settings",
860 "resultsperpage" => "Hits to show per page",
861 "contextlines" => "Lines to show per hit",
862 "contextchars" => "Characters of context per line",
863 "stubthreshold" => "Threshold for stub display",
864 "recentchangescount" => "Number of titles in recent changes",
865 "savedprefs" => "Your preferences have been saved.",
866 "timezonetext" => "Enter number of hours your local time differs
867 from server time (UTC).",
868 "localtime" => "Local time display",
869 "timezoneoffset" => "Offset",
870 "servertime" => "Server time is now",
871 "guesstimezone" => "Fill in from browser",
872 "emailflag" => "Disable e-mail from other users",
873 "defaultns" => "Search in these namespaces by default:",
874
875 # Recent changes
876 #
877 "changes" => "changes",
878 "recentchanges" => "Recent changes",
879 "recentchangestext" => "Track the most recent changes to the wiki on this page.",
880 "rcloaderr" => "Loading recent changes",
881 "rcnote" => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
882 "rcnotefrom" => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
883 "rclistfrom" => "Show new changes starting from $1",
884 # "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
885 # "rclinks" => "Show last $1 changes in last $2 days.",
886 "showhideminor" => "$1 minor edits | $2 bots | $3 logged in users ",
887 "rclinks" => "Show last $1 changes in last $2 days<br>$3",
888 "rchide" => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
889 "rcliu" => "; $1 edits from logged in users",
890 "diff" => "diff",
891 "hist" => "hist",
892 "hide" => "hide",
893 "show" => "show",
894 "tableform" => "table",
895 "listform" => "list",
896 "nchanges" => "$1 changes",
897 "minoreditletter" => "M",
898 "newpageletter" => "N",
899
900 # Upload
901 #
902 "upload" => "Upload file",
903 "uploadbtn" => "Upload file",
904 "uploadlink" => "Upload images",
905 "reupload" => "Re-upload",
906 "reuploaddesc" => "Return to the upload form.",
907 "uploadnologin" => "Not logged in",
908 "uploadnologintext" => "You must be <a href=\"" .
909 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
910 to upload files.",
911 "uploadfile" => "Upload images, sounds, documents etc.",
912 "uploaderror" => "Upload error",
913 "uploadtext" => "<strong>STOP!</strong> Before you upload here,
914 make sure to read and follow the <a href=\"" .
915 wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
916 <p>If a file with the name you are specifying already
917 exists on the wiki, it'll be replaced without warning.
918 So unless you mean to update a file, it's a good idea
919 to first check if such a file exists.
920 <p>To view or search previously uploaded images,
921 go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
922 "\">list of uploaded images</a>.
923 Uploads and deletions are logged on the <a href=\"" .
924 wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
925 <p>Use the form below to upload new image files for use in
926 illustrating your articles.
927 On most browsers, you will see a \"Browse...\" button, which will
928 bring up your operating system's standard file open dialog.
929 Choosing a file will fill the name of that file into the text
930 field next to the button.
931 You must also check the box affirming that you are not
932 violating any copyrights by uploading the file.
933 Press the \"Upload\" button to finish the upload.
934 This may take some time if you have a slow internet connection.
935 <p>The preferred formats are JPEG for photographic images, PNG
936 for drawings and other iconic images, and OGG for sounds.
937 Please name your files descriptively to avoid confusion.
938 To include the image in an article, use a link in the form
939 <b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
940 or <b>[[media:file.ogg]]</b> for sounds.
941 <p>Please note that as with wiki pages, others may edit or
942 delete your uploads if they think it serves the encyclopedia, and
943 you may be blocked from uploading if you abuse the system.",
944
945 "uploadlog" => "upload log",
946 "uploadlogpage" => "Upload_log",
947 "uploadlogpagetext" => "Below is a list of the most recent file uploads.
948 All times shown are server time (UTC).
949 <ul>
950 </ul>
951 ",
952 "filename" => "Filename",
953 "filedesc" => "Summary",
954 "filestatus" => "Copyright status",
955 "filesource" => "Source",
956 "affirmation" => "I affirm that the copyright holder of this file
957 agrees to license it under the terms of the $1.",
958 "copyrightpage" => "$wgMetaNamespace:Copyrights",
959 "copyrightpagename" => "$wgSitename copyright",
960 "uploadedfiles" => "Uploaded files",
961 "noaffirmation" => "You must affirm that your upload does not violate
962 any copyrights.",
963 "ignorewarning" => "Ignore warning and save file anyway.",
964 "minlength" => "Image names must be at least three letters.",
965 "badfilename" => "Image name has been changed to \"$1\".",
966 "badfiletype" => "\".$1\" is not a recommended image file format.",
967 "largefile" => "It is recommended that images not exceed 100k in size.",
968 "successfulupload" => "Successful upload",
969 "fileuploaded" => "File \"$1\" uploaded successfully.
970 Please follow this link: ($2) to the description page and fill
971 in information about the file, such as where it came from, when it was
972 created and by whom, and anything else you may know about it.",
973 "uploadwarning" => "Upload warning",
974 "savefile" => "Save file",
975 "uploadedimage" => "uploaded \"$1\"",
976 "uploaddisabled" => "Sorry, uploading is disabled.",
977
978 # Image list
979 #
980 "imagelist" => "Image list",
981 "imagelisttext" => "Below is a list of $1 images sorted $2.",
982 "getimagelist" => "fetching image list",
983 "ilshowmatch" => "Show all images with names matching",
984 "ilsubmit" => "Search",
985 "showlast" => "Show last $1 images sorted $2.",
986 "all" => "all",
987 "byname" => "by name",
988 "bydate" => "by date",
989 "bysize" => "by size",
990 "imgdelete" => "del",
991 "imgdesc" => "desc",
992 "imglegend" => "Legend: (desc) = show/edit image description.",
993 "imghistory" => "Image history",
994 "revertimg" => "rev",
995 "deleteimg" => "del",
996 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
997 this old version, (rev) = revert to this old version.
998 <br><i>Click on date to see image uploaded on that date</i>.",
999 "imagelinks" => "Image links",
1000 "linkstoimage" => "The following pages link to this image:",
1001 "nolinkstoimage" => "There are no pages that link to this image.",
1002
1003 # Statistics
1004 #
1005 "statistics" => "Statistics",
1006 "sitestats" => "Site statistics",
1007 "userstats" => "User statistics",
1008 "sitestatstext" => "There are <b>$1</b> total pages in the database.
1009 This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
1010 pages, redirects, and others that probably don't qualify as articles.
1011 Excluding those, there are <b>$2</b> pages that are probably legitimate
1012 articles.<p>
1013 There have been a total of <b>$3</b> page views, and <b>$4</b> page edits
1014 since the software was upgraded (July 20, 2002).
1015 That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
1016 "userstatstext" => "There are <b>$1</b> registered users.
1017 <b>$2</b> of these are administrators (see $3).",
1018
1019 # Maintenance Page
1020 #
1021 "maintenance" => "Maintenance page",
1022 "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 ;-)",
1023 "maintenancebacklink" => "Back to Maintenance Page",
1024 "disambiguations" => "Disambiguation pages",
1025 "disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
1026 "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.",
1027 "doubleredirects" => "Double Redirects",
1028 "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.",
1029 "brokenredirects" => "Broken Redirects",
1030 "brokenredirectstext" => "The following redirects link to a non-existing article.",
1031 "selflinks" => "Pages with Self Links",
1032 "selflinkstext" => "The following pages contain a link to themselves, which they should not.",
1033 "mispeelings" => "Pages with misspellings",
1034 "mispeelingstext" => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1035 "mispeelingspage" => "List of common misspellings",
1036 "missinglanguagelinks" => "Missing Language Links",
1037 "missinglanguagelinksbutton" => "Find missing language links for",
1038 "missinglanguagelinkstext" => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1039
1040
1041 # Miscellaneous special pages
1042 #
1043 "orphans" => "Orphaned pages",
1044 "lonelypages" => "Orphaned pages",
1045 "unusedimages" => "Unused images",
1046 "popularpages" => "Popular pages",
1047 "nviews" => "$1 views",
1048 "wantedpages" => "Wanted pages",
1049 "nlinks" => "$1 links",
1050 "allpages" => "All pages",
1051 "randompage" => "Random page",
1052 "shortpages" => "Short pages",
1053 "longpages" => "Long pages",
1054 "deadendpages" => "Dead-end pages",
1055 "listusers" => "User list",
1056 "specialpages" => "Special pages",
1057 "spheading" => "Special pages for all users",
1058 "sysopspheading" => "For sysop use only",
1059 "developerspheading" => "For developer use only",
1060 "protectpage" => "Protect page",
1061 "recentchangeslinked" => "Related changes",
1062 "rclsub" => "(to pages linked from \"$1\")",
1063 "debug" => "Debug",
1064 "newpages" => "New pages",
1065 "ancientpages" => "Oldest articles",
1066 "intl" => "Interlanguage links",
1067 "movethispage" => "Move this page",
1068 "unusedimagestext" => "<p>Please note that other web sites may link to an image with
1069 a direct URL, and so may still be listed here despite being
1070 in active use.",
1071 "booksources" => "Book sources",
1072 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1073 "booksourcetext" => "Below is a list of links to other sites that
1074 sell new and used books, and may also have further information
1075 about books you are looking for.
1076 $wgSitename is not affiliated with any of these businesses, and
1077 this list should not be construed as an endorsement.",
1078 "alphaindexline" => "$1 to $2",
1079 "version" => "Version",
1080
1081 # Email this user
1082 #
1083 "mailnologin" => "No send address",
1084 "mailnologintext" => "You must be <a href=\"" .
1085 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1086 and have a valid e-mail address in your <a href=\"" .
1087 wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
1088 to send e-mail to other users.",
1089 "emailuser" => "E-mail this user",
1090 "emailpage" => "E-mail user",
1091 "emailpagetext" => "If this user has entered a valid e-mail address in
1092 his or her user preferences, the form below will send a single message.
1093 The e-mail address you entered in your user preferences will appear
1094 as the \"From\" address of the mail, so the recipient will be able
1095 to reply.",
1096 "defemailsubject" => "$wgSitename e-mail",
1097 "noemailtitle" => "No e-mail address",
1098 "noemailtext" => "This user has not specified a valid e-mail address,
1099 or has chosen not to receive e-mail from other users.",
1100 "emailfrom" => "From",
1101 "emailto" => "To",
1102 "emailsubject" => "Subject",
1103 "emailmessage" => "Message",
1104 "emailsend" => "Send",
1105 "emailsent" => "E-mail sent",
1106 "emailsenttext" => "Your e-mail message has been sent.",
1107
1108 # Watchlist
1109 #
1110 "watchlist" => "My watchlist",
1111 "watchlistsub" => "(for user \"$1\")",
1112 "nowatchlist" => "You have no items on your watchlist.",
1113 "watchnologin" => "Not logged in",
1114 "watchnologintext" => "You must be <a href=\"" .
1115 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1116 to modify your watchlist.",
1117 "addedwatch" => "Added to watchlist",
1118 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
1119 wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
1120 Future changes to this page and its associated Talk page will be listed there,
1121 and the page will appear <b>bolded</b> in the <a href=\"" .
1122 wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
1123 make it easier to pick out.</p>
1124
1125 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1126 "removedwatch" => "Removed from watchlist",
1127 "removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
1128 "watchthispage" => "Watch this page",
1129 "unwatchthispage" => "Stop watching",
1130 "notanarticle" => "Not an article",
1131 "watchnochange" => "None of your watched items were edited in the time period displayed.",
1132 "watchdetails" => "($1 pages watched not counting talk pages;
1133 $2 total pages edited since cutoff;
1134 $3...
1135 <a href='$4'>show and edit complete list</a>.)",
1136 "watchmethod-recent"=> "checking recent edits for watched pages",
1137 "watchmethod-list" => "checking watched pages for recent edits",
1138 "removechecked" => "Remove checked items from watchlist",
1139 "watchlistcontains" => "Your watchlist contains $1 pages.",
1140 "watcheditlist" => "Here's an alphabetical list of your
1141 watched pages. Check the boxes of pages you want to remove
1142 from your watchlist and click the 'remove checked' button
1143 at the bottom of the screen.",
1144 "removingchecked" => "Removing requested items from watchlist...",
1145 "couldntremove" => "Couldn't remove item '$1'...",
1146 "iteminvalidname" => "Problem with item '$1', invalid name...",
1147 "wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
1148 "wlshowlast" => "Show last $1 hours $2 days $3",
1149 "wlsaved" => "This is a saved version of your watchlist.",
1150
1151
1152 # Delete/protect/revert
1153 #
1154 "deletepage" => "Delete page",
1155 "confirm" => "Confirm",
1156 "excontent" => "content was:",
1157 "exbeforeblank" => "content before blanking was:",
1158 "exblank" => "page was empty",
1159 "confirmdelete" => "Confirm delete",
1160 "deletesub" => "(Deleting \"$1\")",
1161 "historywarning" => "Warning: The page you are about to delete has a history: ",
1162 "confirmdeletetext" => "You are about to permanently delete a page
1163 or image along with all of its history from the database.
1164 Please confirm that you intend to do this, that you understand the
1165 consequences, and that you are doing this in accordance with
1166 [[$wgMetaNamespace:Policy]].",
1167 "confirmcheck" => "Yes, I really want to delete this.",
1168 "actioncomplete" => "Action complete",
1169 "deletedtext" => "\"$1\" has been deleted.
1170 See $2 for a record of recent deletions.",
1171 "deletedarticle" => "deleted \"$1\"",
1172 "dellogpage" => "Deletion_log",
1173 "dellogpagetext" => "Below is a list of the most recent deletions.
1174 All times shown are server time (UTC).
1175 <ul>
1176 </ul>
1177 ",
1178 "deletionlog" => "deletion log",
1179 "reverted" => "Reverted to earlier revision",
1180 "deletecomment" => "Reason for deletion",
1181 "imagereverted" => "Revert to earlier version was successful.",
1182 "rollback" => "Roll back edits",
1183 "rollbacklink" => "rollback",
1184 "rollbackfailed" => "Rollback failed",
1185 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
1186 "alreadyrolled" => "Cannot rollback last edit of [[$1]]
1187 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
1188
1189 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1190 # only shown if there is an edit comment
1191 "editcomment" => "The edit comment was: \"<i>$1</i>\".",
1192 "revertpage" => "Reverted edit of $2, changed back to last version by $1",
1193 "protectlogpage" => "Protection_log",
1194 "protectlogtext" => "Below is a list of page locks/unlocks.
1195 See [[$wgMetaNamespace:Protected page]] for more information.",
1196 "protectedarticle" => "protected [[$1]]",
1197 "unprotectedarticle" => "unprotected [[$1]]",
1198
1199 # Undelete
1200 "undelete" => "Restore deleted page",
1201 "undeletepage" => "View and restore deleted pages",
1202 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
1203 can be restored. The archive may be periodically cleaned out.",
1204 "undeletearticle" => "Restore deleted article",
1205 "undeleterevisions" => "$1 revisions archived",
1206 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
1207 If a new page with the same name has been created since the deletion, the restored
1208 revisions will appear in the prior history, and the current revision of the live page
1209 will not be automatically replaced.",
1210 "undeleterevision" => "Deleted revision as of $1",
1211 "undeletebtn" => "Restore!",
1212 "undeletedarticle" => "restored \"$1\"",
1213 "undeletedtext" => "The article [[$1]] has been successfully restored.
1214 See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
1215
1216 # Contributions
1217 #
1218 "contributions" => "User contributions",
1219 "mycontris" => "My contributions",
1220 "contribsub" => "For $1",
1221 "nocontribs" => "No changes were found matching these criteria.",
1222 "ucnote" => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1223 "uclinks" => "View the last $1 changes; view the last $2 days.",
1224 "uctop" => " (top)" ,
1225
1226 # What links here
1227 #
1228 "whatlinkshere" => "What links here",
1229 "notargettitle" => "No target",
1230 "notargettext" => "You have not specified a target page or user
1231 to perform this function on.",
1232 "linklistsub" => "(List of links)",
1233 "linkshere" => "The following pages link to here:",
1234 "nolinkshere" => "No pages link to here.",
1235 "isredirect" => "redirect page",
1236
1237 # Block/unblock IP
1238 #
1239 "blockip" => "Block user",
1240 "blockiptext" => "Use the form below to block write access
1241 from a specific IP address or username.
1242 This should be done only only to prevent vandalism, and in
1243 accordance with [[$wgMetaNamespace:Policy|policy]].
1244 Fill in a specific reason below (for example, citing particular
1245 pages that were vandalized).",
1246 "ipaddress" => "IP Address/username",
1247 "ipbexpiry" => "Expiry",
1248 "ipbreason" => "Reason",
1249 "ipbsubmit" => "Block this user",
1250 "badipaddress" => "Invalid IP address",
1251 "noblockreason" => "You must supply a reason for the block.",
1252 "blockipsuccesssub" => "Block succeeded",
1253 "blockipsuccesstext" => "\"$1\" has been blocked.
1254 <br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
1255 "unblockip" => "Unblock user",
1256 "unblockiptext" => "Use the form below to restore write access
1257 to a previously blocked IP address or username.",
1258 "ipusubmit" => "Unblock this address",
1259 "ipusuccess" => "\"$1\" unblocked",
1260 "ipblocklist" => "List of blocked IP addresses and usernames",
1261 "blocklistline" => "$1, $2 blocked $3 (expires $4)",
1262 "blocklink" => "block",
1263 "unblocklink" => "unblock",
1264 "contribslink" => "contribs",
1265 "autoblocker" => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1266 "blocklogpage" => "Block_log",
1267 "blocklogentry" => 'blocked "$1" with an expiry time of $2',
1268 "blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
1269 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1270 the list of currently operational bans and blocks.",
1271 "unblocklogentry" => 'unblocked "$1"',
1272 "range_block_disabled" => "The sysop ability to create range blocks is disabled.",
1273 "ipb_expiry_invalid" => "Expiry time invalid.",
1274 "ip_range_invalid" => "Invalid IP range.\n",
1275
1276 # Developer tools
1277 #
1278 "lockdb" => "Lock database",
1279 "unlockdb" => "Unlock database",
1280 "lockdbtext" => "Locking the database will suspend the ability of all
1281 users to edit pages, change their preferences, edit their watchlists, and
1282 other things requiring changes in the database.
1283 Please confirm that this is what you intend to do, and that you will
1284 unlock the database when your maintenance is done.",
1285 "unlockdbtext" => "Unlocking the database will restore the ability of all
1286 users to edit pages, change their preferences, edit their watchlists, and
1287 other things requiring changes in the database.
1288 Please confirm that this is what you intend to do.",
1289 "lockconfirm" => "Yes, I really want to lock the database.",
1290 "unlockconfirm" => "Yes, I really want to unlock the database.",
1291 "lockbtn" => "Lock database",
1292 "unlockbtn" => "Unlock database",
1293 "locknoconfirm" => "You did not check the confirmation box.",
1294 "lockdbsuccesssub" => "Database lock succeeded",
1295 "unlockdbsuccesssub" => "Database lock removed",
1296 "lockdbsuccesstext" => "The database has been locked.
1297 <br>Remember to remove the lock after your maintenance is complete.",
1298 "unlockdbsuccesstext" => "The database has been unlocked.",
1299
1300 # SQL query
1301 #
1302 "asksql" => "SQL query",
1303 "asksqltext" => "Use the form below to make a direct query of the
1304 database.
1305 Use single quotes ('like this') to delimit string literals.
1306 This can often add considerable load to the server, so please use
1307 this function sparingly.",
1308 "sqlislogged" => "Please note that all queries are logged.",
1309 "sqlquery" => "Enter query",
1310 "querybtn" => "Submit query",
1311 "selectonly" => "Only read-only queries are allowed.",
1312 "querysuccessful" => "Query successful",
1313
1314 # Make sysop
1315 "makesysoptitle" => "Make a user into a sysop",
1316 "makesysoptext" => "This form is used by bureaucrats to turn ordinary users into administrators.
1317 Type the name of the user in the box and press the button to make the user an administrator",
1318 "makesysopname" => "Name of the user:",
1319 "makesysopsubmit" => "Make this user into a sysop",
1320 "makesysopok" => "<b>User \"$1\" is now a sysop</b>",
1321 "makesysopfail" => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1322 "setbureaucratflag" => "Set bureaucrat flag",
1323 "bureaucratlog" => "Bureaucrat_log",
1324 "bureaucratlogentry" => "Rights for user \"$1\" set \"$2\"",
1325 "rights" => "Rights:",
1326 "set_user_rights" => "Set user rights",
1327 "user_rights_set" => "<b>User rights for \"$1\" updated</b>",
1328 "set_rights_fail" => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1329
1330 # Move page
1331 #
1332 "movepage" => "Move page",
1333 "movepagetext" => "Using the form below will rename a page, moving all
1334 of its history to the new name.
1335 The old title will become a redirect page to the new title.
1336 Links to the old page title will not be changed; be sure to
1337 [[Special:Maintenance|check]] for double or broken redirects.
1338 You are responsible for making sure that links continue to
1339 point where they are supposed to go.
1340
1341 Note that the page will '''not''' be moved if there is already
1342 a page at the new title, unless it is empty or a redirect and has no
1343 past edit history. This means that you can rename a page back to where
1344 it was just renamed from if you make a mistake, and you cannot overwrite
1345 an existing page.
1346
1347 <b>WARNING!</b>
1348 This can be a drastic and unexpected change for a popular page;
1349 please be sure you understand the consequences of this before
1350 proceeding.",
1351 "movepagetalktext" => "The associated talk page, if any, will be automatically moved along with it '''unless:'''
1352 *You are moving the page across namespaces,
1353 *A non-empty talk page already exists under the new name, or
1354 *You uncheck the box below.
1355
1356 In those cases, you will have to move or merge the page manually if desired.",
1357 "movearticle" => "Move page",
1358 "movenologin" => "Not logged in",
1359 "movenologintext" => "You must be a registered user and <a href=\"" .
1360 wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
1361 to move a page.",
1362 "newtitle" => "To new title",
1363 "movepagebtn" => "Move page",
1364 "pagemovedsub" => "Move succeeded",
1365 "pagemovedtext" => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1366 "articleexists" => "A page of that name already exists, or the
1367 name you have chosen is not valid.
1368 Please choose another name.",
1369 "talkexists" => "The page itself was moved successfully, but the
1370 talk page could not be moved because one already exists at the new
1371 title. Please merge them manually.",
1372 "movedto" => "moved to",
1373 "movetalk" => "Move \"talk\" page as well, if applicable.",
1374 "talkpagemoved" => "The corresponding talk page was also moved.",
1375 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
1376 "1movedto2" => "$1 moved to $2",
1377
1378 # Export
1379
1380 "export" => "Export pages",
1381 "exporttext" => "You can export the text and editing history of a particular
1382 page or set of pages wrapped in some XML; this can then be imported into another
1383 wiki running MediaWiki software, transformed, or just kept for your private
1384 amusement.",
1385 "exportcuronly" => "Include only the current revision, not the full history",
1386
1387 # Namespace 8 related
1388
1389 "allmessages" => "All_messages",
1390 "allmessagestext" => "This is a list of all messages available in the MediaWiki: namespace",
1391
1392 # Thumbnails
1393
1394 "thumbnail-more" => "Enlarge"
1395
1396 );
1397
1398 #--------------------------------------------------------------------------
1399 # Internationalisation code
1400 #--------------------------------------------------------------------------
1401
1402 class Language {
1403 function Language(){
1404 # Copies any missing values in the specified arrays from En to the current language
1405 $fillin = array( "wgSysopSpecialPages", "wgValidSpecialPages", "wgDeveloperSpecialPages" );
1406 $name = get_class( $this );
1407 if( strpos( $name, "language" ) == 0){
1408 $lang = ucfirst( substr( $name, 8 ) );
1409 foreach( $fillin as $arrname ){
1410 $langver = "{$arrname}{$lang}";
1411 $enver = "{$arrname}En";
1412 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1413 continue;
1414 foreach($GLOBALS[$enver] as $spage => $text){
1415 if( ! isset( $GLOBALS[$langver][$spage] ) )
1416 $GLOBALS[$langver][$spage] = $text;
1417 }
1418 }
1419 }
1420 }
1421
1422 function getDefaultUserOptions () {
1423 global $wgDefaultUserOptionsEn ;
1424 return $wgDefaultUserOptionsEn ;
1425 }
1426
1427 function getBookstoreList () {
1428 global $wgBookstoreListEn ;
1429 return $wgBookstoreListEn ;
1430 }
1431
1432 function getNamespaces() {
1433 global $wgNamespaceNamesEn;
1434 return $wgNamespaceNamesEn;
1435 }
1436
1437 function getNsText( $index ) {
1438 global $wgNamespaceNamesEn;
1439 return $wgNamespaceNamesEn[$index];
1440 }
1441
1442 function getNsIndex( $text ) {
1443 global $wgNamespaceNamesEn;
1444
1445 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1446 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1447 }
1448 return false;
1449 }
1450
1451 function specialPage( $name ) {
1452 return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1453 }
1454
1455 function getQuickbarSettings() {
1456 global $wgQuickbarSettingsEn;
1457 return $wgQuickbarSettingsEn;
1458 }
1459
1460 function getSkinNames() {
1461 global $wgSkinNamesEn;
1462 return $wgSkinNamesEn;
1463 }
1464
1465 function getMathNames() {
1466 global $wgMathNamesEn;
1467 return $wgMathNamesEn;
1468 }
1469
1470 function getDateFormats() {
1471 global $wgDateFormatsEn;
1472 return $wgDateFormatsEn;
1473 }
1474
1475 function getUserToggles() {
1476 global $wgUserTogglesEn;
1477 return $wgUserTogglesEn;
1478 }
1479
1480 function getLanguageNames() {
1481 global $wgLanguageNamesEn;
1482 return $wgLanguageNamesEn;
1483 }
1484
1485 function getLanguageName( $code ) {
1486 global $wgLanguageNamesEn;
1487 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1488 return "";
1489 }
1490 return $wgLanguageNamesEn[$code];
1491 }
1492
1493 function getMonthName( $key )
1494 {
1495 global $wgMonthNamesEn;
1496 return $wgMonthNamesEn[$key-1];
1497 }
1498
1499 /* by default we just return base form */
1500 function getMonthNameGen( $key )
1501 {
1502 return $this->getMonthName( $key );
1503 }
1504
1505 function getMonthAbbreviation( $key )
1506 {
1507 global $wgMonthAbbreviationsEn;
1508 return $wgMonthAbbreviationsEn[$key-1];
1509 }
1510
1511 function getWeekdayName( $key )
1512 {
1513 global $wgWeekdayNamesEn;
1514 return $wgWeekdayNamesEn[$key-1];
1515 }
1516
1517 function userAdjust( $ts )
1518 {
1519 global $wgUser, $wgLocalTZoffset;
1520
1521 $tz = $wgUser->getOption( "timecorrection" );
1522 if ( $tz === "" ) {
1523 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1524 $minDiff = 0;
1525 } elseif ( strpos( $tz, ":" ) !== false ) {
1526 $tzArray = explode( ":", $tz );
1527 $hrDiff = intval($tzArray[0]);
1528 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1529 } else {
1530 $hrDiff = intval( $tz );
1531 }
1532 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1533
1534 $t = mktime( (
1535 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1536 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1537 (int)substr( $ts, 12, 2 ), # Seconds
1538 (int)substr( $ts, 4, 2 ), # Month
1539 (int)substr( $ts, 6, 2 ), # Day
1540 (int)substr( $ts, 0, 4 ) ); #Year
1541 return date( "YmdHis", $t );
1542 }
1543
1544 function date( $ts, $adj = false )
1545 {
1546 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1547
1548 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1549
1550 if ( $wgUseDynamicDates ) {
1551 $datePreference = $wgUser->getOption( 'date' );
1552 if ( $datePreference == 0 ) {
1553 $datePreference = $wgAmericanDates ? 1 : 2;
1554 }
1555 } else {
1556 $datePreference = $wgAmericanDates ? 1 : 2;
1557 }
1558
1559 if ( $datePreference == 1 ) {
1560 # MDY
1561 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1562 " " . (0 + substr( $ts, 6, 2 )) . ", " .
1563 substr( $ts, 0, 4 );
1564 } else if ( $datePreference == 2 ) {
1565 #DMY
1566 $d = (0 + substr( $ts, 6, 2 )) . " " .
1567 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
1568 substr( $ts, 0, 4 );
1569 } else {
1570 #YMD
1571 $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1572 " " . (0 + substr( $ts, 6, 2 ));
1573 }
1574
1575 return $d;
1576 }
1577
1578 function time( $ts, $adj = false )
1579 {
1580 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1581
1582 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1583 return $t;
1584 }
1585
1586 function timeanddate( $ts, $adj = false )
1587 {
1588 return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1589 }
1590
1591 function rfc1123( $ts )
1592 {
1593 return date( "D, d M Y H:i:s T", $ts );
1594 }
1595
1596 function getValidSpecialPages()
1597 {
1598 global $wgValidSpecialPagesEn;
1599 return $wgValidSpecialPagesEn;
1600 }
1601
1602 function getSysopSpecialPages()
1603 {
1604 global $wgSysopSpecialPagesEn;
1605 return $wgSysopSpecialPagesEn;
1606 }
1607
1608 function getDeveloperSpecialPages()
1609 {
1610 global $wgDeveloperSpecialPagesEn;
1611 return $wgDeveloperSpecialPagesEn;
1612 }
1613
1614 function getMessage( $key )
1615 {
1616 global $wgAllMessagesEn;
1617 return $wgAllMessagesEn[$key];
1618 }
1619
1620 function getAllMessages()
1621 {
1622 global $wgAllMessagesEn;
1623 return $wgAllMessagesEn;
1624 }
1625
1626 function iconv( $in, $out, $string ) {
1627 # For most languages, this is a wrapper for iconv
1628 return iconv( $in, $out, $string );
1629 }
1630
1631 function ucfirst( $string ) {
1632 # For most languages, this is a wrapper for ucfirst()
1633 return ucfirst( $string );
1634 }
1635
1636 function lcfirst( $s ) {
1637 return strtolower( $s{0} ). substr( $s, 1 );
1638 }
1639
1640 function checkTitleEncoding( $s ) {
1641 global $wgInputEncoding;
1642
1643 # Check for UTF-8 URLs; Internet Explorer produces these if you
1644 # type non-ASCII chars in the URL bar or follow unescaped links.
1645 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1646 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1647 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1648
1649 if( ($wgInputEncoding != "utf-8") and $ishigh and $isutf )
1650 return iconv( "UTF-8", $wgInputEncoding, $s );
1651
1652 if( ($wgInputEncoding == "utf-8") and $ishigh and !$isutf )
1653 return utf8_encode( $s );
1654
1655 # Other languages can safely leave this function, or replace
1656 # it with one to detect and convert another legacy encoding.
1657 return $s;
1658 }
1659
1660 function stripForSearch( $in ) {
1661 # Some languages have special punctuation to strip out
1662 # or characters which need to be converted for MySQL's
1663 # indexing to grok it correctly. Make such changes here.
1664 return $in;
1665 }
1666
1667
1668 function setAltEncoding() {
1669 # Some languages may have an alternate char encoding option
1670 # (Esperanto X-coding, Japanese furigana conversion, etc)
1671 # If 'altencoding' is checked in user prefs, this gives a
1672 # chance to swap out the default encoding settings.
1673 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1674 }
1675
1676 function recodeForEdit( $s ) {
1677 # For some languages we'll want to explicitly specify
1678 # which characters make it into the edit box raw
1679 # or are converted in some way or another.
1680 # Note that if wgOutputEncoding is different from
1681 # wgInputEncoding, this text will be further converted
1682 # to wgOutputEncoding.
1683 global $wgInputEncoding, $wgEditEncoding;
1684 if( $wgEditEncoding == "" or
1685 $wgEditEncoding == $wgInputEncoding ) {
1686 return $s;
1687 } else {
1688 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1689 }
1690 }
1691
1692 function recodeInput( $s ) {
1693 # Take the previous into account.
1694 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1695 if($wgEditEncoding != "") {
1696 $enc = $wgEditEncoding;
1697 } else {
1698 $enc = $wgOutputEncoding;
1699 }
1700 if( $enc == $wgInputEncoding ) {
1701 return $s;
1702 } else {
1703 return $this->iconv( $enc, $wgInputEncoding, $s );
1704 }
1705 }
1706
1707 # For right-to-left language support
1708 function isRTL() { return false; }
1709
1710 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1711 function linkPrefixExtension() { return false; }
1712
1713
1714 function getMagicWords()
1715 {
1716 global $wgMagicWordsEn;
1717 return $wgMagicWordsEn;
1718 }
1719
1720 # Fill a MagicWord object with data from here
1721 function getMagic( &$mw )
1722 {
1723 $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
1724 $rawEntry = $raw[$mw->mId];
1725 $mw->mCaseSensitive = $rawEntry[0];
1726 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1727 }
1728
1729 # Italic is unsuitable for some languages
1730 function emphasize( $text )
1731 {
1732 return "<em>$text</em>";
1733 }
1734 }
1735
1736 @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
1737
1738 ?>