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