From 322945e9ca2fe104084de8de5423d4fe5487a54b Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 30 May 2012 10:05:10 +0800 Subject: [PATCH] MDL-33184 Filepicker: rephrased drag and drop sentence --- files/renderer.php | 3 +-- lang/en/moodle.php | 2 +- lib/outputrenderers.php | 6 ++++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/files/renderer.php b/files/renderer.php index ac8e58294635f..3728a23443c34 100644 --- a/files/renderer.php +++ b/files/renderer.php @@ -185,7 +185,6 @@ private function fm_print_generallayout($fm) { $strmakedir = get_string('makeafolder', 'moodle'); $strdownload = get_string('downloadfolder', 'repository'); $strloading = get_string('loading', 'repository'); - $strnofilesattached = get_string('nofilesattached', 'repository'); $strdroptoupload = get_string('droptoupload', 'moodle'); $icon_progress = $OUTPUT->pix_icon('i/loading_small', $strloading).''; $restrictions = $this->fm_print_restrictions($fm); @@ -220,7 +219,7 @@ private function fm_print_generallayout($fm) {
-
'.$strnofilesattached.' +
'.$strdndenabledinbox.'
'.$strdroptoupload.'
diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 073d3eb405fd1..224b7411f87c9 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -466,7 +466,7 @@ $string['dndenabled'] = 'Drag and drop available'; $string['dndenabled_help'] = 'You can drag one or more files from your desktop and drop them onto the box below to upload them.
Note: this may not work with other web browsers'; $string['dndenabled_insentence'] = 'drag and drop available'; -$string['dndenabled_inbox'] = 'drag and drop files here to upload them'; +$string['dndenabled_inbox'] = 'You can drag and drop files here to add them.'; $string['dnduploadwithoutcontent'] = 'This upload does not have any content'; $string['dndworkingfiletextlink'] = 'Drag and drop files, text or links onto course sections to upload them'; $string['dndworkingfilelink'] = 'Drag and drop files or links onto course sections to upload them'; diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 80f20c658247f..697ca6f383c7a 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2025,7 +2025,9 @@ public function render_file_picker(file_picker $fp) { $currentfile = $options->currentfile; if (empty($currentfile)) { - $currentfile = get_string('nofilesattached', 'repository'); + $currentfile = ''; + } else { + $currentfile .= ' - '; } if ($options->maxbytes) { $size = $options->maxbytes; @@ -2056,7 +2058,7 @@ public function render_file_picker(file_picker $fp) { $html .= <<
-
$currentfile - $strdndenabled
+
$currentfile$strdndenabled
{$strdroptoupload}