MDL-48971 groups: Add "Description" label to hovered group description.

This commit is contained in:
Luca Bösch 2018-11-13 20:42:24 +01:00
parent c092f75791
commit def68a4344
2 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,7 @@ foreach ($members as $gpgid=>$groupdata) {
$line[] = $name;
} else {
$line[] = html_writer::tag('span', $name, array('class' => 'group_hoverdescription', 'data-groupid' => $gpid));
$hoverevents[$gpid] = $jsdescription;
$hoverevents[$gpid] = get_string('descriptiona', null, $jsdescription);
}
$fullnames = array();
foreach ($users as $user) {

View File

@ -502,6 +502,7 @@ $string['deletingolddata'] = 'Deleting old data';
$string['department'] = 'Department';
$string['desc'] = 'Descending';
$string['description'] = 'Description';
$string['descriptiona'] = 'Description: {$a}';
$string['deselectall'] = 'Deselect all';
$string['detailedless'] = 'Less detailed';
$string['detailedmore'] = 'More detailed';