MDL-33121 book - improve a lang string
authorDan Poltawski <dan@moodle.com>
Tue, 19 Jun 2012 06:09:58 +0000 (14:09 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 19 Jun 2012 06:15:11 +0000 (14:15 +0800)
+ Make a comment match coding style

mod/book/edit_form.php
mod/book/lang/en/book.php

index afd0490..8384104 100644 (file)
@@ -34,7 +34,7 @@ class book_chapter_edit_form extends moodleform {
         $chapter = $this->_customdata['chapter'];
         $options = $this->_customdata['options'];
 
-        //Disabled subchapter option when editing first node
+        // Disabled subchapter option when editing first node.
         $disabledmsg = null;
         if ($chapter->pagenum == 1) {
             $disabledmsg = get_string('subchapternotice', 'book');
index c853dd2..470e18e 100644 (file)
@@ -72,6 +72,6 @@ $string['book:viewhiddenchapters'] = 'View hidden book chapters';
 $string['errorchapter'] = 'Error reading chapter of book.';
 
 $string['page-mod-book-x'] = 'Any book module page';
-$string['subchapternotice'] = 'This option is disabled, because the first chapter cannot be a subchapter';
+$string['subchapternotice'] = '(Only available once the first chapter has been created)';
 $string['subplugintype_booktool'] = 'Book tool';
 $string['subplugintype_booktool_plural'] = 'Book tools';