Remove leading spaces in two messages
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 09:16:19 +0000 (11:16 +0200)
committerAlex Monk <krenair@gmail.com>
Mon, 1 Apr 2013 13:55:29 +0000 (13:55 +0000)
Also replace two hard coded space by a word separator.

Spotted by 아라 in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Upload_source_url/en

Change-Id: If3fbe2ed9b2bd7e156cc31055e9c74da3d79240a

includes/specials/SpecialUpload.php
languages/messages/MessagesEn.php

index 89c06b2..b665c4b 100644 (file)
@@ -843,10 +843,13 @@ class UploadForm extends HTMLForm {
                        'upload-type' => 'File',
                        'radio' => &$radio,
                        'help' => $this->msg( 'upload-maxfilesize',
-                                       $this->getContext()->getLanguage()->formatSize( $this->mMaxUploadSize['file'] )
-                               )->parse() . ' ' . $this->msg( 'upload_source_file' )->escaped(),
+                               $this->getContext()->getLanguage()->formatSize( $this->mMaxUploadSize['file'] ) )
+                               ->parse() .
+                               $this->msg( 'word-separator' )->escaped() .
+                               $this->msg( 'upload_source_file' )->escaped(),
                        'checked' => $selectedSourceType == 'file',
                );
+
                if ( $canUploadByUrl ) {
                        $this->mMaxUploadSize['url'] = UploadBase::getMaxUploadSize( 'url' );
                        $descriptor['UploadFileURL'] = array(
@@ -857,8 +860,10 @@ class UploadForm extends HTMLForm {
                                'upload-type' => 'url',
                                'radio' => &$radio,
                                'help' => $this->msg( 'upload-maxfilesize',
-                                               $this->getContext()->getLanguage()->formatSize( $this->mMaxUploadSize['url'] )
-                                       )->parse() . ' ' . $this->msg( 'upload_source_url' )->escaped(),
+                                       $this->getContext()->getLanguage()->formatSize( $this->mMaxUploadSize['url'] ) )
+                                       ->parse() .
+                                       $this->msg( 'word-separator' )->escaped() .
+                                       $this->msg( 'upload_source_url' )->escaped(),
                                'checked' => $selectedSourceType == 'url',
                        );
                }
index 9de6aaf..d95f195 100644 (file)
@@ -2414,8 +2414,8 @@ You may want to try at a less busy time.',
 'nolicense'          => 'None selected',
 'licenses'           => '-', # do not translate or duplicate this message to other languages
 'license-nopreview'  => '(Preview not available)',
-'upload_source_url'  => ' (a valid, publicly accessible URL)',
-'upload_source_file' => ' (a file on your computer)',
+'upload_source_url'  => '(a valid, publicly accessible URL)',
+'upload_source_file' => '(a file on your computer)',
 
 # Special:ListFiles
 'listfiles-summary'     => 'This special page shows all uploaded files.