MDL-22054 converting course formats to have own lang packs
AMOS START MOV [namescorm,core],[sectionname,format_scorm] MOV [namesocial,core],[sectionname,format_social] MOV [nametopics,core],[sectionname,format_topics] MOV [nameweeks,core],[sectionname,format_weeks] AMOS END
This commit is contained in:
@@ -23,4 +23,5 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['sectionname'] = 'SCORM';
|
||||
$string['pluginname'] = 'SCORM format';
|
||||
|
||||
@@ -23,4 +23,5 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['sectionname'] = 'section';
|
||||
$string['pluginname'] = 'Social format';
|
||||
|
||||
@@ -23,4 +23,5 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['sectionname'] = 'topic';
|
||||
$string['pluginname'] = 'Topics format';
|
||||
|
||||
@@ -23,4 +23,5 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['sectionname'] = 'week';
|
||||
$string['pluginname'] = 'Weekly format';
|
||||
|
||||
+1
-5
@@ -3169,11 +3169,7 @@ function move_category($category, $newparentcat) {
|
||||
* @return Name that the course format prefers for sections
|
||||
*/
|
||||
function get_section_name($format) {
|
||||
$sectionname = get_string("name$format","format_$format");
|
||||
if($sectionname == "[[name$format]]") {
|
||||
$sectionname = get_string("name$format");
|
||||
}
|
||||
return $sectionname;
|
||||
return get_string('sectionname', "format_$format");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1095,10 +1095,6 @@ $string['mycourses'] = 'My courses';
|
||||
$string['mymoodledashboard'] = 'My Moodle dashboard';
|
||||
$string['myprofile'] = 'My profile';
|
||||
$string['name'] = 'Name';
|
||||
$string['namescorm'] = 'SCORM';
|
||||
$string['namesocial'] = 'section';
|
||||
$string['nametopics'] = 'topic';
|
||||
$string['nameweeks'] = 'week';
|
||||
$string['navigation'] = 'Navigation';
|
||||
$string['needed'] = 'Needed';
|
||||
$string['never'] = 'Never';
|
||||
|
||||
Reference in New Issue
Block a user