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