Skip to content

Commit

Permalink
Yet another string using proper placeholder in Javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Nov 17, 2010
1 parent e98a392 commit 05e7fca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions enrol/yui/enrolmentmanager/enrolmentmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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']});
2 changes: 1 addition & 1 deletion lang/en/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05e7fca

Please sign in to comment.