'nstab-media' => 'Media',
'nstab-special' => 'Special',
'nstab-wp' => 'About',
-'nstab-image' => 'Image',
+'nstab-image' => 'File',
'nstab-mediawiki' => 'Message',
'nstab-template' => 'Template',
'nstab-help' => 'Help',
'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.",
'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)',
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).
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
'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).',
'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',
# 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]',
'lonelypages' => 'Orphaned pages',
'uncategorizedpages' => 'Uncategorized pages',
'uncategorizedcategories' => 'Uncategorized categories',
-'unusedimages' => 'Unused images',
+'unusedimages' => 'Unused files',
'popularpages' => 'Popular pages',
'nviews' => '$1 views',
'wantedpages' => 'Wanted pages',
# Special:Allpages
'nextpage' => 'Next page ($1)',
-'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)',
'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.",
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.
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>
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
*
/**
* 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 ) {
}
function getUserToggle( $tog ) {
- return wfMsg('tog-'.$tog);
+ return wfMsg( "tog-$tog" );
}
function getLanguageNames() {
/**
* For right-to-left language support
+ *
* @return bool
*/
function isRTL() { return false; }
* 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>";
}
/**
}
# convert text to different variants of a language.
- function convert( $text , $isTitle=false) {
+ function convert( $text, $isTitle = false) {
return $this->mConverter->convert($text, $isTitle);
}