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']});