mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-48772 enrol_cohort: Replace hardcoded language with language strings
This commit is contained in:
parent
4c27f52d91
commit
3a0c9c6306
@ -263,8 +263,10 @@ class enrol_manual_plugin extends enrol_plugin {
|
||||
'enrol',
|
||||
'enrolmentoptions',
|
||||
'enrolusers',
|
||||
'enrolxusers',
|
||||
'errajaxfailedenrol',
|
||||
'errajaxsearch',
|
||||
'foundxcohorts',
|
||||
'none',
|
||||
'usersearch',
|
||||
'unlimitedduration',
|
||||
|
@ -451,13 +451,13 @@ YUI.add('moodle-enrol_manual-quickenrolment', function(Y) {
|
||||
.append(create('<div class="'+CSS.DETAILS+'"></div>')
|
||||
.append(create('<div class="'+CSS.COHORTNAME+'">'+cohort.name+'</div>')))
|
||||
.append(create('<div class="'+CSS.OPTIONS+'"></div>')
|
||||
.append(create('<input type="button" class="'+CSS.ENROL+'" value="'+'Enrol '+cohort.cnt+' users'+'" />'))) // TODO string
|
||||
.append(create('<input type="button" class="' + CSS.ENROL + '" value="' + M.util.get_string('enrolxusers', 'enrol', cohort.cnt) + '" />')))
|
||||
);
|
||||
}
|
||||
this.set(UEP.COHORTCOUNT, count);
|
||||
if (!args.append) {
|
||||
//var usersstr = (result.response.totalusers == '1')?M.util.get_string('ajaxoneuserfound', 'enrol'):M.util.get_string('ajaxxusersfound','enrol', result.response.totalusers);
|
||||
var cohortsstr = 'Found '+result.response.totalcohorts+' cohorts'; // TODO
|
||||
var cohortsstr = M.util.get_string('foundxcohorts', 'enrol', result.response.totalcohorts);
|
||||
var content = create('<div class="'+CSS.SEARCHRESULTS+'"></div>')
|
||||
.append(create('<div class="'+CSS.TOTALCOHORTS+'">'+cohortsstr+'</div>'))
|
||||
.append(cohorts);
|
||||
|
@ -759,8 +759,10 @@ class course_enrolment_other_users_table extends course_enrolment_table {
|
||||
'enrol',
|
||||
'enrolmentoptions',
|
||||
'enrolusers',
|
||||
'enrolxusers',
|
||||
'errajaxfailedenrol',
|
||||
'errajaxsearch',
|
||||
'foundxcohorts',
|
||||
'none',
|
||||
'usersearch',
|
||||
'unlimitedduration',
|
||||
|
@ -60,6 +60,7 @@ $string['enrolnotpermitted'] = 'You do not have permission or are not allowed to
|
||||
$string['enrolperiod'] = 'Enrolment duration';
|
||||
$string['enrolusage'] = 'Instances / enrolments';
|
||||
$string['enrolusers'] = 'Enrol users';
|
||||
$string['enrolxusers'] = 'Enrol {$a} users';
|
||||
$string['enroltimecreated'] = 'Enrolment created';
|
||||
$string['enroltimeend'] = 'Enrolment ends';
|
||||
$string['enroltimestart'] = 'Enrolment starts';
|
||||
@ -81,6 +82,7 @@ $string['expirynotifyhour'] = 'Hour to send enrolment expiry notifications';
|
||||
$string['expirythreshold'] = 'Notification threshold';
|
||||
$string['expirythreshold_help'] = 'How long before enrolment expiry should users be notified?';
|
||||
$string['finishenrollingusers'] = 'Finish enrolling users';
|
||||
$string['foundxcohorts'] = 'Found {$a} cohorts';
|
||||
$string['instanceeditselfwarning'] = 'Warning:';
|
||||
$string['instanceeditselfwarningtext'] = 'You are enrolled into this course through this enrolment method, changes may affect your access to this course.';
|
||||
$string['invalidenrolinstance'] = 'Invalid enrolment instance';
|
||||
|
Loading…
x
Reference in New Issue
Block a user