This commit is contained in:
Ilya Tregubov 2023-04-18 10:17:45 +08:00
commit 6255f92d66
2 changed files with 6 additions and 4 deletions

View File

@ -178,7 +178,7 @@ class group extends base {
// Visibility column.
$columns[] = (new column(
'visibility',
new lang_string('visibility', 'core_group'),
new lang_string('visibilityshort', 'core_group'),
$this->get_entity_name()
))
->add_joins($this->get_joins())
@ -205,7 +205,7 @@ class group extends base {
// Participation column.
$columns[] = (new column(
'participation',
new lang_string('participation', 'core_group'),
new lang_string('participationshort', 'core_group'),
$this->get_entity_name()
))
->add_joins($this->get_joins())
@ -296,7 +296,7 @@ class group extends base {
$filters[] = (new filter(
select::class,
'visibility',
new lang_string('visibility', 'core_group'),
new lang_string('visibilityshort', 'core_group'),
$this->get_entity_name(),
"{$groupsalias}.visibility"
))
@ -312,7 +312,7 @@ class group extends base {
$filters[] = (new filter(
boolean_select::class,
'participation',
new lang_string('participation', 'core_group'),
new lang_string('participationshort', 'core_group'),
$this->get_entity_name(),
"{$groupsalias}.participation"
))

View File

@ -176,6 +176,7 @@ $string['othergroups'] = 'Other groups';
$string['overview'] = 'Overview';
$string['participation'] = 'Show group in dropdown menu for activities in group mode';
$string['participation_help'] = 'Should group members be able to select this group for activities in separate or visible groups mode? (Only applicable if group membership is visible to everyone or only visible to members.)';
$string['participationshort'] = 'Participation';
$string['potentialmembers'] = 'Potential members: {$a}';
$string['potentialmembs'] = 'Potential members';
$string['printerfriendly'] = 'Printer-friendly display';
@ -209,6 +210,7 @@ $string['visibility_help'] = '* Visible to everyone - all course participants ca
Users with the view hidden groups capability can always view group membership.
Note that you can\'t change this setting if the group has members.';
$string['visibilityshort'] = 'Visibility';
$string['visibilityall'] = 'Visible to everyone';
$string['visibilitymembers'] = 'Only visible to members';
$string['visibilityown'] = 'Only see own membership';