From 535b4a51c171676d722f908faab4635ec4e14d71 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Thu, 8 Apr 2010 01:53:48 +0000 Subject: [PATCH] MDL-21941, change language strings for comments api --- comment/comment.js | 2 +- lang/en_utf8/moodle.php | 1 - lib/outputrequirementslib.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/comment/comment.js b/comment/comment.js index d7a3ce02db8..11f16d8f5c4 100644 --- a/comment/comment.js +++ b/comment/comment.js @@ -55,7 +55,7 @@ M.core_comment = { return false; }, this); CommentHelper.confirmoverlay = new Y.Overlay({ -bodyContent: ''+M.str.moodle.sure+' '+M.str.moodle.cancel+'', +bodyContent: ''+M.str.moodle.yes+' '+M.str.moodle.no+'', visible: false }); CommentHelper.confirmoverlay.render(document.body); diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 095b45aed2f..f0db75dee1e 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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'; diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 403b1d00fb0..a80df2a30ad 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -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':