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:
Petr Skoda
2010-04-11 12:55:59 +00:00
parent e71dc24bf4
commit d9d74c8e3d
6 changed files with 5 additions and 9 deletions
@@ -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
View File
@@ -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");
}
/**
-4
View File
@@ -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';