MDL-29523 filemanager: Fix a hardcode string
authorSun Zhigang <sunner@gmail.com>
Mon, 26 Sep 2011 01:08:05 +0000 (09:08 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 27 Feb 2012 01:35:11 +0000 (09:35 +0800)
lib/form/filemanager.php

index dca6662..c16229b 100644 (file)
@@ -378,6 +378,7 @@ function form_filemanager_render($options) {
 
     $maxsize = get_string('maxfilesize', 'moodle', display_size(get_max_upload_file_size($CFG->maxbytes, $course_maxbytes, $options->maxbytes)));
     $strdndenabled = get_string('dndenabled_insentence', 'moodle').$OUTPUT->help_icon('dndenabled');
+    $loading = get_string('loading', 'repository');
     $html .= <<<FMHTML
 <div class="filemanager-loading mdl-align" id='filemanager-loading-{$client_id}'>
 $icon_progress
@@ -393,7 +394,7 @@ $icon_progress
     </div>
     <div class="filemanager-container" id="filemanager-{$client_id}" style="position: relative" >
         <ul id="draftfiles-{$client_id}" class="fm-filelist">
-            <li>Loading...</li>
+            <li>{$loading}</li>
         </ul>
     </div>
 </div>