From 210290a9051121d6a32bc7ee5fbd5002ba53725c Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 9 Jul 2013 14:45:51 +0200 Subject: [PATCH] MDL-38857 tool_behat: Adding info about the tool purpose --- admin/tool/behat/lang/en/tool_behat.php | 2 ++ admin/tool/behat/renderer.php | 5 +++-- lib/behat/classes/behat_command.php | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/tool/behat/lang/en/tool_behat.php b/admin/tool/behat/lang/en/tool_behat.php index 6c4f29650d0..086e78c54f3 100644 --- a/admin/tool/behat/lang/en/tool_behat.php +++ b/admin/tool/behat/lang/en/tool_behat.php @@ -22,8 +22,10 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically.'; $string['allavailablesteps'] = 'All the available steps definitions'; $string['giveninfo'] = 'Given. Processes to set up the environment'; +$string['infoheading'] = 'Info'; $string['installinfo'] = 'Read {$a} for installation and tests execution info'; $string['moreinfoin'] = 'More info in {$a}'; $string['newstepsinfo'] = 'Read {$a} for info about how to add new steps definitions'; diff --git a/admin/tool/behat/renderer.php b/admin/tool/behat/renderer.php index 503bc094c1d..db94c85942b 100644 --- a/admin/tool/behat/renderer.php +++ b/admin/tool/behat/renderer.php @@ -64,9 +64,10 @@ class tool_behat_renderer extends plugin_renderer_base { get_string('newstepsinfo', 'tool_behat', $writestepslink) ); - // List of steps + // List of steps. $html .= $this->output->box_start(); - $html .= html_writer::tag('h1', 'Info'); + $html .= html_writer::tag('h1', get_string('infoheading', 'tool_behat')); + $html .= html_writer::tag('div', get_string('aim', 'tool_behat')); $html .= html_writer::empty_tag('div'); $html .= html_writer::empty_tag('ul'); $html .= html_writer::empty_tag('li'); diff --git a/lib/behat/classes/behat_command.php b/lib/behat/classes/behat_command.php index b93c224ab89..67a3812f533 100644 --- a/lib/behat/classes/behat_command.php +++ b/lib/behat/classes/behat_command.php @@ -207,6 +207,8 @@ class behat_command { protected static function output_msg($msg) { if (!CLI_SCRIPT) { + // General info about the tool purpose. + $msg = get_string('aim', 'tool_behat') . '

' . $msg; notice($msg); } else { echo $msg;