MDL-22054 converting course formats to have own lang packs

AMOS START
 MOV [formatscorm,core],[pluginname,format_scorm]
 MOV [formatsocial,core],[pluginname,format_social]
 MOV [formattopics,core],[pluginname,format_topics]
 MOV [formatweeks,core],[pluginname,format_weeks]
AMOS END
This commit is contained in:
Petr Skoda
2010-04-11 12:46:14 +00:00
parent 28a74542fe
commit ff67afbd95
8 changed files with 107 additions and 13 deletions
+1 -4
View File
@@ -126,10 +126,7 @@ class course_edit_form extends moodleform {
$courseformats = get_plugin_list('format');
$formcourseformats = array();
foreach ($courseformats as $courseformat => $formatdir) {
$formcourseformats["$courseformat"] = get_string("format$courseformat", "format_$courseformat");
if($formcourseformats["$courseformat"]=="[[format$courseformat]]") {
$formcourseformats["$courseformat"] = get_string("format$courseformat");
}
$formcourseformats[$courseformat] = get_string('pluginname', "format_$courseformat");
}
$mform->addElement('select', 'format', get_string('format'), $formcourseformats);
$mform->setHelpButton('format', array('courseformats', get_string('courseformats')), true);