MDL-59656 core_group: add support for multi-lang to groups editable

Part of MDL-59290.
This commit is contained in:
Mark Nelson 2017-07-31 15:32:46 +08:00
parent d509f80c48
commit 3cf76bbc87

View File

@ -75,7 +75,7 @@ class user_groups_editable extends \core\output\inplace_editable {
$options = [];
foreach ($coursegroups as $group) {
$options[$group->id] = $group->name;
$options[$group->id] = format_string($group->name, true, ['context' => $this->context]);
}
$this->edithint = get_string('editusersgroupsa', 'group', fullname($user));
$this->editlabel = get_string('editusersgroupsa', 'group', fullname($user));