(bug 2079) Removed links to Special:Maintenance from movepagetext messages
[lhc/web/wiklou.git] / languages / Language.php
index 05e7ca3..9ce7da9 100644 (file)
@@ -467,7 +467,7 @@ performed by sysops with  \"bureaucrat\" status.",
 'nstab-media' => 'Media',
 'nstab-special' => 'Special',
 'nstab-wp' => 'About',
-'nstab-image' => 'Image',
+'nstab-image' => 'File',
 'nstab-mediawiki' => 'Message',
 'nstab-template' => 'Template',
 'nstab-help' => 'Help',
@@ -526,7 +526,7 @@ Please report this to an administrator, making note of the URL.",
 'unexpected'   => "Unexpected value: \"$1\"=\"$2\".",
 'formerror'            => 'Error: could not submit form',
 'badarticleerror' => 'This action cannot be performed on this page.',
-'cannotdelete' => 'Could not delete the page or image specified. (It may have already been deleted by someone else.)',
+'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.",
@@ -649,7 +649,7 @@ Please re-login with that for authentication purposes.",
 'nowiki_tip'=>'Ignore wiki formatting',
 'image_sample'=>'Example.jpg',
 'image_tip'=>'Embedded image',
-'media_sample'=>'Example.mp3',
+'media_sample'=>'Example.ogg',
 'media_tip'=>'Media file link',
 'sig_tip'=>'Your signature with timestamp',
 'hr_tip'=>'Horizontal line (use sparingly)',
@@ -714,13 +714,13 @@ The upper text area contains the page text as it currently exists.
 Your changes are shown in the lower text area.
 You will have to merge your changes into the existing text.
 <b>Only</b> the text in the upper text area will be saved when you
-press \"Save page\".\n<p>",
+press \"Save page\".<br />",
 '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",
+If you save it, any changes made since this revision will be lost.</strong>",
 'yourdiff'             => 'Differences',
 'copyrightwarning' => "Please note that all contributions to {{SITENAME}} are
 considered to be released under the $2 (see $1 for details).
@@ -735,16 +735,13 @@ If you don't want your writing to be edited mercilessly, then don't submit it he
 You are also promising us that you wrote this yourself, or copied it from a
 public domain or similar free resource (see $1 for details).
 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
-'longpagewarning' => "WARNING: This page is $1 kilobytes long; some
+'longpagewarning' => "<strong>WARNING: This page is $1 kilobytes long; some
 browsers may have problems editing pages approaching or longer than 32kb.
-Please consider breaking the page into smaller sections.",
-'readonlywarning' => 'WARNING: The database has been locked for maintenance,
+Please consider breaking the page into smaller sections.</strong>",
+'readonlywarning' => '<strong>WARNING: The database has been locked for maintenance,
 so you will not be able to save your edits right now. You may wish to cut-n-paste
-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/Project:Protected_page_guidelines'>protected page
-guidelines</a>.",
+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:',
 
 # History pages
@@ -873,7 +870,7 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'contextlines' => 'Lines per hit',
 'contextchars' => 'Context per line',
 'stubthreshold' => 'Threshold for stub display',
-'recentchangescount' => 'Number of titles in recent changes',
+'recentchangescount' => 'Titles in recent changes',
 'savedprefs'   => 'Your preferences have been saved.',
 'timezonelegend' => 'Time zone',
 'timezonetext' => 'The number of hours your local time differs from server time (UTC).',
@@ -890,31 +887,55 @@ See [[Project:User preferences help]] for help deciphering the options.",
 #
 
 # switching pan
-'grouplevels-lookup-group' => 'Manage group rights',
-'grouplevels-group-edit' => 'Existing groups: ',
+'groups-lookup-group' => 'Manage group rights',
+'groups-group-edit' => 'Existing groups: ',
 'editgroup' => 'Edit Group',
 'addgroup' => 'Add Group',
 
-'userlevels-lookup-user' => 'Manage user groups',
-'userlevels-user-editname' => 'Enter a username: ',
+'userrights-lookup-user' => 'Manage user groups',
+'userrights-user-editname' => 'Enter a username: ',
 'editusergroup' => 'Edit User Groups',
 
 # group editing
-'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',
+'groups-editgroup'          => 'Edit group',
+'groups-addgroup'           => 'Add group',
+'groups-editgroup-preamble' => 'If the name or description starts with a colon, the 
+remainder will be treated as a message name, and hence the text will be localised 
+using the MediaWiki namespace',
+'groups-editgroup-name'     => 'Group name: ',
+'groups-editgroup-description' => 'Group description (max 255 characters):<br />',
+'savegroup'                 => 'Save Group',
+'groups-tableheader'        => 'ID || Name || Description || Rights',
+'groups-existing'           => 'Existing groups',
+'groups-noname'             => 'Please specify a valid group name',
+'groups-already-exists'     => 'A group of that name already exists',
+'addgrouplogentry'          => 'Added group $2',
+'changegrouplogentry'       => 'Changed group $2',
+'renamegrouplogentry'       => 'Renamed group $2 to $3',
 
 # user groups editing
 #
-'userlevels-editusergroup' => 'Edit user groups',
+'userrights-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.
+'userrights-groupsmember' => 'Member of:',
+'userrights-groupsavailable' => 'Available groups:',
+'userrights-groupshelp' => 'Select groups you want the user to be removed from or added to.
 Unselected groups will not be changed. You can deselect a group with CTRL + Left Click',
 
+# Default group names and descriptions
+# 
+'group-anon-name'       => 'Anonymous',
+'group-anon-desc'       => 'Anonymous users',
+'group-loggedin-name'   => 'User',
+'group-loggedin-desc'   => 'General logged in users',
+'group-admin-name'      => 'Administrator',
+'group-admin-desc'      => 'Trusted users able to block users and delete articles',
+'group-bureaucrat-name' => 'Bureaucrat',
+'group-bureaucrat-desc' => 'The bureaucrat group is able to make sysops',
+'group-steward-name'    => 'Steward',
+'group-steward-desc'    => 'Full access',
+
+
 # Recent changes
 #
 'changes' => 'changes',
@@ -953,39 +974,23 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left
 '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'   =>
-"'''STOP!''' Before you upload here,
-make sure to read and follow the [[Project:Image use policy|image use policy]].
-
-To view or search previously uploaded images,
-go to the [[Special:Imagelist|list of uploaded images]].
-Uploads and deletions are logged on the
-[[Project:Upload log|upload log]].
-
-Use the form below to upload new image files for use in
-illustrating your pages.
-On most browsers, you will see a \"Browse...\" button, which will
-bring up your operating system's standard file open dialog.
-Choosing a file will fill the name of that file into the text
-field next to the button.
+"
+Use the form below to upload new files, 
+to view or search previously uploaded images
+go to the [[Special:Imagelist|list of uploaded files]], 
+uploads and deletions are also logged in the [[Special:Log|project log]].
+
 You must also check the box affirming that you are not
 violating any copyrights by uploading the file.
 Press the \"Upload\" button to finish the upload.
-This may take some time if you have a slow internet connection.
 
-The preferred formats are JPEG for photographic images, PNG
-for drawings and other iconic images, and OGG for sounds.
-Please name your files descriptively to avoid confusion.
 To include the image in a page, use a link in the form
-'''<nowiki>[[{{ns:6}}:file.jpg]]</nowiki>''' or
+'''<nowiki>[[{{ns:6}}:file.jpg]]</nowiki>'''
 '''<nowiki>[[{{ns:6}}:file.png|alt text]]</nowiki>''' or
-'''<nowiki>[[{{ns:-2}}:file.ogg]]</nowiki>''' for sounds.
-
-Please note that as with wiki pages, others may edit or
-delete your uploads if they think it serves the project, and
-you may be blocked from uploading if you abuse the system.",
+'''<nowiki>[[{{ns:-2}}:file.ogg]]</nowiki>''' for directly linking to the file.
+",
 
 'uploadlog'            => 'upload log',
 'uploadlogpage' => 'Upload_log',
@@ -1023,30 +1028,29 @@ created and by whom, and anything else you may know about it. If this is an imag
 
 # Image list
 #
-'imagelist'            => 'Image list',
-'imagelisttext'        => "Below is a list of $1 images sorted $2.",
-'getimagelist' => 'fetching image list',
-'ilshowmatch'  => 'Show all images with names matching',
+'imagelist'            => 'File list',
+'imagelisttext'        => "Below is a list of $1 files sorted $2.",
+'getimagelist' => 'fetching file list',
 'ilsubmit'             => 'Search',
-'showlast'             => "Show last $1 images sorted $2.",
+'showlast'             => "Show last $1 files sorted $2.",
 'byname'               => 'by name',
 'bydate'               => 'by date',
 'bysize'               => 'by size',
 'imgdelete'            => 'del',
 'imgdesc'              => 'desc',
 'imglegend'            => 'Legend: (desc) = show/edit image description.',
-'imghistory'   => 'Image history',
+'imghistory'   => 'History',
 'revertimg'            => 'rev',
 'deleteimg'            => 'del',
 'deleteimgcompletely'          => 'Delete all revisions',
-'imghistlegend' => 'Legend: (cur) = this is the current image, (del) = delete
+'imghistlegend' => 'Legend: (cur) = this is the current file, (del) = delete
 this old version, (rev) = revert to this old version.
-<br /><i>Click on date to see image uploaded on that date</i>.',
-'imagelinks'   => 'Image links',
-'linkstoimage' => 'The following pages link to this image:',
-'nolinkstoimage' => 'There are no pages that link to this image.',
+<br /><i>Click on date to see the file uploaded on that date</i>.',
+'imagelinks'   => 'Links',
+'linkstoimage' => 'The following pages link to this file:',
+'nolinkstoimage' => 'There are no pages that link to this file.',
 '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.',
+'shareduploadwiki' => 'Please see the [$1 file description page] for further information.',
 'noimage'       => 'No file by this name exists, you can [$1 upload it]',
 'uploadnewversion' => '[$1 Upload a new version of this file]',
 
@@ -1097,7 +1101,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'lonelypages'  => 'Orphaned pages',
 'uncategorizedpages'   => 'Uncategorized pages',
 'uncategorizedcategories'      => 'Uncategorized categories',
-'unusedimages' => 'Unused images',
+'unusedimages' => 'Unused files',
 'popularpages' => 'Popular pages',
 'nviews'               => '$1 views',
 'wantedpages'  => 'Wanted pages',
@@ -1140,8 +1144,8 @@ in active use.</p>',
 'booksources'  => 'Book sources',
 'categoriespagetext' => 'The following categories exist in the wiki.',
 'data' => 'Data',
-'userlevels' => 'User rights management',
-'grouplevels' => 'User group management',
+'userrights' => 'User rights management',
+'groups' => 'User groups',
 
 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
 'booksourcetext' => "Below is a list of links to other sites that
@@ -1160,22 +1164,7 @@ 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' => '
-<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>',
+'allpagesfrom'         => 'Display pages starting at:',
 'allarticles'          => 'All articles',
 'allnonarticles'       => 'All non-articles',
 'allinnamespace'       => 'All pages ($1 namespace)',
@@ -1362,22 +1351,15 @@ will not be automatically replaced.',
 'undeletedtext'   => "[[$1]] has been successfully restored.
 See [[Special:Log/delete]] for a record of recent deletions and restorations.",
 
+# Namespace form on various pages
+'namespace' => 'Namespace:',
+'invert' => 'Invert selection',
+
 # Contributions
 #
 '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.",
@@ -1545,7 +1527,7 @@ merging will fill in the other options with your previous settings.',
 of its history to the new name.
 The old title will become a redirect page to the new title.
 Links to the old page title will not be changed; be sure to
-[[Special:Maintenance|check]] for double or broken redirects.
+check for double or broken redirects.
 You are responsible for making sure that links continue to
 point where they are supposed to go.
 
@@ -2066,7 +2048,23 @@ class Language {
                global $wgNamespaceNamesEn;
                return $wgNamespaceNamesEn;
        }
-       
+
+       /**
+        * A convenience function that returns the same thing as
+        * getNamespaces() except with the array values changed to ' '
+        * where it found '_', useful for producing output to be displayed
+        * e.g. in <select> forms.
+        *
+        * @return array
+        */
+       function getFormattedNamespaces() {
+               $ns = $this->getNamespaces();
+               foreach($ns as $k => $v) {
+                       $ns[$k] = strtr($v, '_', ' ');
+               }
+               return $ns;
+       }
+
        /**
         * Get a namespace value by key
         * <code>
@@ -2081,7 +2079,18 @@ class Language {
                global $wgNamespaceNamesEn;
                return $wgNamespaceNamesEn[$index];
        }
-       
+       /**
+        * A convenience function that returns the same thing as
+        * getNsText() except with '_' changed to ' ', useful for
+        * producing output.
+        *
+        * @return array
+        */
+       function getFormattedNsText( $index ) {
+               $ns = $this->getNsText( $index );
+               return strtr($ns, '_', ' ');
+       }
+
        /**
         * Get a namespace key by value
         *
@@ -2099,13 +2108,12 @@ class Language {
 
        /**
         * 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 );
+               return wfMsg( "variantname-$code" );
        }
 
        function specialPage( $name ) {
@@ -2143,7 +2151,7 @@ class Language {
        }
 
        function getUserToggle( $tog ) {
-               return wfMsg('tog-'.$tog);
+               return wfMsg( "tog-$tog" );
        }
 
        function getLanguageNames() {
@@ -2476,6 +2484,7 @@ class Language {
 
        /**
         * For right-to-left language support
+        *
         * @return bool
         */
        function isRTL() { return false; }
@@ -2509,10 +2518,12 @@ class Language {
         * Italic is unsuitable for some languages
         *
         * @access public
+        *
         * @param string $text The text to be emphasized.
+        * @return string
         */
        function emphasize( $text ) {
-               return '<em>'.$text.'</em>';
+               return "<em>$text</em>";
        }
 
        /**
@@ -2634,7 +2645,7 @@ class Language {
        }
 
        # convert text to different variants of a language.
-       function convert( $text , $isTitle=false) {
+       function convert( $text, $isTitle = false) {
                return $this->mConverter->convert($text, $isTitle);
        }