* Adding a new message 'exifdata', and translating it as 'Metadata'.
[lhc/web/wiklou.git] / languages / Language.php
index 51383ab..956a049 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+/**
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
 if( defined( 'MEDIAWIKI' ) ) {
 
 #
@@ -43,7 +48,7 @@ if($wgMetaNamespace === FALSE)
        NS_HELP             => 'Help',
        NS_HELP_TALK        => 'Help_talk',
        NS_CATEGORY         => 'Category',
-       NS_CATEGORY_TALK    => 'Category_talk'
+       NS_CATEGORY_TALK    => 'Category_talk',
 );
 
 if(isset($wgExtraNamespaces)) {
@@ -53,7 +58,6 @@ if(isset($wgExtraNamespaces)) {
 /* private */ $wgDefaultUserOptionsEn = array(
        'quickbar'              => 1,
        'underline'             => 1,
-       'hover'                 => 1,
        'cols'                  => 80,
        'rows'                  => 25,
        'searchlimit'           => 20,
@@ -72,6 +76,7 @@ if(isset($wgExtraNamespaces)) {
        'showtoolbar'           => 1,
        'date'                  => 0,
        'imagesize'             => 2,
+       'thumbsize'             => 2,
        'rememberpassword'      => 0,
        'enotifwatchlistpages'  => 1,
        'enotifusertalkpages'   => 1,
@@ -80,7 +85,9 @@ if(isset($wgExtraNamespaces)) {
        'shownumberswatching'   => 1,
        'rcusemodstyle'         => 1,
        'showupdated'           => 1,
-       'fancysig' => 0,
+       'fancysig'              => 0,
+       'externaleditor'        => 0,
+       'externaldiff'          => 0,
 );
 
 /* private */ $wgQuickbarSettingsEn = array(
@@ -118,19 +125,16 @@ $wgValidationTypesEn = array (
 );
 
 # 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',
-       '15 January 2001',
-       '2001 January 15',
-       '2001-01-15'
+       'Default',
+       '16:12, January 15, 2001',
+       '16:12, 15 January 2001',
+       '16:12, 2001 January 15',
+       'ISO 8601' => '2001-01-15 16:12:34'
 );
 
 /* private */ $wgUserTogglesEn = array(
-       'hover',
        'underline',
        'highlightbroken',
        'justify',
@@ -156,7 +160,9 @@ define( 'MW_DATE_USER_FORMAT', true );
        'shownumberswatching',
        'rcusemodstyle',
        'showupdated',
-       'fancysig'
+       'fancysig',
+       'externaleditor',
+       'externaldiff',
 );
 
 /* private */ $wgBookstoreListEn = array(
@@ -209,12 +215,13 @@ $wgLanguageNamesEn =& $wgLanguageNames;
        MAG_START                => array( 0,    '__START__'              ),
        MAG_CURRENTMONTH         => array( 1,    'CURRENTMONTH'           ),
        MAG_CURRENTMONTHNAME     => array( 1,    'CURRENTMONTHNAME'       ),
+       MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN'    ),
+       MAG_CURRENTMONTHABBREV   => array( 1,    'CURRENTMONTHABBREV'     ),
        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'              ),
@@ -235,7 +242,12 @@ $wgLanguageNamesEn =& $wgLanguageNames;
        MAG_LOCALURL             => array( 0,    'LOCALURL:'              ),
        MAG_LOCALURLE            => array( 0,    'LOCALURLE:'             ),
        MAG_SERVER               => array( 0,    'SERVER'                 ),
-       MAG_GRAMMAR              => array( 0,    'GRAMMAR:'               )
+       MAG_GRAMMAR              => array( 0,    'GRAMMAR:'               ),
+       MAG_NOTITLECONVERT       => array( 0,    '__NOTITLECONVERT__', '__NOTC__'),
+       MAG_NOCONTENTCONVERT     => array( 0,    '__NOCONTENTCONVERT__', '__NOCC__'),
+       MAG_CURRENTWEEK          => array( 1,    'CURRENTWEEK'            ),
+       MAG_CURRENTDOW           => array( 1,    'CURRENTDOW'             ),
+       MAG_REVISIONID           => array( 1,    'REVISIONID'             ),    
 );
 
 #-------------------------------------------------------------------
@@ -252,14 +264,13 @@ global $wgRightsText;
 'special_version_prefix' => '&nbsp;',
 'special_version_postfix' => '&nbsp;',
 # 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-usenewrc' => 'Enhanced recent changes (JavaScript)',
 'tog-numberheadings' => 'Auto-number headings',
-'tog-showtoolbar'              => 'Show edit toolbar',
+'tog-showtoolbar'              => 'Show edit toolbar (JavaScript)',
 '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)',
@@ -268,7 +279,7 @@ global $wgRightsText;
 '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-previewontop' => 'Show preview before edit box',
 'tog-previewonfirst' => 'Show preview on first edit',
 'tog-nocache' => 'Disable page caching',
 'tog-enotifwatchlistpages'     => 'Send me an email on page changes (remark: existing notification flags need to be cleared manually in the watchlist)',
@@ -279,6 +290,8 @@ global $wgRightsText;
 'tog-rcusemodstyle'            => 'Show recent changes in UseMod style: only the most recent change of any page is listed.',
 'tog-showupdated'              => 'Show update marker ',
 'tog-fancysig' => 'Raw signatures (without automatic link)',
+'tog-externaleditor' => 'Use external editor by default',
+'tog-externaldiff' => 'Use external diff by default',
 
 # dates
 'sunday' => 'Sunday',
@@ -332,21 +345,21 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'portal'               => 'Community portal',
 'portal-url'           => 'Project:Community Portal',
 'about'                        => 'About',
-"aboutsite"      => "About {{SITENAME}}",
-"aboutpage"            => "Project:About",
+'aboutsite'      => 'About {{SITENAME}}',
+'aboutpage'            => 'Project:About',
 'article' => 'Content page',
 'help'                 => 'Help',
-"helppage"             => "Help:Contents",
-"wikititlesuffix" => "{{SITENAME}}",
-"bugreports"   => "Bug reports",
-"bugreportspage" => "Project:Bug_reports",
+'helppage'             => 'Help:Contents',
+'wikititlesuffix' => '{{SITENAME}}',
+'bugreports'   => 'Bug reports',
+'bugreportspage' => 'Project:Bug_reports',
 'sitesupport'   => '-', # To enable, something like 'Donations', 
 'sitesupport-url' => 'Project:Site support',
 'faq'                  => 'FAQ',
-"faqpage"              => "Project:FAQ",
-"edithelp"             => "Editing help",
-"newwindow"            => "(opens in new window)",
-"edithelppage" => "Help:Editing",
+'faqpage'              => 'Project:FAQ',
+'edithelp'             => 'Editing help',
+'newwindow'            => '(opens in new window)',
+'edithelppage' => 'Help:Editing',
 'cancel'               => 'Cancel',
 'qbfind'               => 'Find',
 'qbbrowse'             => 'Browse',
@@ -361,6 +374,10 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'anontalk'             => 'Talk for this IP',
 'navigation' => 'Navigation',
 
+# Metadata in edit box
+'metadata' => '<b>Metadata</b> (for an explanation see <a href="$1">here</a>)',
+'metadata_page' => 'Wikipedia:Metadata',
+
 # NOTE: To turn off "Current Events" in the sidebar,
 # set "currentevents" => "-"
                                       
@@ -371,10 +388,10 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 # set "disclaimers" => "-"
 
 'disclaimers' => 'Disclaimers',
-"disclaimerpage" => "Project:General_disclaimer",
-"errorpagetitle" => "Error",
-"returnto"             => "Return to $1.",
-"tagline"              => "From {{SITENAME}}",
+'disclaimerpage' => "Project:General_disclaimer",
+'errorpagetitle' => "Error",
+'returnto'             => "Return to $1.",
+'tagline'              => "From {{SITENAME}}",
 'whatlinkshere'        => 'Pages that link here',
 'help'                 => 'Help',
 'search'               => 'Search',
@@ -386,8 +403,9 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'edit' => 'Edit',
 'editthispage' => 'Edit this page',
 'delete' => 'Delete',
-"deletethispage" => "Delete this page",
-"undelete_short" => "Undelete $1 edits",
+'deletethispage' => 'Delete this page',
+'undelete_short1' => 'Undelete one edit',
+'undelete_short' => 'Undelete $1 edits',
 'protect' => 'Protect',
 'protectthispage' => 'Protect this page',
 'unprotect' => 'Unprotect',
@@ -420,14 +438,13 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 performed by users with \"sysop\" status.
 See $1.",
 'developertitle' => 'Developer access required',
-"developertext"        => "The action you have requested can only be
+'developertext'        => "The action you have requested can only be
 performed by users with \"developer\" status.
 See $1.",
 'bureaucrattitle'      => 'Bureaucrat access required',
 "bureaucrattext"       => "The action you have requested can only be
 performed by sysops with  \"bureaucrat\" status.",
 'nbytes'               => '$1 bytes',
-'go'                   => 'Go',
 'ok'                   => 'OK',
 'sitetitle'            => "{{SITENAME}}",
 'pagetitle'            => "$1 - {{SITENAME}}",
@@ -442,7 +459,7 @@ performed by sysops with  \"bureaucrat\" status.",
 'thisisdeleted' => "View or restore $1?",
 'restorelink' => "$1 deleted edits",
 'feedlinks' => 'Feed:',
-'sitenotice'   => '', # the equivalent to wgSiteNotice
+'sitenotice'   => '-', # the equivalent to wgSiteNotice
 
 # Short words for each namespace, by default used in the 'article' tab in monobook
 'nstab-main' => 'Article',
@@ -484,6 +501,7 @@ MySQL returned error \"$3: $4\".\n",
 $1',
 'nodb'                 => "Could not select database $1",
 'cachederror'          => 'The following is a cached copy of the requested page, and may not be up to date.',
+'laggedslavemode'   => 'Warning: Page may not contain recent updates.',
 'readonly'             => 'Database locked',
 'enterlockreason' => 'Enter a reason for the lock, including an estimate
 of when the lock will be released',
@@ -528,11 +546,12 @@ a number of reasons why this may be so, please see
 
 You can view and copy the source of this page:",
 'seriousxhtmlerrors' => 'There were serious xhtml markup errors detected by tidy.',
+'sqlhidden' => '(SQL query hidden)',
 
 # Login and logout pages
 #
-"logouttitle"  => 'User logout',
-"logouttext"           => "You are now logged out.<br>
+'logouttitle'  => 'User logout',
+'logouttext'           => "You are now logged out.<br />
 You can continue to use {{SITENAME}} anonymously, or you can log in
 again as the same or as a different user. Note that some pages may
 continue to be displayed as if you were still logged in, until you clear
@@ -561,23 +580,19 @@ Your account has been created. Don't forget to change your {{SITENAME}} preferen
 'createaccountmail'    => 'by email',
 'badretype'            => 'The passwords you entered do not match.',
 'userexists'   => 'The user name you entered is already in use. Please choose a different name.',
-'youremail'            => 'Your email**',
-'yourrealname'         => 'Your real name*',
+'youremail'            => 'Your email²',
+'yourrealname'         => 'Your real name¹',
 'yourlanguage' => 'Interface language',
 'yourvariant'  => 'Language variant',
 'yournick'             => 'Your nickname (for signatures)',
 'emailforlost'         => "Fields marked with stars (*, **) 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-email'     => '** <strong>Email</strong> (optional): Enables others to contact you through your user or user_talk page without the need of revealing your
-email address. It also allows the wiki to sent you a temporary password in case you forgot your current one.',
 'prefs-help-email-enotif' => 'This address is also used to send you email notifications if you enabled the options.',
-'prefs-help-realname'  => '* <strong>Real name</strong> (optional): if you choose to provide it this 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
-email address to them, and it can be used to send you a new password if you forget it.',
+'prefs-help-realname'  => '¹ Real name (optional): if you choose to provide it this will be used for giving you attribution for your work.',
 'loginerror'   => 'Login error',
+'prefs-help-email'      => '² Email (optional): Enables others to contact you through your user or user_talk page without the need of revealing your',
 '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.",
-"nocookieslogin"       => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
+'nocookieslogin'       => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
 'noname'               => 'You have not specified a valid user name.',
 'loginsuccesstitle' => 'Login successful',
 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".",
@@ -585,11 +600,8 @@ email address to them, and it can be used to send you a new password if you forg
 Check your spelling, or use the form below to create a new user account.",
 'nosuchusershort'      => "There is no user by the name \"$1\". Check your spelling.",
 'wrongpassword'                => 'The password you entered is incorrect (or missing). Please try again.',
-'mailmypassword'       => 'Mail me a temporary password
-because I forgot my password',
-'mailmypasswordauthent'        => 'Mail me a temporary password
-because I forgot my password or
-for authentication of my email address',
+'mailmypassword'       => 'Mail me a temporary password',
+'mailmypasswordauthent'        => 'Mail me a temporary password',
 'passwordremindermailsubject' => "Email address authentication and temporary login password from {{SITENAME}}",
 'passwordremindermailbody'     => "Someone, probably you from IP address $1,
 requested that we send you a temporary one-time login password for {{SITENAME}}.
@@ -613,7 +625,7 @@ Please re-login with that for authentication purposes.",
 'mailerror' => "Error sending mail: $1",
 'acct_creation_throttle_hit' => 'Sorry, you have already created $1 accounts. You can\'t make any more.',
 'emailauthenticated'   => 'Your email address was authenticated on $1.',
-'emailnotauthenticated'        => 'Your email address is <strong>not yet authenticated</strong> and the advanced email features are disabled until authentication <strong>(d.u.a.)</strong>.<br>
+'emailnotauthenticated'        => 'Your email address is <strong>not yet authenticated</strong> and the advanced email features are disabled until authentication <strong>(d.u.a.)</strong>.<br />
 To authenticate, please login in with the temporary password which has been mailed to you, or request a new one on the login page.',
 'invalidemailaddress'  => 'The email address cannot be accepted as it appears to have an invalid format. Please enter a well-formatted address or empty that field.',
 'disableduntilauthent' => '<strong>(d.u.a.)</strong>',
@@ -653,6 +665,7 @@ To authenticate, please login in with the temporary password which has been mail
 'savearticle'  => 'Save page',
 'preview'              => 'Preview',
 'showpreview'  => 'Show preview',
+'showdiff'     => 'Show changes',
 'blockedtitle' => 'User is blocked',
 'blockedtext'  => "Your user name or IP address has been blocked by $1.
 The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
@@ -755,6 +768,7 @@ Please check the URL you used to access this page.\n",
 Legend: (cur) = difference with current version,
 (last) = difference with preceding version, M = minor edit.',
 'history_copyright'    => '-',
+'deletedrev' => '[deleted]',
 
 # Diffs
 #
@@ -801,44 +815,48 @@ $1<br />
 $2 List redirects &nbsp; Search for $3 $9",
 "searchdisabled" => '<p style="margin: 1.5em 2em 1em">{{SITENAME}} search is disabled for performance reasons. You can search via Google in the meantime.
 <span style="font-size: 89%; display: block; margin-left: .2em">Note that their indexes of {{SITENAME}} content may be out of date.</span></p>',
-'googlesearch' => "
-<!-- SiteSearch Google -->
-<FORM method=GET action=\"http://www.google.com/search\">
-<TABLE bgcolor=\"#FFFFFF\"><tr><td>
-<A HREF=\"http://www.google.com/\">
-<IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
-border=\"0\" ALT=\"Google\"></A>
-</td>
-<td>
-<INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
-<INPUT type=submit name=btnG VALUE=\"Google Search\">
-<font size=-1>
-<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 />
-<input type='hidden' name='ie' value='$2'>
-<input type='hidden' name='oe' value='$2'>
-</font>
-</td></tr></TABLE>
-</FORM>
-<!-- SiteSearch Google -->",
+
+'googlesearch' => '
+<div style="margin-left: 2em">
+
+<!-- Google search -->
+<div style="width:130px;float:left;text-align:center;position:relative;top:-8px"><a href="http://www.google.com/" style="padding:0;background-image:none"><img src="http://www.google.com/logos/Logo_40wht.gif" alt="Google" style="border:none" /></a></div>
+
+<form method="get" action="http://www.google.com/search" style="margin-left:135px">
+  <div>
+    <input type="hidden" name="domains" value="{{SERVER}}" />
+    <input type="hidden" name="num" value="50" />
+    <input type="hidden" name="ie" value="$2" />
+    <input type="hidden" name="oe" value="$2" />
+    
+    <input type="text" name="q" size="31" maxlength="255" value="$1" />
+    <input type="submit" name="btnG" value="Google Search" />
+  </div>
+  <div style="font-size:90%">
+    <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
+    <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
+  </div>
+</form>
+
+</div>',
 'blanknamespace' => '(Main)',
 
 # Preferences page
 #
 'preferences'  => 'Preferences',
 'prefsnologin' => 'Not logged in',
-'prefsnologintext'     => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
+'prefsnologintext'     => "You must be [[Special:Userlogin|logged in]]
 to set user preferences.",
 'prefslogintext' => "You are logged in as \"$1\".
 Your internal ID number is $2.
 
 See [[Project: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',
 'changepassword' => 'Change password',
 'skin'                 => 'Skin',
-'math'                 => 'Rendering math',
-'dateformat'   => 'Date format',
+'math'                 => 'Math',
+'dateformat'           => 'Date format',
 'math_failure'         => 'Failed to parse',
 'math_unknown_error'   => 'unknown error',
 'math_unknown_function'        => 'unknown function ',
@@ -849,8 +867,8 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'math_bad_output'      => 'Can\'t write to or create math output directory',
 'math_notexvc' => 'Missing texvc executable; please see math/README to configure.',
 'prefs-personal' => 'User data',
-'prefs-rc' => 'Recent changes and stub display',
-'prefs-misc' => 'Misc settings',
+'prefs-rc' => 'Recent changes & stubs',
+'prefs-misc' => 'Misc',
 'saveprefs'            => 'Save preferences',
 'resetprefs'   => 'Reset preferences',
 'oldpassword'  => 'Old password',
@@ -859,7 +877,7 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'textboxsize'  => 'Editing',
 'rows'                 => 'Rows',
 'columns'              => 'Columns',
-'searchresultshead' => 'Search result settings',
+'searchresultshead' => 'Search',
 'resultsperpage' => 'Hits to show per page',
 'contextlines' => 'Lines to show per hit',
 'contextchars' => 'Characters of context per line',
@@ -876,13 +894,14 @@ from server time (UTC).',
 'emailflag'            => 'Disable e-mail from other users',
 'defaultns'            => 'Search in these namespaces by default:',
 'default'              => 'default',
+'files'                        => 'Files',
 
 # User levels special page
 #
 
 # switching pan
-'userlevels-lookup-group' => 'Manage group rights',
-'userlevels-group-edit' => 'Existent groups: ',
+'grouplevels-lookup-group' => 'Manage group rights',
+'grouplevels-group-edit' => 'Existing groups: ',
 'editgroup' => 'Edit Group',
 'addgroup' => 'Add Group',
 
@@ -891,19 +910,21 @@ from server time (UTC).',
 'editusergroup' => 'Edit User Groups',
 
 # group editing
-'userlevels-editgroup' => 'Edit group',
-'userlevels-addgroup' => 'Add group',
-'userlevels-editgroup-name' => 'Group name: ',
-'userlevels-editgroup-description' => 'Group description (max 255 characters):<br />',
+'grouplevels-editgroup' => 'Edit group',
+'grouplevels-addgroup' => 'Add group',
+'grouplevels-editgroup-name' => 'Group name: ',
+'grouplevels-editgroup-description' => 'Group description (max 255 characters):<br />',
 'savegroup' => 'Save Group',
 
 # user groups editing
+#
 'userlevels-editusergroup' => 'Edit user groups',
 'saveusergroups' => 'Save User Groups',
 'userlevels-groupsmember' => 'Member of:',
 'userlevels-groupsavailable' => 'Available groups:',
 'userlevels-groupshelp' => 'Select groups you want the user to be removed from or added to.
-Unselected groups will not be changed. You can unselect a group by using CTRL + Left Click',
+Unselected groups will not be changed. You can deselect a group with CTRL + Left Click',
+
 # Recent changes
 #
 'changes' => 'changes',
@@ -939,8 +960,9 @@ Unselected groups will not be changed. You can unselect a group by using CTRL +
 'reupload'             => 'Re-upload',
 'reuploaddesc' => 'Return to the upload form.',
 'uploadnologin' => 'Not logged in',
-'uploadnologintext'    => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
+'uploadnologintext'    => "You must be [[Special:Userlogin|logged in]]
 to upload files.",
+'upload_directory_read_only' => 'The upload directory ($1) is not writable by the webserver.',
 'uploadfile'   => 'Upload images, sounds, documents etc.',
 'uploaderror'  => 'Upload error',
 'uploadtext'   =>
@@ -993,7 +1015,7 @@ agrees to license it under the terms of the $1.",
 '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.',
+'largefile'            => 'It is recommended that images not exceed $1 bytes in size, this file is $2 bytes',
 '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',
@@ -1003,9 +1025,11 @@ 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. 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\"",
+'uploadedimage' => "uploaded \"[[$1]]\"",
 'uploaddisabled' => 'Sorry, uploading is disabled.',
 'uploadcorrupt' => 'The file is corrupt or has an incorrect extension. Please check the file and upload again.',
+'sourcefilename' => 'Source filename',
+'destfilename' => 'Destination filename',
 
 # Image list
 #
@@ -1015,7 +1039,6 @@ created and by whom, and anything else you may know about it. If this is an imag
 'ilshowmatch'  => 'Show all images with names matching',
 'ilsubmit'             => 'Search',
 'showlast'             => "Show last $1 images sorted $2.",
-'all'                  => 'all',
 'byname'               => 'by name',
 'bydate'               => 'by date',
 'bysize'               => 'by size',
@@ -1034,6 +1057,14 @@ this old version, (rev) = revert to this old version.
 'nolinkstoimage' => 'There are no pages that link to this image.',
 'sharedupload' => 'This file is a shared upload and may be used by other projects.',
 'shareduploadwiki' => 'Please see the [$1 image description page] for further information.',
+'noimage'       => "No image by this name exists.
+
+<div class=\"editExternally\">
+'''[$1 Upload this image]'''
+</div><br clear=all />",
+'uploadnewversion' => "<div class=\"editExternally\">
+[$1 Upload a new version of this image]
+</div><br clear=all />",
 
 # Statistics
 #
@@ -1059,7 +1090,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'maintenancebacklink'  => 'Back to Maintenance Page',
 'disambiguations'      => 'Disambiguation pages',
 'disambiguationspage'  => "Project:Links_to_disambiguating_pages",
-'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.",
+'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 disambiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
 'doubleredirects'      => 'Double Redirects',
 '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.",
 'brokenredirects'      => 'Broken Redirects',
@@ -1097,11 +1128,13 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'listadmins'   => 'Admins list',
 'specialpages' => 'Special pages',
 'spheading'            => 'Special pages for all users',
+'restrictedpheading'   => 'Restricted special pages',
 'asksqlpheading' => 'asksql level',
 'blockpheading' => 'block level',
 'createaccountpheading' => 'createaccount level',
 'deletepheading' => 'delete level',
 'userrightspheading' => 'userrights level',
+'grouprightspheading' => 'grouprights level',
 'siteadminpheading' => 'siteadmin level',
 
 /** obsoletes
@@ -1119,11 +1152,12 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'movethispage' => 'Move this page',
 'unusedimagestext' => '<p>Please note that other web sites may link to an image with
 a direct URL, and so may still be listed here despite being
-in active use.',
+in active use.</p>',
 'booksources'  => 'Book sources',
-'categoriespagetext' => 'The following categories exists in the wiki.',
+'categoriespagetext' => 'The following categories exist in the wiki.',
 'data' => 'Data',
-'userlevels' => 'User levels management',
+'userlevels' => 'User rights management',
+'grouplevels' => 'User group management',
 
 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
 'booksourcetext' => "Below is a list of links to other sites that
@@ -1143,19 +1177,34 @@ You can narrow down the view by selecting a log type, the user name, or the affe
 # Special:Allpages
 'nextpage'          => 'Next page ($1)',
 'articlenamespace'  => '(articles)',
-'allpagesformtext1' => 'Display pages starting at: $1',
-'allpagesformtext2' => 'Choose namespace: $1 $2',
-'allarticles'       => 'All articles',
-'allpagesprev'      => 'Previous',
-'allpagesnext'      => 'Next',
-'allpagesnamespace' => 'All pages ($1 namespace)',
-'allpagessubmit'    => 'Go',
-
-# Email this user
+'allpagesformtext' => '
+<table border="0">
+       <tr>
+               <td align="right">Display pages starting at:</td>
+               <td align="left">$1</td>
+       </tr>
+       <tr>
+               <td align="right">Namespace:</td>
+               <td align="left">$2 $3</td>
+       </tr>
+       <tr>
+               <td align="right">$4</td>
+               <td align="left">Invert</td>
+       </tr>
+</table>',
+'allarticles'          => 'All articles',
+'allnonarticles'       => 'All non-articles',
+'allinnamespace'       => 'All pages ($1 namespace)',
+'allnotinnamespace'    => 'All pages (not in $1 namespace)',
+'allpagesprev'         => 'Previous',
+'allpagesnext'         => 'Next',
+'allpagessubmit'       => 'Go',
+
+# E this user
 #
 'mailnologin'  => 'No send address',
-'mailnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin\">logged in</a>
-and have a valid e-mail address in your <a href=\"{{localurl:Special:Preferences}}\">preferences</a>
+'mailnologintext' => "You must be [[Special:Userlogin|logged in]]
+and have a valid e-mail address in your [[Special:Preferences|preferences]]
 to send e-mail to other users.",
 'emailuser'            => 'E-mail this user',
 'emailpage'            => 'E-mail user',
@@ -1183,7 +1232,7 @@ or has chosen not to receive e-mail from other users.',
 'watchlistsub'         => "(for user \"$1\")",
 'nowatchlist'          => 'You have no items on your watchlist.',
 'watchnologin'         => 'Not logged in',
-'watchnologintext'     => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
+'watchnologintext'     => "You must be [[Special:Userlogin|logged in]]
 to modify your watchlist.",
 'addedwatch'           => 'Added to watchlist',
 'addedwatchtext'       => "The page \"$1\" has been added to your [[Special:Watchlist|watchlist]].
@@ -1214,28 +1263,22 @@ at the bottom of the screen (deleting a content page also deletes the accompanyi
 'removingchecked'      => 'Removing requested items from watchlist...',
 'couldntremove'        => "Couldn't remove item '$1'...",
 'iteminvalidname'      => "Problem with item '$1', invalid name...",
-'wlnote'                       => "Below are the last $1 changes in the last <b>$2</b> hours.",
-'wlshowlast'           => "Show last $1 hours $2 days $3",
-'wlsaved'                      => 'This is a saved version of your watchlist.',
+'wlnote'               => 'Below are the last $1 changes in the last <b>$2</b> hours.',
+'wlshowlast'           => 'Show last $1 hours $2 days $3',
+'wlsaved'              => 'This is a saved version of your watchlist.',
+'wlhideshowown'        => '$1 my edits.',
+'wlshow'               => 'Show',
+'wlhide'               => 'Hide',
 
 'updatedmarker'                => '<span class=\'updatedmarker\'>&nbsp;updated (since my last visit)&nbsp;</span>',
 
 'email_notification_mailer'            => '{{SITENAME}} Notification Mailer',
-'email_notification_infotext'          => '
-<strong>Email Notification</strong><p>
-<form action=\'{{localurl:Special:Watchlist|action=submit&magic=yes}}\' method=\'post\'>
-<ul>
-<li>You will be notified by email when someone changes a page which is listed in your watchlist.</li>
-<li>A flag is set so that you receive only one email on the first change.</li>
-<li>Your own edits do <b>not</b> trigger the sending of notifications.
-<li>{{MediaWiki:updatedmarker}} means that the <b><i>page has changed since your last visit and that a notification mail has been sent to you.</i></b>.</li>
-<li>The flag is automatically cleared when you visit such pages.</li>
-<li> Alternatively, you can reset all flags at once by clicking on&nbsp; <input type="submit" name="dummy" value=\'Reset all notification flags (set their status to "visited")\'><input type="hidden" name="reset" value="all"></form></li>
-</ul>
-<hr>',
+'email_notification_infotext'          => "Email notification is on.
+You will be notified by email when someone changes a page which is listed in your watchlist.",
+'email_notification_reset'                     => 'Reset all notification flags (set their status to "visited")',
 'email_notification_newpagetext'=> 'This is a new page.',
 'email_notification_to'        => '$WATCHINGUSERNAME_QP <$WATCHINGUSEREMAILADDR>',
-'email_notification_subject'   => '{{SITENAME}} page $PAGETITLE_QP has been changed by $PAGEEDITOR_QP',
+'email_notification_subject'   => '{{SITENAME}} page $PAGETITLE has been changed by $PAGEEDITOR',
 'email_notification_lastvisitedrevisiontext' => 'See {{SERVER}}{{localurl:$PAGETITLE_RAWURL|diff=0&oldid=$OLDID}} for all changes since your last visit.',
 'email_notification_body' => 'Dear $WATCHINGUSERNAME,
 
@@ -1276,7 +1319,6 @@ or image along with all of its history from the database.
 Please confirm that you intend to do this, that you understand the
 consequences, and that you are doing this in accordance with
 [[Project:Policy]].",
-'confirmcheck' => 'Yes, I really want to delete this.',
 'actioncomplete' => 'Action complete',
 'deletedtext'  => "\"$1\" has been deleted.
 See $2 for a record of recent deletions.",
@@ -1299,11 +1341,14 @@ 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>\".",
 'revertpage'   => "Reverted edit of $2, changed back to last version by $1",
+'sessionfailure' => 'There seems to be a problem with your login session;
+this action has been canceled as a precaution against session hijacking.
+Please hit "back" and reload the page you came from, then try again.',
 'protectlogpage' => 'Protection_log',
 'protectlogtext' => "Below is a list of page locks/unlocks.
 See [[Project:Protected page]] for more information.",
-'protectedarticle' => "protected $1",
-'unprotectedarticle' => "unprotected $1",
+'protectedarticle' => "protected \"[[$1]]\"",
+'unprotectedarticle' => "unprotected \"[[$1]]\"",
 'protectsub' =>"(Protecting \"$1\")",
 'confirmprotecttext' => 'Do you really want to protect this page?',
 'confirmprotect' => 'Confirm protection',
@@ -1338,6 +1383,17 @@ See [[Special:Log/delete]] for a record of recent deletions and restorations.",
 'contributions' => 'User contributions',
 'mycontris'     => 'My contributions',
 'contribsub'    => "For $1",
+'contributionsformtext' => '
+<table border="0">
+        <tr>
+                <td align="right">Namespace:</td>
+                <td align="left">$1 $2</td>
+        </tr>
+       <tr>
+               <td align="right">$3</td>
+               <td>Invert</td>
+       </tr>
+</table>',
 '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.",
@@ -1364,7 +1420,8 @@ This should be done only only to prevent vandalism, and in
 accordance with [[Project:Policy|policy]].
 Fill in a specific reason below (for example, citing particular
 pages that were vandalized).",
-'ipaddress'            => 'IP Address/username',
+'ipaddress'            => 'IP Address',
+'ipadressorusername' => 'IP Address or username',
 'ipbexpiry'            => 'Expiry',
 'ipbreason'            => 'Reason',
 'ipbsubmit'            => 'Block this user',
@@ -1377,7 +1434,7 @@ pages that were vandalized).",
 'unblockiptext'        => 'Use the form below to restore write access
 to a previously blocked IP address or username.',
 'ipusubmit'            => 'Unblock this address',
-'ipusuccess'   => "\"$1\" unblocked",
+'ipusuccess'   => "\"[[$1]]\" unblocked",
 'ipblocklist'  => 'List of blocked IP addresses and usernames',
 'blocklistline'        => "$1, $2 blocked $3 (expires $4)",
 'blocklink'            => 'block',
@@ -1385,7 +1442,7 @@ to a previously blocked IP address or username.',
 'contribslink' => 'contribs',
 'autoblocker'  => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
 'blocklogpage' => 'Block_log',
-'blocklogentry'        => 'blocked "$1" with an expiry time of $2',
+'blocklogentry'        => 'blocked "[[$1]]" with an expiry time of $2',
 'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically
 blocked IP addresses are not listed. See the [[Special:Ipblocklist|IP block list]] for
 the list of currently operational bans and blocks.',
@@ -1396,6 +1453,9 @@ the list of currently operational bans and blocks.',
 'proxyblocker' => 'Proxy blocker',
 '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.',
 'proxyblocksuccess'    => "Done.\n",
+'sorbs'         => 'SORBS DNSBL',
+'sorbsreason'   => 'Your IP address is listed as an open proxy in the [http://www.sorbs.net SORBS] DNSBL.',
+
 
 # Developer tools
 #
@@ -1452,9 +1512,22 @@ Type the name of the user in the box and press the button to make the user an ad
 'user_rights_set'      => "<b>User rights for \"$1\" updated</b>",
 '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',
+'already_sysop'     => 'This user is already an administrator',
+'already_bureaucrat' => 'This user is already a bureaucrat',
 
 # Validation
-'val_clear_old' => 'Clear my other validation data for $1',
+'val_yes' => 'Yes',
+'val_no' => 'No',
+'val_revision' => 'Revision',
+'val_time' => 'Time',
+'val_list_header' => '<th>#</th><th>Topic</th><th>Range</th><th>Action</th>',
+'val_add' => 'Add',
+'val_del' => 'Delete',
+'val_warning' => '<b>Never, <i>ever</i>, change something here without <i>explicit</i> community consensus!</b>',
+'val_rev_for' => 'Revisions for ',
+'val_rev_stats_link' => 'See the validation statistics for "$1" <a href="$2">here</a>',
+'val_iamsure' => 'Check this box if you really mean it!',
+'val_clear_old' => 'Clear my older validation data',
 '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>
@@ -1473,7 +1546,7 @@ merging will fill in the other options with your previous settings.',
 '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_view_version' => 'View this revision',
 '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.',
@@ -1511,7 +1584,7 @@ proceeding.',
 In those cases, you will have to move or merge the page manually if desired.',
 'movearticle'  => 'Move page',
 'movenologin'  => 'Not logged in',
-'movenologintext' => "You must be a registered user and <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
+'movenologintext' => "You must be a registered user and [[Special:Userlogin|logged in]]
 to move a page.",
 'newtitle'             => 'To new title',
 'movepagebtn'  => 'Move page',
@@ -1527,8 +1600,18 @@ title. Please merge them manually.',
 'movetalk'             => 'Move "talk" page as well, if applicable.',
 'talkpagemoved' => 'The corresponding talk page was also moved.',
 'talkpagenotmoved' => 'The corresponding talk page was <strong>not</strong> moved.',
-'1movedto2'            => "$1 moved to $2",
-'1movedto2_redir' => '$1 moved to $2 over redirect',
+'1movedto2'            => "[[$1]] moved to [[$2]]",
+'1movedto2_redir' => '[[$1]] moved to [[$2]] over redirect',
+'movelogpage' => 'Move log',
+'movelogpagetext' => 'Below is a list of page moved.',
+'movereason'   => 'Reason',
+'revertmove'   => 'revert',
+'delete_and_move' => 'Delete and move',
+'delete_and_move_text' => 
+'==Deletion required==
+
+The destination article "[[$1]]" already exists. Do you want to delete it to make way for the move?',
+'delete_and_move_reason' => 'Deleted to make way for move',
 
 # Export
 
@@ -1550,6 +1633,9 @@ article [[Train]].
 # Namespace 8 related
 
 'allmessages'  => 'All system messages',
+'allmessagesname' => 'Name',
+'allmessagesdefault' => 'Default text',
+'allmessagescurrent' => 'Current text',
 'allmessagestext'      => 'This is a list of all system messages available in the MediaWiki: namespace.',
 'allmessagesnotsupportedUI' => 'Your current interface language <b>$1</b> is not supported by Special:AllMessages at this site. ',
 'allmessagesnotsupportedDB' => 'Special:AllMessages not supported because wgUseDatabaseMessages is off.',
@@ -1573,6 +1659,7 @@ article [[Train]].
 'accesskey-minoredit' => 'i',
 'accesskey-save' => 's',
 'accesskey-preview' => 'p',
+'accesskey-diff' => 'd',
 'accesskey-compareselectedversions' => 'v',
 
 # tooltip help for some actions, most are in Monobook.js
@@ -1580,10 +1667,11 @@ article [[Train]].
 'tooltip-minoredit' => 'Mark this as a minor edit [alt-i]',
 'tooltip-save' => 'Save your changes [alt-s]',
 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]',
+'tooltip-diff' => 'Show which changes you made to the text. [alt-d]',
 'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
+'tooltip-watch' => 'Add this page to your watchlist [alt-w]',
 
 # stylesheets
-
 'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
 #'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
 
@@ -1617,12 +1705,12 @@ article [[Train]].
 'listingcontinuesabbrev' => " cont.",
 
 # 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",
+'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',
@@ -1699,10 +1787,11 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
 'deletedrevision' => 'Deleted old revision $1.',
 
 # browsing diffs
-'previousdiff' => '&larr; Go to previous diff',
-'nextdiff' => 'Go to next diff &rarr;',
+'previousdiff' => '← Previous diff',
+'nextdiff' => 'Next diff →',
 
 'imagemaxsize' => 'Limit images on image description pages to: ',
+'thumbsize'    => 'Thumbnail size : ',
 'showbigimage' => 'Download high resolution version ($1x$2, $3 KB)',
 
 'newimages' => 'New images gallery',
@@ -1751,21 +1840,55 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
 'variantname-zh-sg' => 'sg',
 'variantname-zh' => 'zh',
 
+# Chinese conversion table
+'zhconversiontable' => '-{}-',
+
 # labels for User: and Title: on Special:Log pages
 'specialloguserlabel' => 'User: ',
 'speciallogtitlelabel' => 'Title: ',
 
+'passwordtooshort' => 'Your password is too short. It must have at least $1 characters.',
+
+# Exif data
+'exifdata' => 'Metadata',
+
+# external editor support
+'edit-externally' => 'Edit this file using an external application',
+'edit-externally-help' => 'See the [http://meta.wikimedia.org/wiki/Help:External_editors setup instructions] for more information.',
+
+# 'all' in various places, this might be different for inflicted languages
+'recentchangesall' => 'all',
+'imagelistall' => 'all',
+'watchlistall1' => 'all',
+'watchlistall2' => 'all',
+'contributionsall' => 'all',
 );
 
+/* a fake language converter */
+class fakeConverter {
+       var $mLang;   
+       function fakeConverter($langobj) {$this->mLang = $langobj;}
+       function convert($t, $i) {return $t;}
+       function getVariants() { return array( strtolower( substr( get_class( $this->mLang ), 8 ) ) ); }
+       function getPreferredVariant() {return strtolower( substr( get_class( $this->mLang ), 8 ) );}
+       function findVariantLink(&$l, &$n) {}
+       function getExtraHashOptions() {return '';}
+       function getParsedTitle() {return '';}
+       function markNoConversion($text) {return $text;}
+}
+
 #--------------------------------------------------------------------------
 # Internationalisation code
 #--------------------------------------------------------------------------
 
 class Language {
-       function Language(){
+       var $mConverter;
+       function Language() {
+
                # Copies any missing values in the specified arrays from En to the current language
                $fillin = array( 'wgSysopSpecialPages', 'wgValidSpecialPages', 'wgDeveloperSpecialPages' );
                $name = get_class( $this );
+
                if( strpos( $name, 'language' ) == 0){
                        $lang = ucfirst( substr( $name, 8 ) );
                        foreach( $fillin as $arrname ){
@@ -1779,28 +1902,59 @@ class Language {
                                }
                        }
                }
+               $this->mConverter = new fakeConverter($this);
        }
-
-       function getDefaultUserOptions () {
+       
+       /**
+        * Exports the default user options as defined in
+        * $wgDefaultUserOptionsEn, user preferences can override some of these
+        * depending on what's in (Local|Default)Settings.php and some defines.
+        * 
+        * @return array
+        */
+       function getDefaultUserOptions() {
                global $wgDefaultUserOptionsEn ;
                return $wgDefaultUserOptionsEn ;
        }
-
-       function getBookstoreList () {
+       
+       /**
+        * Exports $wgBookstoreListEn
+        * @return array
+        */
+       function getBookstoreList() {
                global $wgBookstoreListEn ;
                return $wgBookstoreListEn ;
        }
-
+       
+       /**
+        * @return array
+        */
        function getNamespaces() {
                global $wgNamespaceNamesEn;
                return $wgNamespaceNamesEn;
        }
-
+       
+       /**
+        * Get a namespace value by key
+        * <code>
+        * $mw_ns = $wgContLang->getNsText( NS_MEDIAWIKI );
+        * echo $mw_ns; // prints 'MediaWiki'
+        * </code>
+        *
+        * @param int $index the array key of the namespace to return
+        * @return string
+        */
        function getNsText( $index ) {
                global $wgNamespaceNamesEn;
                return $wgNamespaceNamesEn[$index];
        }
-
+       
+       /**
+        * Get a namespace key by value
+        *
+        * @param string $text
+        * @return mixed An integer if $text is a valid value otherwise false
+        */
        function getNsIndex( $text ) {
                global $wgNamespaceNamesEn;
 
@@ -1810,8 +1964,13 @@ class Language {
                return false;
        }
 
-       # short names for language variants used for language conversion links. 
-       # so far only used by zh
+       /**
+        * short names for language variants used for language conversion links. 
+        * so far only used by zh
+        *
+        * @param string $code
+        * @return string
+        */
        function getVariantname( $code ) {
                return wfMsg( 'variantname-' . $code );
        }
@@ -1851,7 +2010,7 @@ class Language {
        }
 
        function getUserToggle( $tog ) {
-               return wfMsg("tog-".$tog);
+               return wfMsg('tog-'.$tog);
        }
 
        function getLanguageNames() {
@@ -1899,11 +2058,18 @@ class Language {
                        return wfMsg($wgWeekdayNamesEn[$key-1]);
        }
 
+       /**
+        * Used by date() and time() to adjust the time output.
+        * @access public
+        * @param int   $ts the time in date('YmdHis') format
+        * @param mixed $tz adjust the time by this amount (default false)
+        * @return int
+        */
        function userAdjust( $ts, $tz = false ) {
                global $wgUser, $wgLocalTZoffset;
 
                if (!$tz) {
-               $tz = $wgUser->getOption( 'timecorrection' );
+                       $tz = $wgUser->getOption( 'timecorrection' );
                }
 
                if ( $tz === '' ) {
@@ -1927,63 +2093,116 @@ class Language {
                  (int)substr( $ts, 0, 4 ) ); #Year
                return date( 'YmdHis', $t );
        }
+       
+       /**
+        * This is meant to be used by time(), date(), and timeanddate() to get
+        * the date preference they're supposed to use, it should be used in
+        * all children.
+        *
+        *<code>
+        * function timeanddate([...], $format = '0') {
+        *      $datePreference = $this->dateFormat($format);
+        * [...]
+        *</code>
+        *
+        * @param mixed $format
+        * @return string
+        */
+       function dateFormat( $format ) {
+               global $wgUser;
 
-       function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false ) {
-               global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
-
-               $ts=wfTimestamp(TS_MW,$ts);
-
-               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
-
-               if ( $wgUseDynamicDates ) {
-                       if ( $format == MW_DATE_USER_FORMAT ) {
-                               $datePreference = $wgUser->getOption( 'date' );
-                       } else {
-                               $options = $this->getDefaultUserOptions();
-                               $datePreference = $options['date'];
-                       }
-                       if ( $datePreference == 0 ) {
-                               $datePreference = $wgAmericanDates ? 1 : 2;
-                       }
+               if ( !$wgUser->isLoggedIn() || $format === false ) {
+                       $options = $this->getDefaultUserOptions();
+                       return $options['date'];
                } else {
-                       $datePreference = $wgAmericanDates ? 1 : 2;
+                       return $wgUser->getOption( 'date' );
                }
+       }
+       
+       /**
+        * @access public
+        * @param mixed  $ts the time format which needs to be turned into a
+        *               date('YmdHis') format with wfTimestamp(TS_MW,$ts)
+        * @param bool   $adj whether to adjust the time output according to the
+        *               user configured offset ($timecorrection)
+        * @param mixed  $format what format to return, if it's false output the
+        *               default one.
+        * @param string $timecorrection the time offset as returned by
+        *               validateTimeZone() in Special:Preferences
+        * @return string
+        */
+       function date( $ts, $adj = false, $format = false, $timecorrection = false ) {
+               global $wgAmericanDates, $wgUser;
+               
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
+               
+               $datePreference = $this->dateFormat($format);
+               
+               if ($datePreference == '0') {$datePreference = $wgAmericanDates ? '0' : '2';}
 
-               $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
+               $month = $this->getMonthName( substr( $ts, 4, 2 ) );
                $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
-               $year = $this->formatNum( substr( $ts, 0, 4 ) );
-
+               $year = $this->formatNum( substr( $ts, 0, 4 ), true );
+               
                switch( $datePreference ) {
-                       case 1: return "$month $day, $year";
-                       case 2: return "$day $month $year";
-                       default: return "$year $month $day";
+                       case '2': return "$day $month $year";
+                       case '3': return "$year $month $day";
+                       case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2);
+                       default: return "$month $day, $year";
                }
        }
 
-       function time( $ts, $adj = false, $seconds = false, $timecorrection = false ) {
-               $ts=wfTimestamp(TS_MW,$ts);
+       /**
+       * @access public
+       * @param mixed  $ts the time format which needs to be turned into a
+       *               date('YmdHis') format with wfTimestamp(TS_MW,$ts)
+       * @param bool   $adj whether to adjust the time output according to the
+       *               user configured offset ($timecorrection)
+       * @param mixed  $format what format to return, if it's false output the
+       *               default one.
+       * @param string $timecorrection the time offset as returned by
+       *               validateTimeZone() in Special:Preferences
+       * @return string
+       */
+       function time( $ts, $adj = false, $format = false, $timecorrection = false ) {
+               global $wgUser, $wgAmericanDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
+               $datePreference = $this->dateFormat($format);
+               
+               if ($datePreference == '0') {$datePreference = $wgAmericanDates ? '0' : '2';}
 
                $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
-               if ( $seconds ) {
+               
+               if ( $datePreference === 'ISO 8601' ) {
                        $t .= ':' . substr( $ts, 12, 2 );
                }
                return $this->formatNum( $t );
        }
-
-       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false, $dateandtime = false) {
-               $ts=wfTimestamp(TS_MW,$ts);
-               if ($dateandtime) {
-                       $ret = $this->date( $ts, $adj, $format, $timecorrection ) . ', ' . $this->time( $ts, $adj, false, $timecorrection );
-               } else {
-                       $ret = $this->time( $ts, $adj, false, $timecorrection ) . ', ' . $this->date( $ts, $adj, $format, $timecorrection );
+       
+       /**
+       * @access public
+       * @param mixed  $ts the time format which needs to be turned into a
+       *               date('YmdHis') format with wfTimestamp(TS_MW,$ts)
+       * @param bool   $adj whether to adjust the time output according to the
+       *               user configured offset ($timecorrection)
+       * @param mixed  $format what format to return, if it's false output the
+       *               default one.
+       * @param string $timecorrection the time offset as returned by
+       *               validateTimeZone() in Special:Preferences
+       * @return string
+       */
+       function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false) {
+               global $wgUser, $wgAmericanDates;
+               
+               $datePreference = $this->dateFormat($format);
+               
+               switch ( $datePreference ) {
+                       case 'ISO 8601': return $this->date( $ts, $adj, $datePreference, $timecorrection ) . ' ' .
+                               $this->time( $ts, $adj, $datePreference, $timecorrection );
+                       default: return $this->time( $ts, $adj, $datePreference, $timecorrection ) . ', ' .
+                               $this->date( $ts, $adj, $datePreference, $timecorrection );
                }
-               return $ret;
-       }
-
-       function rfc1123( $ts ) {
-               return date( 'D, d M Y H:i:s T', $ts );
        }
 
        function getValidSpecialPages() {
@@ -2022,7 +2241,7 @@ class Language {
        }
 
        function lcfirst( $s ) {
-               return strtolower( $s{0}  ). substr( $s, 1 );
+               return strtolower( $s{0} ). substr( $s, 1 );
        }
 
        function checkTitleEncoding( $s ) {
@@ -2044,11 +2263,16 @@ class Language {
                # it with one to detect and convert another legacy encoding.
                return $s;
        }
-
+       
+       /**
+        * 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.
+        *
+        * @param string $in
+        * @return string
+        */
        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 strtolower( $in );
        }
 
@@ -2058,13 +2282,26 @@ class Language {
                return $termsArray;
        }       
 
+       /**
+        * Get the first character of a string. In ASCII, return
+        * first byte of the string. UTF8 and others have to
+        * overload this.
+        *
+        * @param string $s
+        * @return string
+        */
        function firstChar( $s ) {
-               # Get the first character of a string. In ASCII, return
-               # first byte of the string. UTF8 and others have to
-               # overload this.
                return $s[0];
        }
 
+       function initEncoding() {
+               # Some languages may have an alternate char encoding option
+               # (Esperanto X-coding, Japanese furigana conversion, etc)
+               # If this language is used as the primary content language,
+               # an override to the defaults can be set here on startup.
+               #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
+       }
+
        function setAltEncoding() {
                # Some languages may have an alternate char encoding option
                # (Esperanto X-coding, Japanese furigana conversion, etc)
@@ -2104,10 +2341,17 @@ class Language {
                }
        }
 
-       # For right-to-left language support
+       /**
+        * For right-to-left language support
+        * @return bool
+        */
        function isRTL() { return false; }
 
-       # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
+       /**
+        * To allow "foo[[bar]]" to extend the link over the whole word "foobar"
+        *
+        * @return bool
+        */
        function linkPrefixExtension() { return false; }
 
 
@@ -2127,20 +2371,64 @@ class Language {
                $mw->mCaseSensitive = $rawEntry[0];
                $mw->mSynonyms = array_slice( $rawEntry, 1 );
        }
-
-       # Italic is unsuitable for some languages
+       
+       /** 
+        * Italic is unsuitable for some languages
+        *
+        * @access public
+        * @param string $text The text to be emphasized.
+        */
        function emphasize( $text ) {
                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.
-       function formatNum( $number ) {
-               return $number;
+       /**
+        * This function enables formatting of numbers, it should only come
+        * into effect when the $wgTranslateNumerals variable is TRUE.
+        * 
+        * Normally we output all numbers in plain en_US style, that is
+        * 293,291.235 for twohundredninetythreethousand-twohundredninetyone
+        * point twohundredthirtyfive. However this is not sutable for all
+        * languages, some such as Pakaran want ੨੯੩,੨੯੫.੨੩੫ and others such as
+        * Icelandic just want to use commas instead of dots, and dots instead
+        * of commas like "293.291,235".
+        * 
+        * An example of this function being called:
+        * <code>
+        * wfMsg( 'message', $wgLang->formatNum( $num ) )
+        * </code>
+        * 
+        * See LanguageGu.php for the Gujarati implementation and
+        * LanguageIs.php for the , => . and . => , implementation.
+        * 
+        * @todo check if it's viable to use localeconv() for the decimal
+        *       seperator thing.
+        * @access public
+        * @param mixed $number the string to be formatted, should be an integer or
+        *        a floating point number. 
+        * @param bool $year are we being passed a year? (turns off commafication)
+        * @return mixed whatever we're fed if it's a year, a string otherwise.
+        */
+       function formatNum( $number, $year = false ) {
+               return $year ? $number : $this->commafy($number);
+       }
+       
+       /**
+        * Adds commas to a given number
+        *
+        * @param mixed $_
+        * @return string
+        */
+       function commafy($_) {
+               return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
        }
 
+       /**
+        * For the credit list in includes/Credits.php (action=credits)
+        *
+        * @param array $l
+        * @return string
+        */
        function listToText( $l ) {
                $s = '';
                $m = count($l) - 1;
@@ -2179,68 +2467,109 @@ class Language {
                }
        }
 
-       # Grammatical transformations, needed for inflected languages
-       # Invoked by putting {{grammar:case|word}} in a message
+       /**
+        * Grammatical transformations, needed for inflected languages
+        * Invoked by putting {{grammar:case|word}} in a message
+        *
+        * @param string $word
+        * @param string $case
+        * @return string
+        */
        function convertGrammar( $word, $case ) {
                return $word;
        }
 
-       # languages like Chinese need to be segmented in order for the diff
-       # to be of any use
+       /**
+        * languages like Chinese need to be segmented in order for the diff
+        * to be of any use
+        *
+        * @param string $text
+        * @return string
+        */
        function segmentForDiff( $text ) {
                return $text;
        }
-       # and unsegment to show the result
+       
+       /**
+        * and unsegment to show the result
+        *
+        * @param string $text
+        * @return string
+        */
        function unsegmentForDiff( $text ) {
                return $text;
        }
 
        # convert text to different variants of a language.
        function convert( $text , $isTitle=false) {
-               return $text;
+               return $this->mConverter->convert($text, $isTitle);
        }
 
-       # returns a list of language variants for conversion.
-       # right now mainly used in the Chinese conversion
+       /**
+        * get the list of variants supported by this langauge
+        * see sample implementation in LanguageZh.php
+        *
+        * @return array an array of language codes
+        */
        function getVariants() {
-               $lang = strtolower( substr( get_class( $this ), 8 ) );
-               return array( $lang );
-       }
-       
-       # in case some variant is not defined in the markup, we need
-       # to have some fallback. for example, in zh, normally people
-       # will define zh-cn and zh-tw, but less so for zh-sg or zh-hk.
-       # when zh-sg is preferred but not defined, we will pick zh-cn
-       # in this case. right now this is only used by zh.
-       function getVariantFallback( $v ) {
-               return false;
+               return $this->mConverter->getVariants();
        }
 
+
        function getPreferredVariant() {
-               return strtolower( substr( get_class( $this ), 8 ) );
+               return $this->mConverter->getPreferredVariant();
        }
 
-       /* if a language supports multiple variants, it is
-               possible that non-existing link in one variant
-               actually exists in another variant. this function 
-               tries to find it. See e.g. LanguageZh.php
-
-       */
+       /**
+        * if a language supports multiple variants, it is
+        * possible that non-existing link in one variant
+        * actually exists in another variant. this function 
+        * tries to find it. See e.g. LanguageZh.php
+        *
+        * @param string $link the name of the link
+        * @param mixed $nt the title object of the link
+        * @return null the input parameters may be modified upon return
+        */
        function findVariantLink( &$link, &$nt ) {
-               return;
+               $this->mConverter->findVariantLink($link, $nt);
        }
 
-       /*
-               returns an array of extra options used by User::getPageRenderHash()
-       */
+       /**
+        * returns language specific options used by User::getPageRenderHash()
+        * for example, the preferred language variant
+        *
+        * @return string
+        * @access public
+        */
        function getExtraHashOptions() {
-               return '';
+               return $this->mConverter->getExtraHashOptions();
+       }
+
+       /**
+        * for languages that support multiple variants, the title of an
+        * article may be displayed differently in different variants. this
+        * function returns the apporiate title defined in the body of the article.
+        * 
+        * @return string
+        */
+       function getParsedTitle() {
+               return $this->mConverter->getParsedTitle();
        }
        
+       /**
+        * Enclose a string with the "no conversion" tag. This is used by
+        * various functions in the Parser
+        * 
+        * @param string $text text to be tagged for no conversion
+        * @return string the tagged text
+       */
+       function markNoConversion( $text ) {
+               return $this->mConverter->markNoConversion( $text );
+       }
+
        /**
         * A regular expression to match legal word-trailing characters
         * which should be merged onto a link of the form [[foo]]bar.
-        * FIXME
         *
         * @return string
         * @access public
@@ -2255,6 +2584,7 @@ class Language {
                return $this;
        }
 
+
 }
 
 # This should fail gracefully if there's not a localization available