Yet another string using proper placeholder in Javascript

This commit is contained in:
David Mudrak 2010-11-17 12:44:17 +00:00
parent e98a39260a
commit 05e7fca43f
3 changed files with 4 additions and 4 deletions

View file

@ -178,7 +178,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) {
var index = 0, count = 0;
for (var i = 1; i <= 365; i++) {
count++;
var option = Y.Node.create('<option value="'+i+'">'+M.str.enrol.durationdays.replace(/\%d/, i)+'</option>');
var option = Y.Node.create('<option value="'+i+'">'+M.util.get_string('durationdays', 'enrol', i)+'</option>');
if (i == defaultvalue) {
index = count;
}
@ -495,4 +495,4 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) {
}
}
}, '@VERSION@', {requires:['base','node', 'overlay', 'io', 'test', 'json-parse', 'event-delegate', 'dd-plugin', 'event-key', 'moodle-enrol-notification']});
}, '@VERSION@', {requires:['base','node', 'overlay', 'io', 'test', 'json-parse', 'event-delegate', 'dd-plugin', 'event-key', 'moodle-enrol-notification']});

View file

@ -35,7 +35,7 @@ $string['custominstancename'] = 'Custom instance name';
$string['defaultenrol'] = 'Add instance to new courses';
$string['defaultenrol_desc'] = 'It is possible to add this plugin to all new courses by default.';
$string['deleteinstanceconfirm'] = 'Do you really want to delete enrol plugin instance "{$a->name}" with {$a->users} enrolled users?';
$string['durationdays'] = '%d days';
$string['durationdays'] = '{$a} days';
$string['enrol'] = 'Enrol';
$string['enrolcandidates'] = 'Not enrolled users';
$string['enrolcandidatesmatching'] = 'Matching not enrolled users';

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2010111700; // YYYYMMDD = date of the last version bump
$version = 2010111701; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 RC2 (Build: 20101117)'; // Human-friendly version name