From e8790d59bf27c53b856ec3322dca9e29000652d0 Mon Sep 17 00:00:00 2001 From: Andreas Grabs Date: Sun, 18 Apr 2010 19:21:54 +0000 Subject: [PATCH] MDL-21695 - Replace built-in HTML help files with proper strings --- mod/feedback/lang/en/feedback.php | 35 ++++++++++++++++++++++++++++++- mod/feedback/mapcourse.php | 6 +++--- mod/feedback/mod_form.php | 14 ++++++------- mod/feedback/show_entries.php | 2 +- mod/feedback/view.php | 2 +- 5 files changed, 46 insertions(+), 13 deletions(-) diff --git a/mod/feedback/lang/en/feedback.php b/mod/feedback/lang/en/feedback.php index af9d9f3aaaf..561b6137b56 100644 --- a/mod/feedback/lang/en/feedback.php +++ b/mod/feedback/lang/en/feedback.php @@ -35,7 +35,8 @@ $string['anonymous_edit'] = 'Record user names'; $string['anonymous_entries'] = 'Anonymous entries'; $string['anonymous_user'] = 'Anonymous user'; $string['append_new_items'] = 'Append new items'; -$string['autonumbering'] = 'automated numbers for each question'; +$string['autonumbering'] = 'automated numbers'; +$string['autonumbering_hlp'] = 'enables or disables automated numbers for each question'; $string['average'] = 'Average'; $string['bold'] = 'Bold'; $string['cancel_moving'] = 'Cancel moving'; @@ -70,6 +71,8 @@ $string['drop_feedback'] = 'Remove from this course'; $string['edit_item'] = 'Edit question'; $string['edit_items'] = 'Edit questions'; $string['email_notification'] = 'Send e-mail notifications'; +$string['emailnotification'] = 'emailnotifications'; +$string['emailnotification_hlp'] = 'On the submission of a Feedback response, Administrators will receive email notification'; $string['emailteachermail'] = '{$a->username} has completed feedback activity : \'{$a->feedback}\' You can view it here: @@ -122,7 +125,18 @@ $string['line_values'] = 'Rating'; $string['mapcourse'] = 'Map course'; $string['mapcourseinfo'] = 'This is a sitewide feedback that is available to all courses using the feedback block. You can however limit the courses to which it will appear by mapping them. Search the course and map it to this feedback.'; $string['mapcoursenone'] = 'No courses mapped. Feedback available to all courses'; +$string['mapcourse'] = 'Map feedback to courses'; +$string['mapcourse_hlp'] = 'By default Feedback forms created on your Moodle main page are available site wide +and will appear in all courses using the Feedback block. You can also force the Feedback +to appear by making it a Sticky Block.
+You can however limit the courses in which a Feedback form will appear by Mapping it +to specific courses. +'; $string['mapcourses'] = 'Map feedback to courses'; +$string['mapcourses_hlp'] = 'Once you have selected the relevant Course(s) and/or Programme(s) from your Search, +you can associate them with this Feedback using Map Course(s). You can Ctrl select +multiple Courses or Shift select a series of Courses.
+You can disassociated a Course or Programme from a Feedback at any time.'; $string['mappedcourses'] = 'Mapped courses'; $string['max_args_exceeded'] = 'Max 6 arguments can be handled, too many arguments for'; $string['maximal'] = 'maximal'; @@ -138,6 +152,8 @@ $string['multichoicerated'] = 'Multiple choice (rated)'; $string['multichoicetype'] = 'Multiple choice type'; $string['multichoice_values'] = 'Multiple choice values'; $string['multiple_submit'] = 'Multiple submit'; +$string['multiplesubmit'] = 'Multiple submit'; +$string['multiplesubmit_hlp'] = 'For Anonymous polls Multiple Submit will allow unlimited answers for every user. Where a User\'s name is collected, Multiple Submit will allow them allow to resubmit their Feedback answers.'; $string['name'] = 'Name'; $string['name_required'] = 'Name required'; $string['next_page'] = 'Next page'; @@ -191,6 +207,8 @@ $string['save_item'] = 'Save question'; $string['saving_failed'] = 'Saving failed'; $string['saving_failed_because_missing_or_false_values'] = 'Saving failed because missing or false values'; $string['search_course'] = 'Search course'; +$string['searchcourses'] = 'Search courses'; +$string['searchcourses_hlp'] = 'Search for the Code or Name of the Course(s) that you wish to associate with this Feedback.'; $string['selected_dump'] = 'Selected indexes of $SESSION variable are dumped below:'; $string['separator_decimal'] = '.'; $string['separator_thousand'] = ','; @@ -215,10 +233,25 @@ $string['textfield'] = 'Short text answer'; $string['textfield_maxlength'] = 'Maximum characters accepted'; $string['textfield_size'] = 'Textfield width'; $string['this_feedback_is_already_submitted'] = 'You\'ve already completed this activity.'; +$string['timeclose'] = 'time to close'; +$string['timeclose_hlp'] = 'You can specify times when the feedback is accessible for people to answer the questions.
+At a time after this time here defined, the feedback will be unavailable.
+If the checkbox is not selected so there is no limit defined.'; +$string['timeopen'] = 'time to open'; +$string['timeopen_hlp'] = 'You can specify times when the feedback is accessible for people to answer the questions.
+At a time before this time here defined, the feedback will be unavailable.
+If the checkbox is not selected so there is no limit defined.'; $string['typemissing'] = 'missing value "type"'; $string['update_item'] = 'Save changes to question'; +$string['url_for_continue'] = 'URL for continue-button'; +$string['url_for_continue_hlp'] = 'By default after a feedback is submitted the target of the +continue button is the course page.
+You can define here another target url for this continue-button.'; $string['url_for_continue_button'] = 'URL for continue-button'; $string['use_one_line_for_each_value'] = '
Use one line for each answer!'; $string['use_this_template'] = 'Use this template'; $string['using_templates'] = 'Use a template'; $string['vertical'] = 'vertical'; +$string['viewcompleted'] = 'completed feedbacks'; +$string['viewcompleted_hlp'] = 'You may view completed Feedback forms, searchable by Course and/or by Question. +Feedback responses may be exported to Excel.'; diff --git a/mod/feedback/mapcourse.php b/mod/feedback/mapcourse.php index a9d6ed0bc65..92f45acc995 100644 --- a/mod/feedback/mapcourse.php +++ b/mod/feedback/mapcourse.php @@ -96,14 +96,14 @@ if (($courses = $DB->get_records_sql_menu($sql, $params)) && !empty($searchcours echo ' ' . get_string('courses') . ': '; echo html_writer::select($courses, 'coursefilter', $coursefilter); echo ''; - echo $OUTPUT->old_help_icon('mapcourses', '', 'feedback', true); + echo $OUTPUT->help_icon('mapcourses', 'feedback'); echo ''; echo ''; echo ''; - echo $OUTPUT->old_help_icon('searchcourses', '', 'feedback', true); + echo $OUTPUT->help_icon('searchcourses', 'feedback'); } else { echo ' '; - echo $OUTPUT->old_help_icon('searchcourses', '', 'feedback', true); + echo $OUTPUT->help_icon('searchcourses', 'feedback'); } echo ''; diff --git a/mod/feedback/mod_form.php b/mod/feedback/mod_form.php index 179020330ca..8f9f0292205 100644 --- a/mod/feedback/mod_form.php +++ b/mod/feedback/mod_form.php @@ -32,14 +32,14 @@ class mod_feedback_mod_form extends moodleform_mod { $enableopengroup[] =& $mform->createElement('checkbox', 'openenable', get_string('feedbackopen', 'feedback')); $enableopengroup[] =& $mform->createElement('date_time_selector', 'timeopen', ''); $mform->addGroup($enableopengroup, 'enableopengroup', get_string('feedbackopen', 'feedback'), ' ', false); - $mform->setHelpButton('enableopengroup', array('timeopen', get_string('feedbackopens', 'feedback'), 'feedback')); + $mform->addHelpButton('enableopengroup', 'timeopen', 'feedback'); $mform->disabledIf('enableopengroup', 'openenable', 'notchecked'); $enableclosegroup = array(); $enableclosegroup[] =& $mform->createElement('checkbox', 'closeenable', get_string('feedbackclose', 'feedback')); $enableclosegroup[] =& $mform->createElement('date_time_selector', 'timeclose', ''); $mform->addGroup($enableclosegroup, 'enableclosegroup', get_string('feedbackclose', 'feedback'), ' ', false); - $mform->setHelpButton('enableclosegroup', array('timeclose', get_string('feedbackcloses', 'feedback'), 'feedback')); + $mform->addHelpButton('enableclosegroup', 'timeclose', 'feedback'); $mform->disabledIf('enableclosegroup', 'closeenable', 'notchecked'); //------------------------------------------------------------------------------- @@ -52,7 +52,7 @@ class mod_feedback_mod_form extends moodleform_mod { $mform->addElement('selectyesno', 'publish_stats', get_string('show_analysepage_after_submit', 'feedback')); $mform->addElement('selectyesno', 'email_notification', get_string('email_notification', 'feedback')); - $mform->setHelpButton('email_notification', array('emailnotification', get_string('email_notification', 'feedback'), 'feedback')); + $mform->addHelpButton('email_notification', 'emailnotification', 'feedback'); // check if there is existing responses to this feedback if (is_numeric($this->_instance) AND $this->_instance and $feedback = $DB->get_record("feedback", array("id"=>$this->_instance))) { @@ -66,13 +66,13 @@ class mod_feedback_mod_form extends moodleform_mod { $mform->addElement('text', 'multiple_submit_static', get_string('multiple_submit', 'feedback'), array('size'=>'4','disabled'=>'disabled', 'value'=>$multiple_submit_value)); $mform->addElement('hidden', 'multiple_submit', ''); $mform->setType('', PARAM_INT); - $mform->setHelpButton('multiple_submit_static', array('multiplesubmit', get_string('multiple_submit', 'feedback'), 'feedback')); + $mform->addHelpButton('multiple_submit_static', 'multiplesubmit', 'feedback'); }else { $mform->addElement('selectyesno', 'multiple_submit', get_string('multiple_submit', 'feedback')); - $mform->setHelpButton('multiple_submit', array('multiplesubmit', get_string('multiple_submit', 'feedback'), 'feedback')); + $mform->addHelpButton('multiple_submit', 'multiplesubmit', 'feedback'); } $mform->addElement('selectyesno', 'autonumbering', get_string('autonumbering', 'feedback')); - $mform->setHelpButton('autonumbering', array('autonumbering', get_string('autonumbering', 'feedback'), 'feedback')); + $mform->addHelpButton('autonumbering', 'autonumbering', 'feedback'); //------------------------------------------------------------------------------- $mform->addElement('header', 'aftersubmithdr', get_string('after_submit', 'feedback')); @@ -82,7 +82,7 @@ class mod_feedback_mod_form extends moodleform_mod { $mform->addElement('text', 'site_after_submit', get_string('url_for_continue_button', 'feedback'), array('size'=>'64','maxlength'=>'255')); $mform->setType('site_after_submit', PARAM_TEXT); - $mform->setHelpButton('site_after_submit', array('url_for_continue', get_string('url_for_continue_button', 'feedback'), 'feedback')); + $mform->addHelpButton('site_after_submit', 'url_for_continue', 'feedback'); //------------------------------------------------------------------------------- $this->standard_coursemodule_elements(); //------------------------------------------------------------------------------- diff --git a/mod/feedback/show_entries.php b/mod/feedback/show_entries.php index ee3cf926a73..231682b9b83 100644 --- a/mod/feedback/show_entries.php +++ b/mod/feedback/show_entries.php @@ -114,7 +114,7 @@ if($do_show == 'showentries'){ $analysisurl = new moodle_url('/mod/feedback/analysis_course.php', array('id'=>$id, 'courseid'=>$courseid)); echo '
'; echo get_string('course') .' '. get_string('analysis', 'feedback') . ' ('.get_string('completed_feedbacks', 'feedback').': '.intval($completedFeedbackCount).')'; - echo $OUTPUT->old_help_icon('viewcompleted', '', 'feedback', true); + echo $OUTPUT->help_icon('viewcompleted', 'feedback'); echo '
'; }else { $analysisurl = new moodle_url('/mod/feedback/analysis.php', array('id'=>$id, 'courseid'=>$courseid)); diff --git a/mod/feedback/view.php b/mod/feedback/view.php index 6d774ff44b4..c8cf899b51f 100644 --- a/mod/feedback/view.php +++ b/mod/feedback/view.php @@ -149,7 +149,7 @@ if($feedback_complete_cap) { echo ''; echo ''; echo ''; - echo $OUTPUT->old_help_icon('mapcourse', '', 'feedback', true); + echo $OUTPUT->help_icon('mapcourse', 'feedback'); echo ''; echo '
'; echo ''; -- 2.17.1