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