MDL-68167 user: Fix a hardcoded string to be read from lang pack
authorShamim Rezaie <shamim@moodle.com>
Tue, 28 Jul 2020 17:51:48 +0000 (03:51 +1000)
committerShamim Rezaie <shamim@moodle.com>
Fri, 30 Oct 2020 05:01:38 +0000 (16:01 +1100)
lang/en/user.php
user/templates/local/participantsfilter/filterrow.mustache

index 9da8476..0f88417 100644 (file)
@@ -33,6 +33,7 @@ $string['clearfilterselection'] = 'Remove "{$a}" from filter';
 $string['countparticipantsfound'] = '{$a} participants found';
 $string['filterrowlegend'] = 'Filter {$a}';
 $string['filtersetmatchdescription'] = 'How multiple filters should be combined';
+$string['filtertype'] = 'Filter type';
 $string['match'] = 'Match';
 $string['matchofthefollowing'] = 'of the following:';
 $string['moodlenetprofile'] = 'MoodleNet profile';
index 2ae3c42..3b74167 100644 (file)
@@ -46,7 +46,7 @@
                 </select>
             </div>
 
-            <label class="sr-only pt-2" for="core_user-local-participantsfilter-filterrow-filtertype-{{uniqid}}">filtertype</label>
+            <label class="sr-only pt-2" for="core_user-local-participantsfilter-filterrow-filtertype-{{uniqid}}">{{#str}}filtertype, core_user{{/str}}</label>
             <select class="custom-select mb-1 mb-md-0 mr-md-2" data-filterfield="type" id="core_user-local-participantsfilter-filterrow-filtertype-{{uniqid}}">
                 <option value="">{{#str}}selectfiltertype, core_user{{/str}}</option>
                 {{#filtertypes}}