Skip to content

Commit

Permalink
MDL-36014 cohorts: fix string names
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marinaglancy committed Oct 3, 2014
1 parent 6597413 commit 78fb711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cohort/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}
$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();
Expand Down
6 changes: 2 additions & 4 deletions lang/en/cohort.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
$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.';
Expand Down Expand Up @@ -84,4 +82,4 @@
* 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
';
';

0 comments on commit 78fb711

Please sign in to comment.