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