MDL-21941, change language strings for comments api
authorDongsheng Cai <unoter@gmail.com>
Thu, 8 Apr 2010 01:53:48 +0000 (01:53 +0000)
committerDongsheng Cai <unoter@gmail.com>
Thu, 8 Apr 2010 01:53:48 +0000 (01:53 +0000)
comment/comment.js
lang/en_utf8/moodle.php
lib/outputrequirementslib.php

index d7a3ce0..11f16d8 100644 (file)
@@ -55,7 +55,7 @@ M.core_comment = {
                     return false;
                 }, this);
                 CommentHelper.confirmoverlay = new Y.Overlay({
-bodyContent: '<a href="#" id="confirmdelete-'+this.client_id+'">'+M.str.moodle.sure+'</a> <a href="#" id="canceldelete-'+this.client_id+'">'+M.str.moodle.cancel+'</a>',
+bodyContent: '<a href="#" id="confirmdelete-'+this.client_id+'">'+M.str.moodle.yes+'</a> <a href="#" id="canceldelete-'+this.client_id+'">'+M.str.moodle.no+'</a>',
                                         visible: false
                                         });
                 CommentHelper.confirmoverlay.render(document.body);
index 095b45a..f0db75d 100644 (file)
@@ -1614,7 +1614,6 @@ $string['success'] = 'Success';
 $string['summary'] = 'Summary';
 $string['summaryof'] = 'Summary of $a';
 $string['supplyinfo'] = 'More details';
-$string['sure'] = 'Sure';
 $string['switchrolereturn'] = 'Return to my normal role';
 $string['switchroleto'] = 'Switch role to...';
 $string['tag'] = 'Tag';
index 403b1d0..a80df2a 100644 (file)
@@ -365,7 +365,7 @@ class page_requirements_manager {
                     $module = array('name'     => 'core_comment',
                                     'fullpath' => '/comment/comment.js',
                                     'requires' => array('base', 'io', 'node', 'json', 'yui2-animation', 'overlay'),
-                                    'strings' => array(array('confirmdeletecomments', 'admin'), array('sure', 'moodle'), array('cancel', 'moodle'))
+                                    'strings' => array(array('confirmdeletecomments', 'admin'), array('yes', 'moodle'), array('no', 'moodle'))
                                 );
                     break;
                 case 'core_role':