MDL-14589 adding missing lang strings

This commit is contained in:
skodak 2008-09-07 22:35:03 +00:00
parent 7983d68231
commit a4e936d47d
4 changed files with 13 additions and 12 deletions

View 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'] = '< Back';
$string['cacheexpire'] = 'Cache expire';

View 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)) {

View 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) {

View 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() {