Permalink
Browse files

MDL-33184 Filepicker: rephrased drag and drop sentence

  • Loading branch information...
1 parent 4631e39 commit 322945e9ca2fe104084de8de5423d4fe5487a54b @FMCorz FMCorz committed May 30, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −2 files/renderer.php
  2. +1 −1 lang/en/moodle.php
  3. +4 −2 lib/outputrenderers.php
View
@@ -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) {
<div class="filemanager-container" >
<div class="fm-content-wrapper">
<div class="fp-content"></div>
- <div class="fm-empty-container <!--mdl-align-->">'.$strnofilesattached.'
+ <div class="fm-empty-container <!--mdl-align-->">
<span class="dndupload-message">'.$strdndenabledinbox.'<br/><span class="dndupload-arrow"></span></span>
</div>
<div class="dndupload-target">'.$strdroptoupload.'<br/><span class="dndupload-arrow"></span></div>
View
@@ -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.<br />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';
View
@@ -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 .= <<<EOD
<div id="file_info_{$client_id}" class="mdl-left filepicker-filelist" style="position: relative">
<div class="filepicker-filename">
- <div class="filepicker-container">$currentfile<span class="dndupload-message"> - $strdndenabled <br/><span class="dndupload-arrow"></span></span></div>
+ <div class="filepicker-container">$currentfile<span class="dndupload-message">$strdndenabled <br/><span class="dndupload-arrow"></span></span></div>
</div>
<div><div class="dndupload-target">{$strdroptoupload}<br/><span class="dndupload-arrow"></span></div></div>
</div>

0 comments on commit 322945e

Please sign in to comment.