Merged my changes from REL1_4
[lhc/web/wiklou.git] / languages / Language.php
index a797f82..b31031e 100644 (file)
@@ -51,14 +51,36 @@ if(isset($wgExtraNamespaces)) {
 }
 
 /* private */ $wgDefaultUserOptionsEn = array(
-       'quickbar' => 1, 'underline' => 1, 'hover' => 1,
-       'cols' => 80, 'rows' => 25, 'searchlimit' => 20,
-       'contextlines' => 5, 'contextchars' => 50,
-       'skin' => $wgDefaultSkin, 'math' => 1, 'rcdays' => 7, 'rclimit' => 50,
-       'highlightbroken' => 1, 'stubthreshold' => 0,
-       'previewontop' => 1, 'editsection'=>1,'editsectiononrightclick'=>0, 'showtoc'=>1,
-       'showtoolbar' =>1,
-       'date' => 0, 'imagesize' => 2
+       'quickbar'              => 1,
+       'underline'             => 1,
+       'hover'                 => 1,
+       'cols'                  => 80,
+       'rows'                  => 25,
+       'searchlimit'           => 20,
+       'contextlines'          => 5,
+       'contextchars'          => 50,
+       'skin'                  => $wgDefaultSkin,
+       'math'                  => 1,
+       'rcdays'                => 7,
+       'rclimit'               => 50,
+       'highlightbroken'       => 1,
+       'stubthreshold'         => 0,
+       'previewontop'          => 1,
+       'editsection'           => 1,
+       'editsectiononrightclick'=> 0,
+       'showtoc'               => 1,
+       'showtoolbar'           => 1,
+       'date'                  => 0,
+       'imagesize'             => 2,
+       'rememberpassword'      => 0,
+       'enotifwatchlistpages'  => 1,
+       'enotifusertalkpages'   => 1,
+       'enotifminoredits'      => 0,
+       'enotifrevealaddr'      => 0,
+       'shownumberswatching'   => 1,
+       'rcusemodstyle'         => 1,
+       'showupdated'           => 1,
+       'fancysig' => 0,
 );
 
 /* private */ $wgQuickbarSettingsEn = array(
@@ -76,13 +98,6 @@ if(isset($wgExtraNamespaces)) {
        'chick' => 'Chick'
 );
 
-define( 'MW_MATH_PNG',    0 );
-define( 'MW_MATH_SIMPLE', 1 );
-define( 'MW_MATH_HTML',   2 );
-define( 'MW_MATH_SOURCE', 3 );
-define( 'MW_MATH_MODERN', 4 );
-define( 'MW_MATH_MATHML', 5 );
-
 # Validation types
 $wgValidationTypesEn = array (
        '0' => "Style|Awful|Awesome|5",
@@ -134,6 +149,14 @@ define( 'MW_DATE_USER_FORMAT', true );
        'previewontop',
        'previewonfirst',
        'nocache',
+       'enotifwatchlistpages',
+       'enotifusertalkpages',
+       'enotifminoredits',
+       'enotifrevealaddr',
+       'shownumberswatching',
+       'rcusemodstyle',
+       'showupdated',
+       'fancysig'
 );
 
 /* private */ $wgBookstoreListEn = array(
@@ -222,16 +245,6 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 # hyphen (-). If you need more characters, you may be able to change
 # the regex in MagicWord::initRegex
 
-# NOTE: To turn off "Current Events" in the sidebar,
-# set "currentevents" => ""
-
-# NOTE: To turn off "Disclaimers" in the title links,
-# set "disclaimers" => ""
-
-# NOTE: To turn off "Community portal" in the title links,
-# set "portal" => ""
-
-
 # required for copyrightwarning
 global $wgRightsText;
 
@@ -246,11 +259,11 @@ global $wgRightsText;
 '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-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-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',
@@ -258,6 +271,14 @@ global $wgRightsText;
 'tog-previewontop' => 'Show preview before edit box and not after it',
 '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)',
+'tog-enotifusertalkpages'      => 'Send me an email when my user talk page is changed (remark: existing notification flags need to be cleared manually in the watchlist)',
+'tog-enotifminoredits'                 => 'Send me an email also for minor edits of pages (which usually do not trigger notification mails)',
+'tog-enotifrevealaddr'                 => 'Reveal my email address in notification mails (when I change a page, it allows watching users to reply quickly to me)',
+'tog-shownumberswatching'      => 'Show the number of watching users (in recent changes view, watchlist and article page footers)',
+'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)',
 
 # dates
 'sunday' => 'Sunday',
@@ -304,23 +325,28 @@ global $wgRightsText;
 'mainpagetext' => 'Wiki software successfully installed.',
 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
 and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.",
+
+# NOTE: To turn off "Community portal" in the title links,
+# set "portal" => "-"
+
 'portal'               => 'Community portal',
-'portal-url'           => '{{ns:4}}:Community Portal',
+'portal-url'           => 'Project:Community Portal',
 'about'                        => 'About',
 "aboutsite"      => "About {{SITENAME}}",
-"aboutpage"            => "{{ns:4}}:About",
+"aboutpage"            => "Project:About",
 'article' => 'Content page',
 'help'                 => 'Help',
-"helppage"             => "{{ns:12}}:Contents",
+"helppage"             => "Help:Contents",
 "wikititlesuffix" => "{{SITENAME}}",
 "bugreports"   => "Bug reports",
-"bugreportspage" => "{{ns:4}}:Bug_reports",
-'sitesupport'   => 'Donations', # Set a URL in $wgSiteSupportPage in LocalSettings.php
+"bugreportspage" => "Project:Bug_reports",
+'sitesupport'   => '-', # To enable, something like 'Donations', 
+'sitesupport-url' => 'Project:Site support',
 'faq'                  => 'FAQ',
-"faqpage"              => "{{ns:4}}:FAQ",
+"faqpage"              => "Project:FAQ",
 "edithelp"             => "Editing help",
 "newwindow"            => "(opens in new window)",
-"edithelppage" => "{{ns:12}}:Editing",
+"edithelppage" => "Help:Editing",
 'cancel'               => 'Cancel',
 'qbfind'               => 'Find',
 'qbbrowse'             => 'Browse',
@@ -334,9 +360,18 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'mytalk'               => 'My talk',
 'anontalk'             => 'Talk for this IP',
 'navigation' => 'Navigation',
+
+# NOTE: To turn off "Current Events" in the sidebar,
+# set "currentevents" => "-"
+                                      
 'currentevents' => 'Current events',
+'currentevents-url' => 'Current events',
+
+# NOTE: To turn off "Disclaimers" in the title links,
+# set "disclaimers" => "-"
+
 'disclaimers' => 'Disclaimers',
-"disclaimerpage"               => "{{ns:4}}:General_disclaimer",
+"disclaimerpage" => "Project:General_disclaimer",
 "errorpagetitle" => "Error",
 "returnto"             => "Return to $1.",
 "tagline"              => "From {{SITENAME}}",
@@ -379,7 +414,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'poweredby'    => "{{SITENAME}} is powered by [http://www.mediawiki.org/ MediaWiki], an open source wiki engine.",
 'printsubtitle' => "(From {{SERVER}})",
 'protectedpage' => 'Protected page',
-'administrators' => "{{ns:4}}:Administrators",
+'administrators' => "Project:Administrators",
 'sysoptitle'   => 'Sysop access required',
 'sysoptext'            => "The action you have requested can only be
 performed by users with \"sysop\" status.
@@ -489,7 +524,7 @@ Query: $2
 'viewsource' => 'View source',
 'protectedtext' => "This page has been locked to prevent editing; there are
 a number of reasons why this may be so, please see
-[[{{ns:4}}:Protected page]].
+[[Project:Protected page]].
 
 You can view and copy the source of this page:",
 'seriousxhtmlerrors' => 'There were serious xhtml markup errors detected by tidy.',
@@ -497,11 +532,11 @@ You can view and copy the source of this page:",
 # Login and logout pages
 #
 "logouttitle"  => 'User logout',
-"logouttext" => "You are now logged out.
+"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
-your browser cache\n",
+your browser cache.\n",
 
 'welcomecreation' => "== Welcome, $1! ==
 
@@ -526,14 +561,18 @@ 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*',
+'youremail'            => 'Your email**',
 'yourrealname'         => 'Your real name*',
 'yourlanguage' => 'Interface language',
 'yourvariant'  => 'Language variant',
 '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 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-userdata' => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.<br/>
+'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.',
 'loginerror'   => 'Login error',
@@ -544,20 +583,41 @@ email address to them, and it can be used to send you a new password if you forg
 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".",
 'nosuchuser'   => "There is no user by the name \"$1\".
 Check your spelling, or use the form below to create a new user account.",
-'wrongpassword'        => 'The password you entered is incorrect. Please try again.',
-'mailmypassword' => 'Mail me a new password',
-'passwordremindertitle' => "Password reminder from {{SITENAME}}",
-'passwordremindertext' => "Someone (probably you, from IP address $1)
-requested that we send you a new {{SITENAME}} login password.
-The password for user \"$2\" is now \"$3\".
-You should log in and change your password now.",
+'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',
+'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}}.
+
+This mail is also be sent for the purpose of authentication of your email address.
+The password for user \"$2\" is now \"$4\".
+
+You can now log in with this temporary password, which is valid for only one login.
+You may wish to keep using your old password if you remember it or to set a new one.
+
+{{SERVER}}{{localurl:Special:Userlogin|wpName=$3&wpPassword=$4&returnto=Special:Preferences}}",
 'noemail'              => "There is no e-mail address recorded for user \"$1\".",
-'passwordsent' => "A new password has been sent to the e-mail address
+'passwordsent'         => "A temporary password has been sent to the e-mail address
 registered for \"$1\".
 Please log in again after you receive it.",
+'passwordsentforemailauthentication'
+                       =>  "A temporary password has been sent to the e-mail address newly
+registered for \"$1\".
+Please re-login with that for authentication purposes.",
 'loginend'             => '&nbsp;',
 '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>
+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>',
+'disablednoemail'      => '<strong>(disabled; no email address)</strong>',
 
 # Edit page toolbar
 'bold_sample'=>'Bold text',
@@ -588,7 +648,7 @@ Please log in again after you receive it.",
 #
 'summary'              => 'Summary',
 'subject'              => 'Subject/headline',
-'minoredit'            => 'This is a minor edit',
+'minoredit'            => 'This is a minor edit.',
 'watchthis'            => 'Watch this page',
 'savearticle'  => 'Save page',
 'preview'              => 'Preview',
@@ -596,7 +656,7 @@ Please log in again after you receive it.",
 '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
-[[{{ns:4}}:Administrators|administrators]] to discuss the block.
+[[Project:Administrators|administrators]] to discuss the block.
 
 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
 
@@ -616,7 +676,7 @@ Your IP address is $3. Please include this address in any queries you make.
 'newarticletext' =>
 "You've followed a link to a page that doesn't exist yet.
 To create the page, start typing in the box below
-(see the [[{{ns:4}}:Help|help page]] for more info).
+(see the [[Project: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.'' ",
@@ -631,8 +691,8 @@ If you are here by mistake, just click your browser's '''back''' button.",
 'previewconflict' => 'This preview reflects the text in the upper
 text editing area as it will appear if you choose to save.',
 'editing'              => "Editing $1",
-"sectionedit"  => " (section)",
-'commentedit'  => ' (comment)',
+'editingsection'               => "Editing $1 (section)",
+'editingcomment'               => "Editing $1 (comment)",
 'editconflict' => 'Edit conflict: $1',
 'explainconflict' => "Someone else has changed this page since you
 started editing it.
@@ -643,6 +703,7 @@ You will have to merge your changes into the existing text.
 press \"Save page\".\n<p>",
 'yourtext'             => 'Your text',
 'storedversion' => 'Stored version',
+'nonunicodebrowser' => "<strong>WARNING: Your browser is not unicode compliant, please change it before editing an article.</strong>",
 'editingold'   => "<strong>WARNING: You are editing an out-of-date
 revision of this page.
 If you save it, any changes made since this revision will be lost.</strong>\n",
@@ -668,7 +729,7 @@ so you will not be able to save your edits right now. You may wish to cut-n-past
 the text into a text file and save it for later.',
 'protectedpagewarning' => "WARNING:  This page has been locked so that only
 users with sysop privileges can edit it. Be sure you are following the
-<a href='$wgScript/{{ns:4}}:Protected_page_guidelines'>protected page
+<a href='$wgScript/Project:Protected_page_guidelines'>protected page
 guidelines</a>.",
 'templatesused'        => 'Templates used on this page:',
 
@@ -682,13 +743,15 @@ Please check the URL you used to access this page.\n",
 'loadhist'             => 'Loading page history',
 'currentrev'   => 'Current revision',
 'revisionasof'          => 'Revision as of $1',
-'revisionasofwithlink'  => '(Revision as of $1; $2)',
+'revisionasofwithlink'  => 'Revision as of $1; $2<br />$3 | $4',
+'previousrevision'     => '&larr;Older revision',
+'nextrevision'         => 'Newer revision&rarr;',
 'currentrevisionlink'   => 'view current revision',
 'cur'                  => 'cur',
 'next'                 => 'next',
 'last'                 => 'last',
 'orig'                 => 'orig',
-'histlegend'   => 'Diff selection: mark the radio boxes of the versions to compare and hit enter or the button at the bottom.<br/>
+'histlegend'   => 'Diff selection: mark the radio boxes of the versions to compare and hit enter or the button at the bottom.<br />
 Legend: (cur) = difference with current version,
 (last) = difference with preceding version, M = minor edit.',
 'history_copyright'    => '-',
@@ -736,7 +799,8 @@ containing all of the search terms will appear in the result).",
 Search in namespaces :<br />
 $1<br />
 $2 List redirects &nbsp; Search for $3 $9",
-"searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>",
+"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\">
@@ -767,7 +831,7 @@ to set user preferences.",
 'prefslogintext' => "You are logged in as \"$1\".
 Your internal ID number is $2.
 
-See [[{{ns:4}}:User preferences help]] for help deciphering the options.",
+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.',
@@ -811,11 +875,40 @@ from server time (UTC).',
 'guesstimezone' => 'Fill in from browser',
 'emailflag'            => 'Disable e-mail from other users',
 'defaultns'            => 'Search in these namespaces by default:',
+'default'              => 'default',
+
+# User levels special page
+#
 
+# switching pan
+'userlevels-lookup-group' => 'Manage group rights',
+'userlevels-group-edit' => 'Existent groups: ',
+'editgroup' => 'Edit Group',
+'addgroup' => 'Add Group',
+
+'userlevels-lookup-user' => 'Manage user groups',
+'userlevels-user-editname' => 'Enter a username: ',
+'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 />',
+'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',
 # Recent changes
 #
 'changes' => 'changes',
 'recentchanges' => 'Recent changes',
+'recentchanges-url' => 'Special:Recentchanges',
 'recentchangestext' => 'Track the most recent changes to the wiki on this page.',
 'rcloaderr'            => 'Loading recent changes',
 'rcnote'               => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
@@ -835,6 +928,8 @@ from server time (UTC).',
 'minoreditletter' => 'm',
 'newpageletter' => 'N',
 'sectionlink' => '&rarr;',
+'number_of_watching_users_RCview'      => '[$1]',
+'number_of_watching_users_pageview'    => '[$1 watching user/s]',
 
 # Upload
 #
@@ -889,7 +984,7 @@ you may be blocked from uploading if you abuse the system.",
 'filesource' => 'Source',
 'affirmation'  => "I affirm that the copyright holder of this file
 agrees to license it under the terms of the $1.",
-'copyrightpage' => "{{ns:4}}:Copyrights",
+'copyrightpage' => "Project:Copyrights",
 'copyrightpagename' => "{{SITENAME}} copyright",
 'uploadedfiles'        => 'Uploaded files',
 'noaffirmation' => 'You must affirm that your upload does not violate any copyrights.',
@@ -902,7 +997,7 @@ agrees to license it under the terms of the $1.",
 '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 uploaded successfully.
+'fileuploaded' => "File $1 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. If this is an image, you can insert it like this: <tt><nowiki>[[Image:$1|thumb|Description]]</nowiki></tt>",
@@ -910,6 +1005,7 @@ created and by whom, and anything else you may know about it. If this is an imag
 'savefile'             => 'Save file',
 '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.',
 
 # Image list
 #
@@ -936,6 +1032,8 @@ this old version, (rev) = revert to this old version.
 'imagelinks'   => 'Image links',
 'linkstoimage' => 'The following pages link to this image:',
 '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.',
 
 # Statistics
 #
@@ -960,7 +1058,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'maintnancepagetext'   => 'This page includes several handy tools for everyday maintenance. Some of these functions tend to stress the database, so please do not hit reload after every item you fixed ;-)',
 'maintenancebacklink'  => 'Back to Maintenance Page',
 'disambiguations'      => 'Disambiguation pages',
-'disambiguationspage'  => "{{ns:4}}:Links_to_disambiguating_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.",
 '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.",
@@ -983,6 +1081,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'validate'             => 'Validate page',
 'lonelypages'  => 'Orphaned pages',
 'uncategorizedpages'   => 'Uncategorized pages',
+'uncategorizedcategories'      => 'Uncategorized categories',
 'unusedimages' => 'Unused images',
 'popularpages' => 'Popular pages',
 'nviews'               => '$1 views',
@@ -990,6 +1089,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'nlinks'               => '$1 links',
 'allpages'             => 'All pages',
 'randompage'   => 'Random page',
+'randompage-url'=> 'Special:Randompage',
 'shortpages'   => 'Short pages',
 'longpages'            => 'Long pages',
 'deadendpages'  => 'Dead-end pages',
@@ -997,8 +1097,17 @@ 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',
+'asksqlpheading' => 'asksql level',
+'blockpheading' => 'block level',
+'createaccountpheading' => 'createaccount level',
+'deletepheading' => 'delete level',
+'userrightspheading' => 'userrights level',
+'siteadminpheading' => 'siteadmin level',
+
+/** obsoletes
 'sysopspheading' => 'For sysop use only',
 'developerspheading' => 'For developer use only',
+*/
 'protectpage'  => 'Protect page',
 'recentchangeslinked' => 'Related changes',
 'rclsub'               => "(to pages linked from \"$1\")",
@@ -1012,6 +1121,10 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 a direct URL, and so may still be listed here despite being
 in active use.',
 'booksources'  => 'Book sources',
+'categoriespagetext' => 'The following categories exists in the wiki.',
+'data' => 'Data',
+'userlevels' => 'User levels 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
 sell new and used books, and may also have further information
@@ -1019,7 +1132,8 @@ about books you are looking for.
 {{SITENAME}} is not affiliated with any of these businesses, and
 this list should not be construed as an endorsement.",
 'isbn' => 'ISBN',
-'rfcurl' =>  "http://www.faqs.org/rfcs/rfc$1.html",
+'rfcurl' =>  'http://www.faqs.org/rfcs/rfc$1.html',
+'pubmedurl' =>  'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=$1',
 'alphaindexline' => "$1 to $2",
 'version'              => 'Version',
 'log'          => 'Logs',
@@ -1029,7 +1143,8 @@ 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)',
-'allpagesformtext'  => 'Display pages starting at: $1 Choose namespace: $2 $3',
+'allpagesformtext1' => 'Display pages starting at: $1',
+'allpagesformtext2' => 'Choose namespace: $1 $2',
 'allarticles'       => 'All articles',
 'allpagesprev'      => 'Previous',
 'allpagesnext'      => 'Next',
@@ -1071,7 +1186,7 @@ or has chosen not to receive e-mail from other users.',
 'watchnologintext'     => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
 to modify your watchlist.",
 'addedwatch'           => 'Added to watchlist',
-'addedwatchtext'       => "The page \"$1\" has been added to your [[{{ns:-1}}:Watchlist|watchlist]].
+'addedwatchtext'       => "The page \"$1\" has been added to your [[Special:Watchlist|watchlist]].
 Future changes to this page and its associated Talk page will be listed there,
 and the page will appear '''bolded''' in the [[Special:Recentchanges|list of recent changes]] to
 make it easier to pick out.
@@ -1094,9 +1209,8 @@ $3...
 'removechecked'        => 'Remove checked items from watchlist',
 'watchlistcontains' => "Your watchlist contains $1 pages.",
 'watcheditlist'                => 'Here\'s an alphabetical list of your
-watched pages. Check the boxes of pages you want to remove
-from your watchlist and click the \'remove checked\' button
-at the bottom of the screen.',
+watched content pages. Check the boxes of pages you want to remove from your watchlist and click the \'remove checked\' button
+at the bottom of the screen (deleting a content page also deletes the accompanying talk page and vice versa).',
 'removingchecked'      => 'Removing requested items from watchlist...',
 'couldntremove'        => "Couldn't remove item '$1'...",
 'iteminvalidname'      => "Problem with item '$1', invalid name...",
@@ -1104,6 +1218,48 @@ at the bottom of the screen.',
 'wlshowlast'           => "Show last $1 hours $2 days $3",
 'wlsaved'                      => 'This is a saved version of your watchlist.',
 
+'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_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_lastvisitedrevisiontext' => 'See {{SERVER}}{{localurl:$PAGETITLE_RAWURL|diff=0&oldid=$OLDID}} for all changes since your last visit.',
+'email_notification_body' => 'Dear $WATCHINGUSERNAME,
+
+the {{SITENAME}} page $PAGETITLE has been changed on $PAGEEDITDATE by $PAGEEDITOR,
+see {{SERVER}}{{localurl:$PAGETITLE_RAWURL}} for the current version.
+
+$NEWPAGE
+
+Editor\'s summary: $PAGESUMMARY $PAGEMINOREDIT
+Contact the editor:
+mail {{SERVER}}{{localurl:Special:Emailuser|target=$PAGEEDITOR_RAWURL}}
+wiki {{SERVER}}{{localurl:User:$PAGEEDITOR_RAWURL}}
+
+There will be no other notifications in case of further changes unless you visit this page.
+You could also reset the notification flags for all your watched pages on your watchlist.
+
+             Your friendly {{SITENAME}} notification system
+
+--
+To change your watchlist settings, visit
+{{SERVER}}{{localurl:Special:Watchlist|magic=yes}}
+
+Feedback and further assistance:
+{{SERVER}}{{localurl:WikiHelpdesk}}',
 
 # Delete/protect/revert
 #
@@ -1119,7 +1275,7 @@ at the bottom of the screen.',
 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
-[[{{ns:4}}:Policy]].",
+[[Project:Policy]].",
 'confirmcheck' => 'Yes, I really want to delete this.',
 'actioncomplete' => 'Action complete',
 'deletedtext'  => "\"$1\" has been deleted.
@@ -1145,12 +1301,13 @@ Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 'revertpage'   => "Reverted edit of $2, changed back to last version by $1",
 'protectlogpage' => 'Protection_log',
 'protectlogtext' => "Below is a list of page locks/unlocks.
-See [[{{ns:4}}:Protected page]] for more information.",
-'protectedarticle' => "protected [[$1]]",
-'unprotectedarticle' => "unprotected [[$1]]",
+See [[Project:Protected page]] for more information.",
+'protectedarticle' => "protected $1",
+'unprotectedarticle' => "unprotected $1",
 'protectsub' =>"(Protecting \"$1\")",
 'confirmprotecttext' => 'Do you really want to protect this page?',
 'confirmprotect' => 'Confirm protection',
+'protectmoveonly' => 'Protect from moves only',
 'protectcomment' => 'Reason for protecting',
 'unprotectsub' =>"(Unprotecting \"$1\")",
 'confirmunprotecttext' => 'Do you really want to unprotect this page?',
@@ -1172,8 +1329,9 @@ will not be automatically replaced.',
 'undeleterevision' => "Deleted revision as of $1",
 'undeletebtn' => 'Restore!',
 'undeletedarticle' => "restored \"$1\"",
+'undeletedrevisions' => "$1 revisions restored",
 'undeletedtext'   => "[[$1]] has been successfully restored.
-See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations.",
+See [[Special:Log/delete]] for a record of recent deletions and restorations.",
 
 # Contributions
 #
@@ -1203,7 +1361,7 @@ to perform this function on.',
 'blockiptext'  => "Use the form below to block write access
 from a specific IP address or username.
 This should be done only only to prevent vandalism, and in
-accordance with [[{{ns:4}}:Policy|policy]].
+accordance with [[Project:Policy|policy]].
 Fill in a specific reason below (for example, citing particular
 pages that were vandalized).",
 'ipaddress'            => 'IP Address/username',
@@ -1229,7 +1387,7 @@ to a previously blocked IP address or username.',
 'blocklogpage' => 'Block_log',
 '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 be listed. See the [[Special:Ipblocklist|IP block list]] for
+blocked IP addresses are not listed. See the [[Special:Ipblocklist|IP block list]] for
 the list of currently operational bans and blocks.',
 'unblocklogentry'      => 'unblocked "$1"',
 'range_block_disabled' => 'The sysop ability to create range blocks is disabled.',
@@ -1287,6 +1445,7 @@ Type the name of the user in the box and press the button to make the user an ad
 'makesysopfail'                => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
 'setbureaucratflag' => 'Set bureaucrat flag',
 'bureaucratlog'                => 'Bureaucrat_log',
+'rightslogtext'                => 'This is a log of changes to user rights.',
 'bureaucratlogentry'   => "Rights for user \"$1\" set \"$2\"",
 'rights'                       => 'Rights:',
 'set_user_rights'      => 'Set user rights',
@@ -1305,8 +1464,8 @@ 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_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',
@@ -1392,11 +1551,14 @@ article [[Train]].
 
 'allmessages'  => 'All system messages',
 '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.',
 
 # Thumbnails
 
 'thumbnail-more'       => 'Enlarge',
 'missingimage'         => "<b>Missing image</b><br /><i>$1</i>\n",
+'filemissing'          => 'File missing',
 
 # Special:Import
 'import'       => 'Import pages',
@@ -1448,10 +1610,11 @@ article [[Train]].
 'spamprotectiontext' => 'The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site.',
 'spamprotectionmatch' => 'The following text is what triggered our spam filter: $1',
 'subcategorycount' => "There are $1 subcategories to this category.",
-'subcategorycount1' => "There is $1 subcategorie to this category.",
+'subcategorycount1' => "There is $1 subcategory 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.",
+'listingcontinuesabbrev' => " cont.",
 
 # Info page
 "infosubtitle" => "Information for page",
@@ -1513,7 +1676,7 @@ 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[\'t-recentchangeslinked\'] = new Array(\'k\',\'Recent changes in pages linked from 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\');
@@ -1543,7 +1706,50 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
 'showbigimage' => 'Download high resolution version ($1x$2, $3 KB)',
 
 'newimages' => 'New images gallery',
-
+'noimages'  => 'Nothing to see.',
+
+'sitesettings'                  => 'Site Settings',
+'sitesettings-features'         => 'Features',
+'sitesettings-permissions'      => 'Permissions',
+'sitesettings-memcached'        => 'Memcache Daemon',
+'sitesettings-debugging'        => 'Debugging',
+'sitesettings-caching'          => 'Page caching',
+'sitesettings-wgShowIPinHeader' => 'Show IP in header (for non-logged in users)',
+'sitesettings-wgUseDatabaseMessages' => 'Use database messages for user interface labels',
+'sitesettings-wgUseCategoryMagic' => 'Enable categories',
+'sitesettings-wgUseCategoryBrowser' => 'Enable experimental dmoz-like category browsing. Outputs things like:  Encyclopedia > Music > Style of Music > Jazz',
+'sitesettings-wgHitcounterUpdateFreq' => 'Hit counter update frequency',
+'sitesettings-wgAllowExternalImages' => 'Allow to include external images into articles',
+'sitesettings-permissions-readonly' => 'Maintenance mode: Disable write access',
+'sitesettings-permissions-whitelist' => 'Whitelist mode',
+'sitesettings-permissions-banning' => 'User banning',
+'sitesettings-permissions-miser' => 'Performance settings',
+'sitesettings-wgReadOnly' => 'Readonly mode',
+'sitesettings-wgReadOnlyFile' => 'Readonly message file',
+'sitesettings-wgWhitelistEdit' => 'Users must be logged in to edit',
+'sitesettings-wgWhitelistRead' => 'Anonymous users may only read these pages:',
+'sitesettings-wgWhitelistAccount-user' => 'Users may create accounts themself',
+'sitesettings-wgWhitelistAccount-sysop' => 'Sysops may create accounts for users',
+'sitesettings-wgWhitelistAccount-developer' => 'Developers may create accounts for users',
+'sitesettings-wgSysopUserBans' => 'Sysops may block logged-in users',
+'sitesettings-wgSysopRangeBans' => 'Sysops may block IP-ranges',
+'sitesettings-wgDefaultBlockExpiry' => 'By default, blocks expire after:',
+'sitesettings-wgMiserMode' => 'Enable miser mode, which disables most "expensive" features',
+'sitesettings-wgDisableQueryPages' => 'When in miser mode, disable all query pages, not only "expensive" ones',
+'sitesettings-wgUseWatchlistCache' => 'Generate a watchlist once every hour or so',
+'sitesettings-wgWLCacheTimeout' => 'The hour or so mentioned above (in seconds):',
+'sitesettings-cookies' => 'Cookies',
+'sitesettings-performance' => 'Performance',
+'sitesettings-images' => 'Images',
+
+# short names for language variants used for language conversion links. 
+# to disable showing a particular link, set it to 'disable', e.g.
+# 'variantname-zh-sg' => 'disable',
+'variantname-zh-cn' => 'cn',
+'variantname-zh-tw' => 'tw',
+'variantname-zh-hk' => 'hk',
+'variantname-zh-sg' => 'sg',
+'variantname-zh' => 'zh',
 
 );
 
@@ -1600,8 +1806,14 @@ class Language {
                return false;
        }
 
+       # short names for language variants used for language conversion links. 
+       # so far only used by zh
+       function getVariantname( $code ) {
+               return wfMsg( 'variantname-' . $code );
+       }
+
        function specialPage( $name ) {
-               return $this->getNsText( Namespace::getSpecial() ) . ':' . $name;
+               return $this->getNsText(NS_SPECIAL) . ':' . $name;
        }
 
        function getQuickbarSettings() {
@@ -1635,7 +1847,6 @@ class Language {
        }
 
        function getUserToggle( $tog ) {
-               $togs =& $this->getUserToggles();
                return wfMsg("tog-".$tog);
        }
 
@@ -1652,35 +1863,45 @@ class Language {
                return $wgLanguageNamesEn[$code];
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesEn;
-               return wfMsg($wgMonthNamesEn[$key-1]);
+       function getMonthName( $key ) {
+               global $wgMonthNamesEn, $wgContLang;
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
+                       return wfMsgForContent($wgMonthNamesEn[$key-1]);
+               else
+                       return wfMsg($wgMonthNamesEn[$key-1]);
        }
 
        /* by default we just return base form */
-       function getMonthNameGen( $key )
-       {
+       function getMonthNameGen( $key ) {
                return $this->getMonthName( $key );
        }
 
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsEn;
-               return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
+       function getMonthAbbreviation( $key ) {
+               global $wgMonthAbbreviationsEn, $wgContLang;
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
+                       return wfMsgForContent(@$wgMonthAbbreviationsEn[$key-1]);
+               else
+                       return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
        }
 
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesEn;
-               return wfMsg($wgWeekdayNamesEn[$key-1]);
+       function getWeekdayName( $key ) {
+               global $wgWeekdayNamesEn, $wgContLang;
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
+                       return wfMsgForContent($wgWeekdayNamesEn[$key-1]);
+               else
+                       return wfMsg($wgWeekdayNamesEn[$key-1]);
        }
 
-       function userAdjust( $ts )
-       {
+       function userAdjust( $ts, $tz = false ) {
                global $wgUser, $wgLocalTZoffset;
 
+               if (!$tz) {
                $tz = $wgUser->getOption( 'timecorrection' );
+               }
+
                if ( $tz === '' ) {
                        $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
                        $minDiff = 0;
@@ -1703,12 +1924,13 @@ class Language {
                return date( 'YmdHis', $t );
        }
 
-       function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
-       {
+       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 ); }
+
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
+
                if ( $wgUseDynamicDates ) {
                        if ( $format == MW_DATE_USER_FORMAT ) {
                                $datePreference = $wgUser->getOption( 'date' );
@@ -1734,11 +1956,10 @@ class Language {
                }
        }
 
-       function time( $ts, $adj = false, $seconds = false )
-       {
+       function time( $ts, $adj = false, $seconds = false, $timecorrection = false ) {
                $ts=wfTimestamp(TS_MW,$ts);
 
-               if ( $adj ) { $ts = $this->userAdjust( $ts ); }
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
                $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
                if ( $seconds ) {
@@ -1747,44 +1968,41 @@ class Language {
                return $this->formatNum( $t );
        }
 
-       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
-       {
+       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false, $dateandtime = false) {
                $ts=wfTimestamp(TS_MW,$ts);
-
-               return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
+               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 );
+               }
+               return $ret;
        }
 
-       function rfc1123( $ts )
-       {
+       function rfc1123( $ts ) {
                return date( 'D, d M Y H:i:s T', $ts );
        }
 
-       function getValidSpecialPages()
-       {
+       function getValidSpecialPages() {
                global $wgValidSpecialPagesEn;
                return $wgValidSpecialPagesEn;
        }
 
-       function getSysopSpecialPages()
-       {
+       function getSysopSpecialPages() {
                global $wgSysopSpecialPagesEn;
                return $wgSysopSpecialPagesEn;
        }
 
-       function getDeveloperSpecialPages()
-       {
+       function getDeveloperSpecialPages() {
                global $wgDeveloperSpecialPagesEn;
                return $wgDeveloperSpecialPagesEn;
        }
 
-       function getMessage( $key )
-       {
+       function getMessage( $key ) {
                global $wgAllMessagesEn;
                return @$wgAllMessagesEn[$key];
        }
 
-       function getAllMessages()
-       {
+       function getAllMessages() {
                global $wgAllMessagesEn;
                return $wgAllMessagesEn;
        }
@@ -1830,6 +2048,12 @@ class Language {
                return strtolower( $in );
        }
 
+       function convertForSearchResult( $termsArray ) {
+               # some languages, e.g. Chinese, need to do a conversion
+               # in order for search results to be displayed correctly
+               return $termsArray;
+       }       
+
        function firstChar( $s ) {
                # Get the first character of a string. In ASCII, return
                # first byte of the string. UTF8 and others have to
@@ -1883,15 +2107,13 @@ class Language {
        function linkPrefixExtension() { return false; }
 
 
-       function &getMagicWords()
-       {
+       function &getMagicWords() {
                global $wgMagicWordsEn;
                return $wgMagicWordsEn;
        }
 
        # Fill a MagicWord object with data from here
-       function getMagic( &$mw )
-       {
+       function getMagic( &$mw ) {
                $raw =& $this->getMagicWords();
                if( !isset( $raw[$mw->mId] ) ) {
                        # Fall back to English if local list is incomplete
@@ -1903,8 +2125,7 @@ class Language {
        }
 
        # Italic is unsuitable for some languages
-       function emphasize( $text )
-       {
+       function emphasize( $text ) {
                return '<em>'.$text.'</em>';
        }
 
@@ -1960,89 +2181,82 @@ class Language {
                return $word;
        }
 
-    
-    # convert text to different variants of a language. the automatic
-    # conversion is done in autoConvert(). here we parse the text 
-    # marked with -{}-, which specifies special conversions of the 
-    # text that can not be accomplished in autoConvert()
-    #
-    # syntax of the markup:
-    # -{code1:text1;code2:text2;...}-  or
-    # -{text}- in which case no conversion should take place for text
-       function convert( $text ) {
-
-        if(sizeof($this->getVariants())<2) 
-            return $text;
-
-               // no conversion if redirecting
-               if(substr($text,0,9) == "#REDIRECT") {
-                       return $text;
-               }
+       # languages like Chinese need to be segmented in order for the diff
+       # to be of any use
+       function segmentForDiff( $text ) {
+               return $text;
+       }
+       # and unsegment to show the result
+       function unsegmentForDiff( $text ) {
+               return $text;
+       }
+
+       # convert text to different variants of a language.
+       function convert( $text , $isTitle=false) {
+               return $text;
+       }
 
+       # returns a list of language variants for conversion.
+       # right now mainly used in the Chinese conversion
+       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;
+       }
+
+       function getPreferredVariant() {
+               return strtolower( substr( get_class( $this ), 8 ) );
+       }
+
+       /* 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
+
+       */
+       function findVariantLink( &$link, &$nt ) {
+               return;
+       }
+
+       /*
+               returns an array of extra options used by User::getPageRenderHash()
+       */
+       function getExtraHashOptions() {
+               return '';
+       }
+       
+       /**
+        * 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
+        */
+       function linkTrail() {
+               $trail = $this->getMessage( 'linktrail' );
+               if( empty( $trail ) ) $trail = Language::linkTrail();
+               return $trail;
+       }
 
-        $plang = $this->getPreferredVariant();
-
-        $tarray = explode("-{", $text);
-        $tfirst = array_shift($tarray);
-        $text = $this->autoConvert($tfirst);
-
-        foreach($tarray as $txt) {
-            $marked = explode("}-", $txt);
-
-            $choice = explode(";", $marked{0});
-            if($choice{1}==NULL) {
-                $text .= $choice{0};
-            }
-            else {
-                foreach($choice as $c) {
-                    list($code, $content) = split(":", $c);
-                    $code = trim($code);
-                    $content = trim($content);
-                    if($code == $plang) {
-                        $text .= $content;
-                        break;
-                    }
-                }
-            }
-            $text .= $this->autoConvert($marked{1});
-        }
-
-        return $text;
+       function getLangObj() {
+               return $this;
        }
 
-    function autoConvert($text) {
-        return $text;
-    }
-
-    # see if we have a list of language variants for conversion.
-    # right now mainly used in the Chinese conversion
-    function getVariants() {
-        return array();
-    }
-
-
-    function getPreferredVariant() {
-        global $wgUser;
-        
-        // if user logged in, get in from user's preference
-        if($wgUser->getID()!=0)
-            return $wgUser->getOption('variant');
-
-        // if we have multiple variants for this langauge, 
-        // pick the first one as default
-        $v=$this->getVariants() ;
-        if(!empty($v))
-            return $v{0};
-
-        // otherwise there should really be just one variant, 
-        // get it from the class name
-        $lang = strtolower(substr(get_class($this), 8));
-        return $lang;
-    }
 }
 
 # This should fail gracefully if there's not a localization available
-@include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' );
+wfSuppressWarnings();
+include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' );
+wfRestoreWarnings();
 
 }
 ?>