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