spamprotectiontext says, "You might want to check the following regular
[lhc/web/wiklou.git] / languages / Language.php
index e360e8f..a3dea4f 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+if( defined( "MEDIAWIKI" ) ) {
+
 #
 # In general you should not make customizations in these language files
 # directly, but should use the MediaWiki: special namespace to customize
@@ -40,7 +42,7 @@ if($wgMetaNamespace === FALSE)
        NS_TEMPLATE_TALK    => 'Template_talk',
        NS_HELP             => 'Help',
        NS_HELP_TALK        => 'Help_talk',
-       NS_CATEGORY         => 'Category',
+       NS_CATEGORY         => 'Category',
        NS_CATEGORY_TALK    => 'Category_talk'
 );
 
@@ -66,7 +68,7 @@ if($wgMetaNamespace === FALSE)
        'davinci' => 'DaVinci',
        'mono' => 'Mono',
        'monobook' => 'MonoBook',
-       'myskin' => 'MySkin' 
+       'myskin' => 'MySkin'
 );
 
 define( "MW_MATH_PNG",    0 );
@@ -76,15 +78,29 @@ define( "MW_MATH_SOURCE", 3 );
 define( "MW_MATH_MODERN", 4 );
 define( "MW_MATH_MATHML", 5 );
 
+# Validation types
+$wgValidationTypesEn = array (
+       "0" => "Style|Awful|Awesome|5",
+       "1" => "Legal|Illegal|Legal|5",
+       "2" => "Completeness|Stub|Extensive|5",
+       "3" => "Facts|Wild guesses|Solid as a rock|5",
+       "4" => "Suitable for 1.0 (paper)|No|Yes|2",
+       "5" => "Suitable for 1.0 (CD)|No|Yes|2"
+);
+
 /* private */ $wgMathNamesEn = array(
-       MW_MATH_PNG => 'Always render PNG',
-       MW_MATH_SIMPLE => 'HTML if very simple or else PNG',
-       MW_MATH_HTML => 'HTML if possible or else PNG',
-       MW_MATH_SOURCE => 'Leave it as TeX (for text browsers)',
-       MW_MATH_MODERN => 'Recommended for modern browsers',
-       MW_MATH_MATHML => 'MathML if possible (experimental)',
+       MW_MATH_PNG => 'mw_math_png',
+       MW_MATH_SIMPLE => 'mw_math_simple',
+       MW_MATH_HTML => 'mw_math_html',
+       MW_MATH_SOURCE => 'mw_math_source',
+       MW_MATH_MODERN => 'mw_math_modern',
+       MW_MATH_MATHML => 'mw_math_mathml'
 );
 
+# Whether to use user or default setting in Language::date()
+define( "MW_DATE_DEFAULT", false );
+define( "MW_DATE_USER_FORMAT", true );
+
 /* private */ $wgDateFormatsEn = array(
        'No preference',
        'January 15, 2001',
@@ -94,25 +110,24 @@ define( "MW_MATH_MATHML", 5 );
 );
 
 /* private */ $wgUserTogglesEn = array(
-       'hover'         => 'Show hoverbox over wiki links',
-       'underline' => 'Underline links',
-       'highlightbroken' => 'Format broken links <a href="" class="new">like
-this</a> (alternative: like this<a href="" class="internal">?</a>).',
-       'justify'       => 'Justify paragraphs',
-       'hideminor' => 'Hide minor edits in recent changes',
-       'usenewrc' => 'Enhanced recent changes (not for all browsers)',
-       'numberheadings' => 'Auto-number headings',
-       'showtoolbar'=>'Show edit toolbar',
-       'editondblclick' => 'Edit pages on double click (JavaScript)',
-       'editsection'=>'Enable section editing via [edit] links',
-       'editsectiononrightclick'=>'Enable section editing by right clicking<br /> on section titles (JavaScript)',
-       'showtoc'=>'Show table of contents<br />(for pages with more than 3 headings)',
-       'rememberpassword' => 'Remember password across sessions',
-       'editwidth' => 'Edit box has full width',
-       'watchdefault' => 'Add pages you edit to your watchlist',
-       'minordefault' => 'Mark all edits minor by default',
-       'previewontop' => 'Show preview before edit box and not after it',
-       'nocache' => 'Disable page caching'
+       'hover',
+       'underline',
+       'highlightbroken',
+       'justify',
+       'hideminor',
+       'usenewrc',
+       'numberheadings',
+       'showtoolbar',
+       'editondblclick',
+       'editsection',
+       'editsectiononrightclick',
+       'showtoc',
+       'rememberpassword',
+       'editwidth',
+       'watchdefault',
+       'minordefault',
+       'previewontop',
+       'nocache',
 );
 
 /* private */ $wgBookstoreListEn = array(
@@ -130,57 +145,64 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 
 
 /* private */ $wgWeekdayNamesEn = array(
-       'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
-       'Friday', 'Saturday'
+       'sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
+       'friday', 'saturday'
 );
 
+
 /* private */ $wgMonthNamesEn = array(
-       'January', 'February', 'March', 'April', 'May', 'June',
-       'July', 'August', 'September', 'October', 'November',
-       'December'
+       'january', 'february', 'march', 'april', 'may_long', 'june',
+       'july', 'august', 'september', 'october', 'november',
+       'december'
+);
+/* private */ $wgMonthNamesGenEn = array(
+       'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen',
+       'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen',
+       'december-gen'
 );
 
 /* private */ $wgMonthAbbreviationsEn = array(
-       'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
-       'Sep', 'Oct', 'Nov', 'Dec'
+       'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
+       'sep', 'oct', 'nov', 'dec'
 );
 
-# Note to translators: 
-#   Please include the English words as synonyms.  This allows people 
+# Note to translators:
+#   Please include the English words as synonyms.  This allows people
 #   from other wikis to contribute more easily.
-# 
+#
 /* private */ $wgMagicWordsEn = array(
 #   ID                                 CASE  SYNONYMS
-    MAG_REDIRECT             => array( 0,    '#redirect'              ),
-    MAG_NOTOC                => array( 0,    '__NOTOC__'              ),
-    MAG_FORCETOC             => array( 0,    '__FORCETOC__'           ),
-    MAG_TOC                  => array( 0,    '__TOC__'                ),
-    MAG_NOEDITSECTION        => array( 0,    '__NOEDITSECTION__'      ),
-    MAG_START                => array( 0,    '__START__'              ),
-    MAG_CURRENTMONTH         => array( 1,    'CURRENTMONTH'           ),
-    MAG_CURRENTMONTHNAME     => array( 1,    'CURRENTMONTHNAME'       ),
-    MAG_CURRENTDAY           => array( 1,    'CURRENTDAY'             ),
-    MAG_CURRENTDAYNAME       => array( 1,    'CURRENTDAYNAME'         ),
-    MAG_CURRENTYEAR          => array( 1,    'CURRENTYEAR'            ),
-    MAG_CURRENTTIME          => array( 1,    'CURRENTTIME'            ),
-    MAG_NUMBEROFARTICLES     => array( 1,    'NUMBEROFARTICLES'       ),
-    MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN'    ),
-               MAG_PAGENAME             => array( 1,    'PAGENAME'               ),
-               MAG_NAMESPACE            => array( 1,    'NAMESPACE'              ),            
+       MAG_REDIRECT             => array( 0,    '#redirect'              ),
+       MAG_NOTOC                => array( 0,    '__NOTOC__'              ),
+       MAG_FORCETOC             => array( 0,    '__FORCETOC__'           ),
+       MAG_TOC                  => array( 0,    '__TOC__'                ),
+       MAG_NOEDITSECTION        => array( 0,    '__NOEDITSECTION__'      ),
+       MAG_START                => array( 0,    '__START__'              ),
+       MAG_CURRENTMONTH         => array( 1,    'CURRENTMONTH'           ),
+       MAG_CURRENTMONTHNAME     => array( 1,    'CURRENTMONTHNAME'       ),
+       MAG_CURRENTDAY           => array( 1,    'CURRENTDAY'             ),
+       MAG_CURRENTDAYNAME       => array( 1,    'CURRENTDAYNAME'         ),
+       MAG_CURRENTYEAR          => array( 1,    'CURRENTYEAR'            ),
+       MAG_CURRENTTIME          => array( 1,    'CURRENTTIME'            ),
+       MAG_NUMBEROFARTICLES     => array( 1,    'NUMBEROFARTICLES'       ),
+       MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN'    ),
+       MAG_PAGENAME             => array( 1,    'PAGENAME'               ),
+       MAG_PAGENAMEE            => array( 1,    'PAGENAMEE'              ),
+       MAG_NAMESPACE            => array( 1,    'NAMESPACE'              ),
        MAG_MSG                  => array( 0,    'MSG:'                   ),
        MAG_SUBST                => array( 0,    'SUBST:'                 ),
-    MAG_MSGNW                => array( 0,    'MSGNW:'                 ),
+       MAG_MSGNW                => array( 0,    'MSGNW:'                 ),
        MAG_END                  => array( 0,    '__END__'                ),
-    MAG_IMG_THUMBNAIL        => array( 1,    'thumbnail', 'thumb'     ),
-    MAG_IMG_RIGHT            => array( 1,    'right'                  ),
-    MAG_IMG_LEFT             => array( 1,    'left'                   ),
-    MAG_IMG_NONE             => array( 1,    'none'                   ),
-    MAG_IMG_WIDTH            => array( 1,    '$1px'                   ),
-    MAG_IMG_CENTER           => array( 1,    'center', 'centre'       ),
-    MAG_IMG_FRAMED          => array( 1,    'framed', 'enframed', 'frame' ),
-    MAG_INT                  => array( 0,    'INT:'                   ),
-    MAG_SITENAME             => array( 1,    'SITENAME'               ),
-    MAG_NS                   => array( 0,    'NS:'                    ),
+       MAG_IMG_THUMBNAIL        => array( 1,    'thumbnail', 'thumb'     ),
+       MAG_IMG_RIGHT            => array( 1,    'right'                  ),
+       MAG_IMG_LEFT             => array( 1,    'left'                   ),
+       MAG_IMG_NONE             => array( 1,    'none'                   ),
+       MAG_IMG_WIDTH            => array( 1,    '$1px'                   ),
+       MAG_IMG_CENTER           => array( 1,    'center', 'centre'       ),
+       MAG_IMG_FRAMED           => array( 1,    'framed', 'enframed', 'frame' ),
+       MAG_INT                  => array( 0,    'INT:'                   ),
+       MAG_SITENAME             => array( 1,    'SITENAME'               ),
+       MAG_NS                   => array( 0,    'NS:'                    ),
        MAG_LOCALURL             => array( 0,    'LOCALURL:'              ),
        MAG_LOCALURLE            => array( 0,    'LOCALURLE:'             ),
        MAG_SERVER               => array( 0,    'SERVER'                 )
@@ -204,7 +226,60 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 
 
 /* private */ $wgAllMessagesEn = array(
-
+'special_version_prefix' => '',
+'special_version_postfix' => '',
+# User preference toggles
+'tog-hover'            => 'Show hoverbox over wiki links',
+'tog-underline' => 'Underline links',
+'tog-highlightbroken' => 'Format broken links <a href="" class="new">like this</a> (alternative: like this<a href="" class="internal">?</a>).',
+'tog-justify'  => 'Justify paragraphs',
+'tog-hideminor' => 'Hide minor edits in recent changes',
+'tog-usenewrc' => 'Enhanced recent changes (not for all browsers)',
+'tog-numberheadings' => 'Auto-number headings',
+'tog-showtoolbar'=>'Show edit toolbar',
+'tog-editondblclick' => 'Edit pages on double click (JavaScript)',
+'tog-editsection'=>'Enable section editing via [edit] links',
+'tog-editsectiononrightclick'=>'Enable section editing by right clicking<br /> on section titles (JavaScript)',
+'tog-showtoc'=>'Show table of contents<br />(for pages with more than 3 headings)',
+'tog-rememberpassword' => 'Remember password across sessions',
+'tog-editwidth' => 'Edit box has full width',
+'tog-watchdefault' => 'Add pages you edit to your watchlist',
+'tog-minordefault' => 'Mark all edits minor by default',
+'tog-previewontop' => 'Show preview before edit box and not after it',
+'tog-nocache' => 'Disable page caching',
+
+# dates
+'sunday' => 'Sunday',
+'monday' => 'Monday',
+'tuesday' => 'Tuesday',
+'wednesday' => 'Wednesday',
+'thursday' => 'Thursday',
+'friday' => 'Friday',
+'saturday' => 'Saturday',
+'january' => 'January',
+'february' => 'February',
+'march' => 'March',
+'april' => 'April',
+'may_long' => 'May',
+'june' => 'June',
+'july' => 'July',
+'august' => 'August',
+'september' => 'September',
+'october' => 'October',
+'november' => 'November',
+'december' => 'December',
+'jan' => 'Jan',
+'feb' => 'Feb',
+'mar' => 'Mar',
+'apr' => 'Apr',
+'may' => 'May',
+'jun' => 'Jun',
+'jul' => 'Jul',
+'aug' => 'Aug',
+'sep' => 'Sep',
+'oct' => 'Oct',
+'nov' => 'Nov',
+'dec' => 'Dec',
 # Bits of text used by many pages:
 #
 'categories' => 'Categories',
@@ -213,7 +288,7 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 'subcategories' => 'Subcategories',
 
 
-'linktrail'            => '/^([a-z]+)(.*)\$/sD',
+'linktrail'            => '/^([a-z]+)(.*)$/sD',
 'mainpage'             => 'Main Page',
 'mainpagetext' => 'Wiki software successfully installed.',
 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
@@ -260,6 +335,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'go'           => 'Go',
 "history"              => 'Page history',
 'history_short' => 'History',
+'info_short'   => 'Information',
 'printableversion' => 'Printable version',
 'edit' => 'Edit',
 'editthispage' => 'Edit this page',
@@ -320,6 +396,7 @@ performed by sysops with  \"bureaucrat\" status.",
 'thisisdeleted' => "View or restore $1?",
 'restorelink' => "$1 deleted edits",
 'feedlinks' => 'Feed:',
+'sitenotice'   => '', # the equivalent to wgSiteNotice
 
 # Short words for each namespace, by default used in the 'article' tab in monobook
 'nstab-main' => 'Article',
@@ -430,7 +507,7 @@ Don't forget to change your {{SITENAME}} preferences.",
 
 'login'                        => 'Log in',
 'loginprompt'           => "You must have cookies enabled to log in to {{SITENAME}}.",
-'userlogin'            => 'Log in',
+'userlogin'            => 'Create an account or log in',
 'logout'               => 'Log out',
 'userlogout'   => 'Log out',
 'notloggedin'  => 'Not logged in',
@@ -441,10 +518,10 @@ Don't forget to change your {{SITENAME}} preferences.",
 'youremail'            => 'Your email*',
 'yourrealname'         => 'Your real name*',
 'yournick'             => 'Your nickname (for signatures)',
-'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 
+'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
 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.",
 '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/>
-* <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your 
+* <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your
 email address to them, and it can be used to send you a new password if you forget it.',
 'loginerror'   => 'Login error',
 '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.",
@@ -525,16 +602,16 @@ Your IP address is $3. Please include this address in any queries you make.
 'newarticle'   => '(New)',
 'newarticletext' =>
 "You've followed a link to a page that doesn't exist yet.
-To create the page, start typing in the box below 
+To create the page, start typing in the box below
 (see the [[{{ns:4}}:Help|help page]] for more info).
 If you are here by mistake, just click your browser's '''back''' button.",
 'talkpagetext' => '<!-- MediaWiki:talkpagetext -->',
 '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.'' ",
 'noarticletext' => '(There is currently no text in this page)',
-'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''.",
-'usercssjsyoucanpreview' => "<strong>Tip:</strong> Use the 'Show preview' button to test your new css/js before saving.",
-'usercsspreview' => "'''Remember that you are only previewing your user css, it has not yet been saved!'''",
-'userjspreview' => "'''Remember that you are only testing/previewing your user javascript, it has not yet been saved!'''",
+'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''.",
+'usercssjsyoucanpreview' => "<strong>Tip:</strong> Use the 'Show preview' button to test your new CSS/JS before saving.",
+'usercsspreview' => "'''Remember that you are only previewing your user CSS, it has not yet been saved!'''",
+'userjspreview' => "'''Remember that you are only testing/previewing your user JavaScript, it has not yet been saved!'''",
 'updated'              => '(Updated)',
 'note'                 => '<strong>Note:</strong> ',
 'previewnote'  => 'Remember that this is only a preview, and has not yet been saved!',
@@ -674,8 +751,8 @@ Your internal ID number is $2.
 
 See [[{{ns:4}}:User preferences help]] for help deciphering the options.",
 'prefsreset'   => 'Preferences have been reset from storage.',
-'qbsettings'   => 'Quickbar settings', 
-'qbsettingsnote'       => 'This preference only works in the \'Standard\' and the \'CologneBlue\' skin.', 
+'qbsettings'   => 'Quickbar settings',
+'qbsettingsnote'       => 'This preference only works in the \'Standard\' and the \'CologneBlue\' skin.',
 'changepassword' => 'Change password',
 'skin'                 => 'Skin',
 'math'                 => 'Rendering math',
@@ -726,9 +803,7 @@ from server time (UTC).',
 'rcnote'               => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
 'rcnotefrom'   => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
 'rclistfrom'   => "Show new changes starting from $1",
-# "rclinks"            => "Show last $1 changes in last $2 hours / last $3 days",
-# "rclinks"            => "Show last $1 changes in last $2 days.",
-'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users ",
+'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $4 patrolled edits ",
 'rclinks'              => "Show last $1 changes in last $2 days<br />$3",
 'rchide'               => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
 'rcliu'                        => "; $1 edits from logged in users",
@@ -739,7 +814,7 @@ from server time (UTC).',
 'tableform'            => 'table',
 'listform'             => 'list',
 'nchanges'             => "$1 changes",
-'minoreditletter' => 'M',
+'minoreditletter' => 'm',
 'newpageletter' => 'N',
 
 # Upload
@@ -803,20 +878,22 @@ agrees to license it under the terms of the $1.",
 'noaffirmation' => 'You must affirm that your upload does not violate any copyrights.',
 'ignorewarning'        => 'Ignore warning and save file anyway.',
 'minlength'            => 'Image names must be at least three letters.',
+'illegalfilename'      => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
 'badfilename'  => "Image name has been changed to \"$1\".",
 'badfiletype'  => "\".$1\" is not a recommended image file format.",
 'largefile'            => 'It is recommended that images not exceed 100k in size.',
+'emptyfile'            => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
 'fileexists'           => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
 'successfulupload' => 'Successful upload',
-'fileuploaded' => "File \"$1\" uploaded successfully.
+'fileuploaded' => "File uploaded successfully.
 Please follow this link: $2 to the description page and fill
 in information about the file, such as where it came from, when it was
-created and by whom, and anything else you may know about it.",
+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>",
 'uploadwarning' => 'Upload warning',
 'savefile'             => 'Save file',
 'uploadedimage' => "uploaded \"$1\"",
 'uploaddisabled' => 'Sorry, uploading is disabled.',
-                                      
+
 # Image list
 #
 'imagelist'            => 'Image list',
@@ -884,17 +961,21 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 # Miscellaneous special pages
 #
 'orphans'              => 'Orphaned pages',
+'geo'          => 'GEO coordinates',
+'validate'             => 'Validate page',
 'lonelypages'  => 'Orphaned pages',
+'uncategorizedpages'   => 'Uncategorized pages',
 'unusedimages' => 'Unused images',
 'popularpages' => 'Popular pages',
 'nviews'               => '$1 views',
 'wantedpages'  => 'Wanted pages',
 'nlinks'               => '$1 links',
 'allpages'             => 'All pages',
+'nextpage'             => 'Next page ($1)',
 'randompage'   => 'Random page',
 'shortpages'   => 'Short pages',
 'longpages'            => 'Long pages',
-'deadendpages'  => 'Dead-end pages',                                  
+'deadendpages'  => 'Dead-end pages',
 'listusers'            => 'User list',
 'listadmins'   => 'Admins list',
 'specialpages' => 'Special pages',
@@ -939,7 +1020,7 @@ The e-mail address you entered in your user preferences will appear
 as the "From" address of the mail, so the recipient will be able
 to reply.',
 'usermailererror' => 'Mail object returned error: ',
-'defemailsubject'  => "{{SITENAME}} e-mail",                                  
+'defemailsubject'  => "{{SITENAME}} e-mail",
 'noemailtitle' => 'No e-mail address',
 'noemailtext'  => 'This user has not specified a valid e-mail address,
 or has chosen not to receive e-mail from other users.',
@@ -1030,11 +1111,11 @@ All times shown are server time (UTC).
 'rollbackfailed' => 'Rollback failed',
 'cantrollback' => 'Cannot revert edit; last contributor is only author of this page.',
 'alreadyrolled'        => "Cannot rollback last edit of [[$1]]
-by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already. 
+by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already.
 
 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 #   only shown if there is an edit comment
-'editcomment' => "The edit comment was: \"<i>$1</i>\".", 
+'editcomment' => "The edit comment was: \"<i>$1</i>\".",
 'revertpage'   => "Reverted edit of $2, changed back to last version by $1",
 'protectlogpage' => 'Protection_log',
 'protectlogtext' => "Below is a list of page locks/unlocks.
@@ -1070,13 +1151,14 @@ See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations.
 
 # Contributions
 #
-'contributions'        => 'User contributions',
-'mycontris' => 'My contributions',
-'contribsub'   => "For $1",
-'nocontribs'   => 'No changes were found matching these criteria.',
-'ucnote'               => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
-'uclinks'              => "View the last $1 changes; view the last $2 days.",
-'uctop'                => ' (top)' ,
+'contributions' => 'User contributions',
+'mycontris'     => 'My contributions',
+'contribsub'    => "For $1",
+'nocontribs'    => 'No changes were found matching these criteria.',
+'ucnote'        => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
+'uclinks'       => "View the last $1 changes; view the last $2 days.",
+'uctop'         => ' (top)' ,
+'newbies'       => 'newbies',
 
 # What links here
 #
@@ -1120,7 +1202,7 @@ to a previously blocked IP address or username.',
 'autoblocker'  => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
 'blocklogpage' => 'Block_log',
 'blocklogentry'        => 'blocked "$1" with an expiry time of $2',
-'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically 
+'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically
 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
 the list of currently operational bans and blocks.',
 'unblocklogentry'      => 'unblocked "$1"',
@@ -1171,7 +1253,7 @@ this function sparingly.",
 
 # Make sysop
 'makesysoptitle'       => 'Make a user into a sysop',
-'makesysoptext'                => 'This form is used by bureaucrats to turn ordinary users into administrators. 
+'makesysoptext'                => 'This form is used by bureaucrats to turn ordinary users into administrators.
 Type the name of the user in the box and press the button to make the user an administrator',
 'makesysopname'                => 'Name of the user:',
 'makesysopsubmit'      => 'Make this user into a sysop',
@@ -1186,6 +1268,35 @@ Type the name of the user in the box and press the button to make the user an ad
 'set_rights_fail'      => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
 'makesysop'         => 'Make a user into a sysop',
 
+# Validation
+'val_clear_old' => 'Clear my other validation data for $1',
+'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
+'val_form_note' => '<b>Hint:</b> Merging your data means that for the article
+revision you select, all options where you have specified <i>no opinion</i>
+will be set to the value and comment of the most recent revision for which you
+have expressed an opinion. For example, if you want to change a single option
+for a newer revision, but also keep your other settings for this article in
+this revision, just select which option you intend to <i>change</i>, and
+merging will fill in the other options with your previous settings.',
+'val_noop' => 'No opinion',
+'val_percent' => '<b>$1%</b><br>($2 of $3 points<br>by $4 users)',
+'val_percent_single' => '<b>$1%</b><br>($2 of $3 points<br>by one user)',
+'val_total' => 'Total',
+'val_version' => 'Version',
+'val_tab' => 'Validate',
+'val_this_is_current_version' => 'this is the latest version',
+'val_version_of' => "Version of $1" ,
+'val_table_header' => "<tr><th>Class</th>$1<th colspan=4>Opinion</th>$1<th>Comment</th></tr>\n",
+'val_stat_link_text' => 'Validation statistics for this article',
+'val_view_version' => 'View this version',
+'val_validate_version' => 'Validate this version',
+'val_user_validations' => 'This user has validated $1 pages.',
+'val_no_anon_validation' => 'You have to be logged in to validate an article.',
+'val_validate_article_namespace_only' => 'Only articles can be validated. This page is <i>not</i> in the article namespace.',
+'val_validated' => 'Validation done.',
+'val_article_lists' => 'List of validated articles',
+'val_page_validation_statistics' => 'Page validation statistics for $1',
+
 # Move page
 #
 'movepage'             => 'Move page',
@@ -1292,7 +1403,7 @@ amusement.',
 'lastmodifiedby' => "This page was last modified $1 by $2.",
 'and' => 'and',
 'othercontribs' => "Based on work by $1.",
-'others' => 'others',                                    
+'others' => 'others',
 'siteusers' => "$wgSitename user(s) $1",
 'creditspage' => 'Page credits',
 'nocredits' => 'There is no credits info available for this page.',
@@ -1300,65 +1411,90 @@ amusement.',
 # Spam protection
 
 'spamprotectiontitle' => 'Spam protection filter',
-'spamprotectiontext' => 'The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site. 
-
-You might want to check the following regular expression for patterns that are currently blocked:',
+'spamprotectiontext' => 'The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site.',
 'subcategorycount' => "There are $1 subcategories to this category.",
+'subcategorycount1' => "There is $1 subcategorie to this category.",
 'categoryarticlecount' => "There are $1 articles in this category.",
+'categoryarticlecount1' => "There is $1 article in this category.",
 'usenewcategorypage' => "1\n\nSet first character to \"0\" to disable the new category page layout.",
 
+# Info page
+"infosubtitle" => "Information for page",
+"numedits" => "Number of edits (article): $1",
+"numtalkedits" => "Number of edits (discussion page): $1",
+"numwatchers" => "Number of watchers: $1",
+"numauthors" => "Number of distinct authors (article): $1",
+"numtalkauthors" => "Number of distinct authors (discussion page): $1",
+
+# Math options
+'mw_math_png' => 'Always render PNG',
+'mw_math_simple' => 'HTML if very simple or else PNG',
+'mw_math_html' => 'HTML if possible or else PNG',
+'mw_math_source' => 'Leave it as TeX (for text browsers)',
+'mw_math_modern' => 'Recommended for modern browsers',
+'mw_math_mathml' => 'MathML if possible (experimental)',
+
+# Patrolling
+'markaspatrolleddiff'   => "Mark as patrolled",
+'markaspatrolledlink'   => "<div class='patrollink'>[$1]</div>",
+'markaspatrolledtext'   => "Mark this article as patrolled",
+'markedaspatrolled'     => "Marked as patrolled",
+'markedaspatrolledtext' => "The selected revision has been marked as patrolled.",
+'rcpatroldisabled'      => "Recent Changes Patrol disabled",
+'rcpatroldisabledtext'  => "The Recent Changes Patrol feature is currently disabled.",
+
 # Monobook.js: tooltips and access keys for monobook
 'Monobook.js' => '/* tooltips and access keys */
 ta = new Object();
-ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\'); 
-ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\'); 
-ta[\'pt-mytalk\'] = new Array(\'n\',\'My talk page\'); 
-ta[\'pt-anontalk\'] = new Array(\'n\',\'Discussion about edits from this ip address\'); 
-ta[\'pt-preferences\'] = new Array(\'\',\'My preferences\'); 
-ta[\'pt-watchlist\'] = new Array(\'l\',\'The list of pages you\\\'re monitoring for changes.\'); 
-ta[\'pt-mycontris\'] = new Array(\'y\',\'List of my contributions\'); 
-ta[\'pt-login\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\'); 
-ta[\'pt-anonlogin\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\'); 
-ta[\'pt-logout\'] = new Array(\'o\',\'Log out\'); 
-ta[\'ca-talk\'] = new Array(\'t\',\'Discussion about the content page\'); 
-ta[\'ca-edit\'] = new Array(\'e\',\'You can edit this page. Please use the preview button before saving.\'); 
-ta[\'ca-addsection\'] = new Array(\'+\',\'Add a comment to this discussion.\'); 
-ta[\'ca-viewsource\'] = new Array(\'e\',\'This page is protected. You can view its source.\'); 
-ta[\'ca-history\'] = new Array(\'h\',\'Past versions of this page.\'); 
-ta[\'ca-protect\'] = new Array(\'=\',\'Protect this page\'); 
-ta[\'ca-delete\'] = new Array(\'d\',\'Delete this page\'); 
-ta[\'ca-undelete\'] = new Array(\'d\',\'Restore the edits done to this page before it was deleted\'); 
-ta[\'ca-move\'] = new Array(\'m\',\'Move this page\'); 
-ta[\'ca-nomove\'] = new Array(\'\',\'You don\\\'t have the permissions to move this page\'); 
-ta[\'ca-watch\'] = new Array(\'w\',\'Add this page to your watchlist\'); 
-ta[\'ca-unwatch\'] = new Array(\'w\',\'Remove this page from your watchlist\'); 
-ta[\'search\'] = new Array(\'f\',\'Search this wiki\'); 
-ta[\'p-logo\'] = new Array(\'\',\'Main Page\'); 
-ta[\'n-mainpage\'] = new Array(\'z\',\'Visit the Main Page\'); 
-ta[\'n-portal\'] = new Array(\'\',\'About the project, what you can do, where to find things\'); 
-ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\'); 
-ta[\'n-recentchanges\'] = new Array(\'r\',\'The list of recent changes in the wiki.\'); 
-ta[\'n-randompage\'] = new Array(\'x\',\'Load a random page\'); 
-ta[\'n-help\'] = new Array(\'\',\'The place to find out.\'); 
-ta[\'n-sitesupport\'] = new Array(\'\',\'Support us\'); 
-ta[\'t-whatlinkshere\'] = new Array(\'j\',\'List of all wiki pages that link here\'); 
-ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Recent changes in pages linking to this page\'); 
-ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\'); 
-ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\'); 
-ta[\'t-contributions\'] = new Array(\'\',\'View the list of contributions of this user\'); 
-ta[\'t-emailuser\'] = new Array(\'\',\'Send a mail to this user\'); 
-ta[\'t-upload\'] = new Array(\'u\',\'Upload images or media files\'); 
-ta[\'t-specialpages\'] = new Array(\'q\',\'List of all special pages\'); 
-ta[\'ca-nstab-main\'] = new Array(\'c\',\'View the content page\'); 
-ta[\'ca-nstab-user\'] = new Array(\'c\',\'View the user page\'); 
-ta[\'ca-nstab-media\'] = new Array(\'c\',\'View the media page\'); 
-ta[\'ca-nstab-special\'] = new Array(\'\',\'This is a special page, you can\\\'t edit the page itself.\'); 
-ta[\'ca-nstab-wp\'] = new Array(\'a\',\'View the project page\'); 
-ta[\'ca-nstab-image\'] = new Array(\'c\',\'View the image page\'); 
-ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'View the system message\'); 
-ta[\'ca-nstab-template\'] = new Array(\'c\',\'View the template\'); 
-ta[\'ca-nstab-help\'] = new Array(\'c\',\'View the help page\'); 
-ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\'); 
+ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\');
+ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\');
+ta[\'pt-mytalk\'] = new Array(\'n\',\'My talk page\');
+ta[\'pt-anontalk\'] = new Array(\'n\',\'Discussion about edits from this ip address\');
+ta[\'pt-preferences\'] = new Array(\'\',\'My preferences\');
+ta[\'pt-watchlist\'] = new Array(\'l\',\'The list of pages you\\\'re monitoring for changes.\');
+ta[\'pt-mycontris\'] = new Array(\'y\',\'List of my contributions\');
+ta[\'pt-login\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
+ta[\'pt-anonlogin\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
+ta[\'pt-logout\'] = new Array(\'o\',\'Log out\');
+ta[\'ca-talk\'] = new Array(\'t\',\'Discussion about the content page\');
+ta[\'ca-edit\'] = new Array(\'e\',\'You can edit this page. Please use the preview button before saving.\');
+ta[\'ca-addsection\'] = new Array(\'+\',\'Add a comment to this discussion.\');
+ta[\'ca-viewsource\'] = new Array(\'e\',\'This page is protected. You can view its source.\');
+ta[\'ca-history\'] = new Array(\'h\',\'Past versions of this page.\');
+ta[\'ca-protect\'] = new Array(\'=\',\'Protect this page\');
+ta[\'ca-delete\'] = new Array(\'d\',\'Delete this page\');
+ta[\'ca-undelete\'] = new Array(\'d\',\'Restore the edits done to this page before it was deleted\');
+ta[\'ca-move\'] = new Array(\'m\',\'Move this page\');
+ta[\'ca-nomove\'] = new Array(\'\',\'You don\\\'t have the permissions to move this page\');
+ta[\'ca-watch\'] = new Array(\'w\',\'Add this page to your watchlist\');
+ta[\'ca-unwatch\'] = new Array(\'w\',\'Remove this page from your watchlist\');
+ta[\'search\'] = new Array(\'f\',\'Search this wiki\');
+ta[\'p-logo\'] = new Array(\'\',\'Main Page\');
+ta[\'n-mainpage\'] = new Array(\'z\',\'Visit the Main Page\');
+ta[\'n-portal\'] = new Array(\'\',\'About the project, what you can do, where to find things\');
+ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\');
+ta[\'n-recentchanges\'] = new Array(\'r\',\'The list of recent changes in the wiki.\');
+ta[\'n-randompage\'] = new Array(\'x\',\'Load a random page\');
+ta[\'n-help\'] = new Array(\'\',\'The place to find out.\');
+ta[\'n-sitesupport\'] = new Array(\'\',\'Support us\');
+ta[\'t-whatlinkshere\'] = new Array(\'j\',\'List of all wiki pages that link here\');
+ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Recent changes in pages linking to this page\');
+ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\');
+ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\');
+ta[\'t-contributions\'] = new Array(\'\',\'View the list of contributions of this user\');
+ta[\'t-emailuser\'] = new Array(\'\',\'Send a mail to this user\');
+ta[\'t-upload\'] = new Array(\'u\',\'Upload images or media files\');
+ta[\'t-specialpages\'] = new Array(\'q\',\'List of all special pages\');
+ta[\'ca-nstab-main\'] = new Array(\'c\',\'View the content page\');
+ta[\'ca-nstab-user\'] = new Array(\'c\',\'View the user page\');
+ta[\'ca-nstab-media\'] = new Array(\'c\',\'View the media page\');
+ta[\'ca-nstab-special\'] = new Array(\'\',\'This is a special page, you can\\\'t edit the page itself.\');
+ta[\'ca-nstab-wp\'] = new Array(\'a\',\'View the project page\');
+ta[\'ca-nstab-image\'] = new Array(\'c\',\'View the image page\');
+ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'View the system message\');
+ta[\'ca-nstab-template\'] = new Array(\'c\',\'View the template\');
+ta[\'ca-nstab-help\'] = new Array(\'c\',\'View the help page\');
+ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
 '
 
 
@@ -1392,7 +1528,7 @@ class Language {
                global $wgDefaultUserOptionsEn ;
                return $wgDefaultUserOptionsEn ;
        }
-       
+
        function getBookstoreList () {
                global $wgBookstoreListEn ;
                return $wgBookstoreListEn ;
@@ -1435,20 +1571,25 @@ class Language {
                global $wgMathNamesEn;
                return $wgMathNamesEn;
        }
-       
+
        function getDateFormats() {
                global $wgDateFormatsEn;
                return $wgDateFormatsEn;
        }
 
+       function getValidationTypes() {
+               global $wgValidationTypesEn;
+               return $wgValidationTypesEn;
+       }
+
        function getUserToggles() {
                global $wgUserTogglesEn;
                return $wgUserTogglesEn;
        }
-       
+
        function getUserToggle( $tog ) {
                $togs =& $this->getUserToggles();
-               return $togs[$tog];
+               return wfMsg("tog-".$tog);
        }
 
        function getLanguageNames() {
@@ -1467,9 +1608,9 @@ class Language {
        function getMonthName( $key )
        {
                global $wgMonthNamesEn;
-               return $wgMonthNamesEn[$key-1];
+               return wfMsg($wgMonthNamesEn[$key-1]);
        }
-       
+
        /* by default we just return base form */
        function getMonthNameGen( $key )
        {
@@ -1479,23 +1620,23 @@ class Language {
        function getMonthAbbreviation( $key )
        {
                global $wgMonthAbbreviationsEn;
-               return @$wgMonthAbbreviationsEn[$key-1];
+               return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
        }
 
        function getWeekdayName( $key )
        {
                global $wgWeekdayNamesEn;
-               return $wgWeekdayNamesEn[$key-1];
+               return wfMsg($wgWeekdayNamesEn[$key-1]);
        }
 
        function userAdjust( $ts )
        {
                global $wgUser, $wgLocalTZoffset;
-               
+
                $tz = $wgUser->getOption( 'timecorrection' );
                if ( $tz === '' ) {
                        $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
-                       $minDiff = 0;           
+                       $minDiff = 0;
                } elseif ( strpos( $tz, ":" ) !== false ) {
                        $tzArray = explode( ":", $tz );
                        $hrDiff = intval($tzArray[0]);
@@ -1505,7 +1646,7 @@ class Language {
                }
                if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
 
-               $t = mktime( ( 
+               $t = mktime( (
                  (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
                  (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
                  (int)substr( $ts, 12, 2 ), # Seconds
@@ -1514,26 +1655,30 @@ class Language {
                  (int)substr( $ts, 0, 4 ) ); #Year
                return date( 'YmdHis', $t );
        }
-       function date( $ts, $adj = false )
+
+       function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
        {
                global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }
-               
                if ( $wgUseDynamicDates ) {
-                       $datePreference = $wgUser->getOption( 'date' );         
+                       if ( $format == MW_DATE_USER_FORMAT ) {
+                               $datePreference = $wgUser->getOption( 'date' );
+                       } else {
+                               $options = $this->getDefaultUserOptions();
+                               $datePreference = $options['date'];
+                       }
                        if ( $datePreference == 0 ) {
                                $datePreference = $wgAmericanDates ? 1 : 2;
                        }
                } else {
                        $datePreference = $wgAmericanDates ? 1 : 2;
                }
-               
+
                $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
                $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
                $year = $this->formatNum( substr( $ts, 0, 4 ) );
-               
+
                switch( $datePreference ) {
                        case 1: return "$month $day, $year";
                        case 2: return "$day $month $year";
@@ -1546,15 +1691,15 @@ class Language {
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 
                $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
-               if ( $seconds ) { 
+               if ( $seconds ) {
                        $t .= ':' . substr( $ts, 12, 2 );
                }
                return $this->formatNum( $t );
        }
 
-       function timeanddate( $ts, $adj = false )
+       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
        {
-               return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj );
+               return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
        }
 
        function rfc1123( $ts )
@@ -1585,7 +1730,7 @@ class Language {
                global $wgAllMessagesEn;
                return @$wgAllMessagesEn[$key];
        }
-       
+
        function getAllMessages()
        {
                global $wgAllMessagesEn;
@@ -1596,19 +1741,19 @@ class Language {
                # For most languages, this is a wrapper for iconv
                return iconv( $in, $out, $string );
        }
-       
+
        function ucfirst( $string ) {
                # For most languages, this is a wrapper for ucfirst()
                return ucfirst( $string );
        }
-       
+
        function lcfirst( $s ) {
                return strtolower( $s{0}  ). substr( $s, 1 );
        }
 
        function checkTitleEncoding( $s ) {
         global $wgInputEncoding;
-               
+
         # Check for UTF-8 URLs; Internet Explorer produces these if you
                # type non-ASCII chars in the URL bar or follow unescaped links.
         $ishigh = preg_match( '/[\x80-\xff]/', $s);
@@ -1617,25 +1762,25 @@ class Language {
 
                if( ($wgInputEncoding != 'utf-8') and $ishigh and $isutf )
                        return @iconv( 'UTF-8', $wgInputEncoding, $s );
-               
+
                if( ($wgInputEncoding == 'utf-8') and $ishigh and !$isutf )
                        return utf8_encode( $s );
-               
+
                # Other languages can safely leave this function, or replace
                # it with one to detect and convert another legacy encoding.
                return $s;
        }
-       
+
        function stripForSearch( $in ) {
                # Some languages have special punctuation to strip out
                # or characters which need to be converted for MySQL's
                # indexing to grok it correctly. Make such changes here.
-               return $in;
+               return strtolower( $in );
        }
 
        function firstChar( $s ) {
                # Get the first character of a string. In ASCII, return
-               # first byte of the string. UTF8 and others have to 
+               # first byte of the string. UTF8 and others have to
                # overload this.
                return $s[0];
        }
@@ -1686,7 +1831,7 @@ class Language {
        function linkPrefixExtension() { return false; }
 
 
-       function &getMagicWords() 
+       function &getMagicWords()
        {
                global $wgMagicWordsEn;
                return $wgMagicWordsEn;
@@ -1695,7 +1840,7 @@ class Language {
        # Fill a MagicWord object with data from here
        function getMagic( &$mw )
        {
-               $raw =& $this->getMagicWords(); 
+               $raw =& $this->getMagicWords();
                if( !isset( $raw[$mw->mId] ) ) {
                        # Fall back to English if local list is incomplete
                        $raw =& Language::getMagicWords();
@@ -1711,7 +1856,7 @@ class Language {
                return '<em>'.$text.'</em>';
        }
 
-       
+
        # Normally we use the plain ASCII digits. Some languages such as Arabic will
        # want to output numbers using script-appropriate characters: override this
        # function with a translator. See LanguageAr.php for an example.
@@ -1719,22 +1864,47 @@ class Language {
                return $number;
        }
 
-        function listToText( $l ) {
-               $s = '';
-               $m = count($l) - 1;
-               for ($i = $m; $i >= 0; $i--) {
-                   if ($i == $m) {
-                       $s = $l[$i];
-                   } else if ($i == $m - 1) {
-                       $s = $l[$i] . ' ' . $this->getMessage('and') . ' ' . $s;
-                   } else {
-                       $s = $l[$i] . ', ' . $s;
-                   }
+       function listToText( $l ) {
+               $s = '';
+               $m = count($l) - 1;
+               for ($i = $m; $i >= 0; $i--) {
+                       if ($i == $m) {
+                               $s = $l[$i];
+                       } else if ($i == $m - 1) {
+                               $s = $l[$i] . ' ' . $this->getMessage('and') . ' ' . $s;
+                       } else {
+                               $s = $l[$i] . ', ' . $s;
+                       }
+               }
+               return $s;
+       }
+
+       # Crop a string from the beginning or end to a certain number of bytes.
+       # (Bytes are used because our storage has limited byte lengths for some
+       # columns in the database.) Multibyte charsets will need to make sure that
+       # only whole characters are included!
+       #
+       # $length does not include the optional ellipsis.
+       # If $length is negative, snip from the beginning
+       function truncate( $string, $length, $ellipsis = "" ) {
+               if( $length == 0 ) {
+                       return $ellipsis;
+               }
+               if ( strlen( $string ) <= abs( $length ) ) {
+                       return $string;
+               }
+               if( $length > 0 ) {
+                       $string = substr( $string, 0, $length );
+                       return $string . $ellipsis;
+               } else {
+                       $string = substr( $string, $length );
+                       return $ellipsis . $string;
                }
-               return $s;
        }
 }
 
 # This should fail gracefully if there's not a localization available
 @include_once( 'Language' . ucfirst( $wgLanguageCode ) . '.php' );
+
+}
 ?>