Russian translation update to Language.php 1.772
[lhc/web/wiklou.git] / languages / Language.php
index 743b744..998485f 100644 (file)
@@ -265,9 +265,6 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 # hyphen (-). If you need more characters, you may be able to change
 # the regex in MagicWord::initRegex
 
-# required for copyrightwarning
-global $wgRightsText;
-
 /* private */ $wgAllMessagesEn = array(
 /*
 The sidebar for MonoBook is generated from this message, lines that do not
@@ -289,8 +286,7 @@ parent class in order maintain consistency across languages.
 ** recentchanges-url|recentchanges
 ** randompage-url|randompage
 ** helppage|help
-** sitesupport-url|sitesupport
-',
+** sitesupport-url|sitesupport',
 
 # User preference toggles
 'tog-underline' => 'Underline links:',
@@ -493,10 +489,11 @@ See $1.',
 'ok'                   => 'OK',
 'sitetitle'            => '{{SITENAME}}',
 'pagetitle'            => '$1 - {{SITENAME}}',
-'sitesubtitle' => 'The Free Encyclopedia', # FIXME
+'sitesubtitle' => '',
 'retrievedfrom' => 'Retrieved from "$1"',
-'newmessages' => 'You have $1.',
+'youhavenewmessages' => 'You have $1 ($2).',
 'newmessageslink' => 'new messages',
+'newmessagesdifflink' => 'diff to penultimate revision',
 'editsection'=>'edit',
 'toc' => 'Contents',
 'showtoc' => 'show',
@@ -542,7 +539,7 @@ MySQL returned error "<tt>$3: $4</tt>".',
 The last attempted database query was:
 "$1"
 from within function "$2".
-MySQL returned error "$3: $4"'."\n",
+MySQL returned error "$3: $4"',
 'noconnect'            => 'Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server. <br />
 $1',
 'nodb'                 => 'Could not select database $1',
@@ -572,7 +569,7 @@ Please report this to an administrator, making note of the URL.',
 'badarticleerror' => 'This action cannot be performed on this page.',
 'cannotdelete' => 'Could not delete the page or file specified. (It may have already been deleted by someone else.)',
 'badtitle'             => 'Bad title',
-'badtitletext' => 'The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title.',
+'badtitletext' => 'The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one more characters which cannot be used in titles.',
 'perfdisabled' => 'Sorry! This feature has been temporarily disabled because it slows the database down to the point that no one can use the wiki.',
 'perfdisabledsub' => 'Here is a saved copy from $1:', # obsolete?
 'perfcached' => 'The following data is cached and may not be completely up to date:',
@@ -590,11 +587,11 @@ You can view and copy the source of this page:',
 # Login and logout pages
 #
 'logouttitle'  => 'User logout',
-'logouttext'           => "<strong>You are now logged out.</strong><br />
+'logouttext'   => '<strong>You are now logged out.</strong><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.',
 
 'welcomecreation' => "== Welcome, $1! ==
 
@@ -609,7 +606,7 @@ Your account has been created. Don't forget to change your {{SITENAME}} preferen
 'yourdomainname'       => 'Your domain',
 'externaldberror'      => 'There was either an external authentication database error or you are not allowed to update your external account.',
 'loginproblem' => '<b>There has been a problem with your login.</b><br />Try again!',
-'alreadyloggedin' => "<strong>User $1, you are already logged in!</strong><br />\n",
+'alreadyloggedin' => "<strong>User $1, you are already logged in!</strong><br />",
 
 'login'                        => 'Log in',
 'loginprompt'  => 'You must have cookies enabled to log in to {{SITENAME}}.',
@@ -633,6 +630,7 @@ Your account has been created. Don't forget to change your {{SITENAME}} preferen
 'yourvariant'  => 'Variant',
 'yournick'             => 'Nickname:',
 'badsig'               => 'Invalid raw signature; check HTML tags.',
+'badsig2'              => 'Your signature contains one or more reserved expressions; please remove them.',
 'email'                        => 'E-mail',
 'emailforlost' => '<div style="width:30em">* Optional. An e-mail lets others contact you on this site without revealing your address, and lets us send you a new password if you forget it.<br /><br />Your real name will be used to give you attribution for your work.</div>',
 'prefs-help-email-enotif' => 'This address is also used to send you e-mail notifications if you enabled the options.',
@@ -716,8 +714,7 @@ The reason given is this:<br />\'\'$2\'\'<p>You may contact $1 or one of the oth
 
 Note that you may not use the "e-mail this user" feature unless you have a valid e-mail address registered in your [[Special:Preferences|user preferences]].
 
-Your IP address is $3. Please include this address in any queries you make.
-',
+Your IP address is $3. Please include this address in any queries you make.',
 'whitelistedittitle' => 'Login required to edit',
 'whitelistedittext' => 'You have to [[Special:Userlogin|login]] to edit pages.',
 'whitelistreadtitle' => 'Login required to read',
@@ -785,6 +782,9 @@ the text into a text file and save it for later.</strong>',
 'protectedpagewarning' => "<strong>WARNING:  This page has been locked so that only users with sysop privileges can edit it. Be sure you are following the [[Project:Protected_page_guidelines|protected page guidelines]].</strong>",
 'templatesused'        => 'Templates used on this page:',
 'edittools' => '<!-- Text here will be shown below edit and upload forms. -->',
+'nocreatetitle' => 'Page creation limited',
+'nocreatetext' => 'This site has restricted the ability to create new pages.
+You can go back and edit an existing page, or [[Special:Userlogin|log in or create an account]].',
 
 # History pages
 #
@@ -792,7 +792,7 @@ the text into a text file and save it for later.</strong>',
 'nohistory'            => 'There is no edit history for this page.',
 'revnotfound'  => 'Revision not found',
 'revnotfoundtext' => "The old revision of the page you asked for could not be found.
-Please check the URL you used to access this page.\n",
+Please check the URL you used to access this page.",
 'loadhist'             => 'Loading page history',
 'currentrev'   => 'Current revision',
 'revisionasof'          => 'Revision as of $1',
@@ -1068,6 +1068,7 @@ created and by whom, and anything else you may know about it. If this is an imag
 #
 'imagelist'            => 'File list',
 'imagelisttext'        => "Below is a list of $1 files sorted $2.",
+'imagelistforuser' => "This shows only images uploaded by $1.",
 'getimagelist' => 'fetching file list',
 'ilsubmit'             => 'Search',
 'showlast'             => "Show last $1 files sorted $2.",
@@ -1105,6 +1106,9 @@ this old version, (rev) = revert to this old version.
 #
 'unwatchedpages' => 'Unwatched pages',
 
+# List redirects
+'listredirects' => 'List redirects',
+
 # Statistics
 #
 'statistics'   => 'Statistics',
@@ -1133,10 +1137,10 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'doubleredirects'      => 'Double redirects',
 'doubleredirectstext'  => "Each 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.",
 'doubleredirectsarrow' => '→',
-'brokenredirects'      => 'Broken Redirects',
-'brokenredirectstext'  => 'The following redirects link to a non-existing pages.',
-'selflinks'            => 'Pages with Self Links',
-'selflinkstext'                    => 'The following pages contain a link to themselves, which they should not.',
+'brokenredirects'      => 'Broken redirects',
+'brokenredirectstext'  => 'The following redirects link to non-existent pages:',
+'selflinks'            => 'Self-linking pages',
+'selflinkstext'                    => 'The following pages link to themselves:',
 'mispeelings'           => 'Pages with misspellings',
 'mispeelingstext'               => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
 'mispeelingspage'       => 'List of common misspellings',
@@ -1148,7 +1152,6 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 # Miscellaneous special pages
 #
 'orphans'              => 'Orphaned pages',
-'validate'             => 'Validate page',
 'lonelypages'  => 'Orphaned pages',
 'uncategorizedpages'   => 'Uncategorized pages',
 'uncategorizedcategories'      => 'Uncategorized categories',
@@ -1206,6 +1209,8 @@ about books you are looking for.",
 'log'          => 'Logs',
 'alllogstext'  => 'Combined display of upload, deletion, protection, blocking, and sysop logs.
 You can narrow down the view by selecting a log type, the user name, or the affected page.',
+'logempty' => 'No matching items in log.',
+
 
 # Special:Allpages
 'nextpage'          => 'Next page ($1)',
@@ -1374,6 +1379,15 @@ See [[Project:Protected page]] for more information.",
 'confirmunprotecttext' => 'Do you really want to unprotect this page?',
 'confirmunprotect' => 'Confirm unprotection',
 'unprotectcomment' => 'Reason for unprotecting',
+'protect-unchain' => 'Unlock move permissions',
+'protect-text' => 'You may view and change the protection level here for the page [[$1]].
+Please be sure you are following the [[Project:Protected page|project guidelines]].',
+'protect-viewtext' => 'Your account does not have permission to change
+page protection levels. Here are the current settings for the page [[$1]]:',
+'protect-default' => '(default)',
+'protect-level-autoconfirmed' => 'Block unregistered users',
+'protect-level-sysop' => 'Sysops only',
+
 
 # Undelete
 'undelete' => 'View deleted pages',
@@ -1423,6 +1437,7 @@ to perform this function on.',
 'linkshere'            => 'The following pages link to here:',
 'nolinkshere'  => 'No pages link to here.',
 'isredirect'   => 'redirect page',
+'istemplate'   => 'inclusion',
 
 # Block/unblock IP
 #
@@ -1467,10 +1482,10 @@ the list of currently operational bans and blocks.',
 'unblocklogentry'      => 'unblocked $1',
 'range_block_disabled' => 'The sysop ability to create range blocks is disabled.',
 'ipb_expiry_invalid'   => 'Expiry time invalid.',
-'ip_range_invalid'     => "Invalid IP range.\n",
+'ip_range_invalid'     => 'Invalid IP range.',
 '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",
+'proxyblocksuccess'    => 'Done.',
 'sorbs'         => 'SORBS DNSBL',
 'sorbsreason'   => 'Your IP address is listed as an open proxy in the [http://www.sorbs.net SORBS] DNSBL.',
 'sorbs_create_account_reason' => 'Your IP address is listed as an open proxy in the [http://www.sorbs.net SORBS] DNSBL. You cannot create an account',
@@ -1522,56 +1537,6 @@ Type the name of the user in the box and press the button to make the user an ad
 'already_bureaucrat' => 'This user is already a bureaucrat',
 'already_steward'   => 'This user is already a steward',
 
-# Validation
-'val_yes' => 'Yes',
-'val_no' => 'No',
-'val_of' => '$1 of $2',
-'val_revision' => 'Revision',
-'val_time' => 'Time',
-'val_user_stats_title' => 'Validation overview of user $1',
-'val_my_stats_title' => 'My validation overview',
-'val_list_header' => '<th>#</th><th>Topic</th><th>Range</th><th>Action</th>',
-'val_add' => 'Add',
-'val_del' => 'Delete',
-'val_show_my_ratings' => 'Show my validations',
-'val_revision_number' => 'Revision #$1',
-'val_warning' => '<b>Never, <i>ever</i>, change something here without <i>explicit</i> community consensus!</b>',
-'val_rev_for' => 'Revisions for $1',
-'val_details_th_user' => 'User $1',
-'val_validation_of' => 'Validation of "$1"',
-'val_revision_of' => 'Revision of $1',
-'val_revision_changes_ok' => 'Your ratings have been stored!',
-'val_rev_stats' => 'See the validation statistics for "$1" <a href="$2">here</a>',
-'val_revision_stats_link' => 'details',
-'val_iamsure' => 'Check this box if you really mean it!',
-'val_details_th' => '<sub>User</sub> \\ <sup>Topic</sup>',
-'val_clear_old' => 'Clear my older validation data',
-'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
-'val_form_note' => "'''Hint:''' Merging your data means that for the article revision you select, all options where you have specified ''no opinion'' will be set to the value and comment of the most recent revision for which you have expressed an opinion. For example, if you want to change a single option for a newer revision, but also keep your other settings for this article in this revision, just select which option you intend to ''change'', and merging will fill in the other options with your previous settings.",
-'val_noop' => 'No opinion',
-'val_topic_desc_page' => 'Project:Validation topics',
-'val_votepage_intro' => 'Change this text <a href="{{SERVER}}{{localurl:MediaWiki:Val_votepage_intro}}">here</a>!',
-'val_percent' => '<b>$1%</b><br />($2 of $3 points<br />by $4 users)',
-'val_percent_single' => '<b>$1%</b><br />($2 of $3 points<br />by one user)',
-'val_total' => 'Total',
-'val_version' => 'Version',
-'val_tab' => 'Validate',
-'val_this_is_current_version' => 'this is the latest version',
-'val_version_of' => "Version of $1" ,
-'val_table_header' => '<tr><th>Class</th>$1<th colspan="4">Opinion</th>$1<th>Comment</th></tr>\n',
-'val_stat_link_text' => 'Validation statistics for this article',
-'val_view_version' => 'View this 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.',
-'val_validate_article_namespace_only' => 'Only articles can be validated. This page is <i>not</i> in the article namespace.',
-'val_validated' => 'Validation done.',
-'val_article_lists' => 'List of validated articles',
-'val_page_validation_statistics' => 'Page validation statistics for $1',
-'val_max_topics' => 'Maximum number of $1 topics reached',
-'val_no_topics_defined' => 'No topics defined',
-'val_no_topics_defined_text' => 'You have no topics defined which can be rated. Go to [[Special:Validate]], and have an administrator run the "Manage" function to add at least one topic and point range.',
-
 # Move page
 #
 'movepage'             => 'Move page',
@@ -1644,9 +1609,10 @@ To export pages, enter the titles in the text box below, one title per line, and
 select whether you want the current version as well as all old versions, with the page
 history lines, or just the current version with the info about the last edit.
 
-In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/{{Mediawiki:mainpage}}]] for the page {{Mediawiki:mainpage}}.
-',
+In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/{{Mediawiki:mainpage}}]] for the page {{Mediawiki:mainpage}}.',
 'exportcuronly'        => 'Include only the current revision, not the full history',
+'exportnohistory' => "----
+'''Note:''' exporting the full history of pages through this form has been disabled due to performance reasons.",
 
 # Namespace 8 related
 
@@ -1661,7 +1627,7 @@ In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/{{Media
 # Thumbnails
 
 'thumbnail-more'       => 'Enlarge',
-'missingimage'         => "<b>Missing image</b><br /><i>$1</i>\n",
+'missingimage'         => '<b>Missing image</b><br /><i>$1</i>',
 'filemissing'          => 'File missing',
 
 # Special:Import
@@ -1801,8 +1767,7 @@ ta[\'ca-nstab-image\'] = new Array(\'c\',\'View the image page\');
 ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'View the system message\');
 ta[\'ca-nstab-template\'] = new Array(\'c\',\'View the template\');
 ta[\'ca-nstab-help\'] = new Array(\'c\',\'View the help page\');
-ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
-',
+ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');',
 
 # image deletion
 'deletedrevision' => 'Deleted old revision $1.',
@@ -2139,7 +2104,7 @@ is collapsed. Others will be hidden by default.
 '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
+# 'all' in various places, this might be different for inflected languages
 'recentchangesall' => 'all',
 'imagelistall' => 'all',
 'watchlistall1' => 'all',
@@ -2170,8 +2135,7 @@ e-mail features on {{SITENAME}}, open this link in your browser:
 $3
 
 If this is *not* you, don't follow the link. This confirmation code
-will expire at $4.
-",
+will expire at $4.",
 
 # Inputbox extension, may be useful in other contexts as well
 'tryexact' => 'Try exact match',
@@ -2187,10 +2151,9 @@ will expire at $4.
 'trackbackbox' => '<div id="mw_trackbacks">
 Trackbacks for this article:<br />
 $1
-</div>
-',
-'trackback' => "; $4$5 : [$2 $1]\n",
-'trackbackexcerpt' => "; $4$5 : [$2 $1]: <nowiki>$3</nowiki>\n",
+</div>',
+'trackback' => '; $4$5 : [$2 $1]',
+'trackbackexcerpt' => '; $4$5 : [$2 $1]: <nowiki>$3</nowiki>',
 'trackbackremove' => ' ([$1 Delete])',
 'trackbacklink' => 'Trackback',
 'trackbackdeleteok' => 'The trackback was successfully deleted.',
@@ -2381,11 +2344,6 @@ class Language {
                return $wgDateFormatsEn;
        }
 
-       function getValidationTypes() {
-               global $wgValidationTypesEn;
-               return $wgValidationTypesEn;
-       }
-
        function getUserToggles() {
                global $wgUserTogglesEn;
                return $wgUserTogglesEn;
@@ -2446,6 +2404,7 @@ class Language {
         * @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;
@@ -2613,7 +2572,9 @@ class Language {
        *               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 true to use user's date format preference
+
+       * @param mixed  $format what format to return, if it's false output the
+       *               default one (default true)
        * @param string $timecorrection the time offset as returned by
        *               validateTimeZone() in Special:Preferences
        * @return string
@@ -2926,7 +2887,7 @@ class Language {
         * @return string
         */
        function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
-               return $count == 1 ? $wordform1 : $wordform2;
+               return $count == '1' ? $wordform1 : $wordform2;
        }
 
        /**
@@ -2936,6 +2897,22 @@ class Language {
         * @see LanguageFi.php for example implementation
         */
        function translateBlockExpiry( $str ) {
+
+               $scBlockExpiryOptions = wfMsg( 'ipboptions' );
+
+               if ( $scBlockExpiryOptions == '-') {
+                       return $str;
+               }
+
+               foreach (explode(',', $scBlockExpiryOptions) as $option) {
+                       if ( strpos($option, ":") === false )
+                               continue;
+                       list($show, $value) = explode(":", $option);
+                       if ( strcmp ( $str, $value) == 0 )
+                               return '<span title="' . htmlspecialchars($str). '">' .
+                                       htmlspecialchars( trim( $show ) ) . '</span>';
+               }
+
                return $str;
        }