]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14589 adding missing lang strings
authorskodak <skodak>
Sun, 7 Sep 2008 22:35:03 +0000 (22:35 +0000)
committerskodak <skodak>
Sun, 7 Sep 2008 22:35:03 +0000 (22:35 +0000)
lang/en_utf8/repository.php
lib/file/file_browser.php
lib/file/file_info_coursefile.php
lib/file/file_info_system.php

index 8e1b010f025d547781fd8dc8f93641c0136e7262..f3b2221b890c04536be937f28b77786f8bcb953c 100644 (file)
@@ -3,6 +3,12 @@ $string['activerepository'] = 'Active repository plugins';
 $string['add'] = 'Add';
 $string['addplugin'] = 'Add a repository plugin';
 $string['activaterep'] = 'Active repositories';
+$string['areabackup'] = 'Backups';
+$string['areacategoryintro'] = 'Category introduction';
+$string['areacourseintro'] = 'Course introduction';
+$string['arearoot'] = 'System';
+$string['areauserdraft'] = 'Drafts';
+$string['areauserpersonal'] = 'Personal';
 $string['attachment'] = 'Attachment';
 $string['back'] = '&lt; Back';
 $string['cacheexpire'] = 'Cache expire';
index d3150efd81066a236c14732a7018526e08f8bc9d..bb3aa7f015bf7542279fd0f6c8c532976e4f1ae7 100644 (file)
@@ -65,8 +65,7 @@ class file_browser {
                         }
                     }
                     $urlbase = $CFG->wwwroot.'/userfile.php';
-                    // TODO: localise
-                    return new file_info_stored($this, $context, $storedfile, $urlbase, 'Personal files', false, true, true);
+                    return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areauserpersonal', 'repository'), false, true, true);
 
                 } else if ($filearea == 'user_draft') {
                     if (empty($itemid)) {
@@ -81,8 +80,7 @@ class file_browser {
                             return null;
                         }
                     }
-                    // TODO: localise
-                    return new file_info_stored($this, $context, $storedfile, $urlbase, 'Draft file area', true, true, true);
+                    return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areauserdraft', 'repository'), true, true, true);
                 }
             }
 
@@ -121,8 +119,7 @@ class file_browser {
                             return null;
                         }
                     }
-                    // TODO: localise
-                    return new file_info_stored($this, $context, $storedfile, $urlbase, 'Category introduction files', false, true, true);
+                    return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areacategoryintro', 'repository'), false, true, true);
                 }
             }
 
@@ -163,8 +160,7 @@ class file_browser {
                             return null;
                         }
                     }
-                    // TODO: localise
-                    return new file_info_stored($this, $context, $storedfile, $urlbase, 'Course introduction files', false, true, true);
+                    return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areacourseintro', 'repository'), false, true, true);
 
                 } else if ($filearea == 'course_backup') {
                     if (!has_capability('moodle/site:backup', $context) and !has_capability('moodle/site:restore', $context)) {
@@ -183,8 +179,7 @@ class file_browser {
 
                     $downloadable = has_capability('moodle/site:backupdownload', $context);
                     $uploadable   = has_capability('moodle/site:backupupload', $context);
-                    // TODO: localise
-                    return new file_info_stored($this, $context, $storedfile, $urlbase, 'Backup files', false, $downloadable, $uploadable);
+                    return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areabackup', 'repository'), false, $downloadable, $uploadable);
 
                 } else if ($filearea == 'course_content') {
                     if (!has_capability('moodle/course:managefiles', $context)) {
index 17041b35f1617146f3b6a01ba2b3b42f3c1f3c67..9b3e7928f8cd84c7f78d1e37bbd833e8716afc0d 100644 (file)
@@ -4,7 +4,7 @@ class file_info_coursefile extends file_info_stored {
     public function __construct($browser, $context, $storedfile) {
         global $CFG;
         $urlbase = $CFG->wwwroot.'/file.php';
-        parent::__construct($browser, $context, $storedfile, $urlbase, 'Course files', false, true, true); // TODO: localise
+        parent::__construct($browser, $context, $storedfile, $urlbase, get_string('coursefiles'), false, true, true);
     }
 
     public function get_url($forcedownload=false, $https=false) {
index 315ab17ae4514f2d51ab0ab0d700392f3c7b336f..bd3cd6618802504ef700640fb9529943136f9719 100644 (file)
@@ -14,7 +14,7 @@ class file_info_system extends file_info {
     }
 
     public function get_visible_name() {
-        return 'Root'; // TODO: fix & localise
+        return get_string('arearoot', 'repository');
     }
 
     public function is_writable() {