MDL-36014 cohorts: fix string names
authorMarina Glancy <marina@moodle.com>
Tue, 29 Jul 2014 09:41:52 +0000 (17:41 +0800)
committerMarina Glancy <marina@moodle.com>
Fri, 3 Oct 2014 09:56:22 +0000 (17:56 +0800)
Cohort capabilities are defined in lang/en/roles.php, remove(rename) the capability-styled strings

AMOS BEGIN
 CPY [cohort:assign,core_assign],[assigncohorts,core_assign]
AMOS END

cohort/assign.php
lang/en/cohort.php

index 8873117..4715517 100644 (file)
@@ -62,7 +62,7 @@ if ($context->contextlevel == CONTEXT_COURSECAT) {
 }
 $PAGE->navbar->add(get_string('assign', 'cohort'));
 
-$PAGE->set_title(get_string('cohort:assign', 'cohort'));
+$PAGE->set_title(get_string('assigncohorts', 'cohort'));
 $PAGE->set_heading($COURSE->fullname);
 
 echo $OUTPUT->header();
index 31942de..f80d2ca 100644 (file)
@@ -36,9 +36,7 @@ $string['categorynotfound'] = 'Category <b>{$a}</b> not found or you don\'t have
 $string['cohort'] = 'Cohort';
 $string['cohorts'] = 'Cohorts';
 $string['cohortsin'] = '{$a}: available cohorts';
-$string['cohort:assign'] = 'Assign cohort members';
-$string['cohort:manage'] = 'Manage cohorts';
-$string['cohort:view'] = 'Use cohorts and view members';
+$string['assigncohorts'] = 'Assign cohort members';
 $string['component'] = 'Source';
 $string['contextnotfound'] = 'Context <b>{$a}</b> not found or you don\'t have permission to create a cohort there. The default context will be used.';
 $string['csvcontainserrors'] = 'Errors were found in CSV data. See details below.';
@@ -84,4 +82,4 @@ $string['uploadcohorts_help'] = 'Cohorts may be uploaded via text file. The form
 * The first record contains a list of fieldnames defining the format of the rest of the file
 * Required fieldname is name
 * Optional fieldnames are idnumber, description, descriptionformat, context, category, category_id, category_idnumber, category_path
-';
\ No newline at end of file
+';