Skip to content

Commit

Permalink
MDL-33184 Filepicker: rephrased drag and drop sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed May 30, 2012
1 parent 4631e39 commit 322945e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions files/renderer.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion lang/en/moodle.php
Expand Up @@ -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';
Expand Down
6 changes: 4 additions & 2 deletions lib/outputrenderers.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 322945e

Please sign in to comment.