MDL-18125 - improve lang for options/choices

This commit is contained in:
danmarsden 2009-02-09 10:09:57 +00:00
parent b66ad159ea
commit ca5387202f
2 changed files with 4 additions and 3 deletions

View file

@ -16,6 +16,7 @@ $string['choiceclose'] = 'Until';
$string['choicefull'] = 'This choice is full and there are no available places.';
$string['choicename'] = 'Choice name';
$string['choiceopen'] = 'Open';
$string['choicesaved'] = 'Your choice has been saved';
$string['choicetext'] = 'Choice text';
$string['displayhorizontal'] = 'Display horizontally';
$string['displaymode'] = 'Display Mode';
@ -33,6 +34,7 @@ $string['noguestchoose'] = 'Sorry, guests are not allowed to make choices.';
$string['noresultsviewable'] = 'The results are not currently viewable.';
$string['notanswered'] = 'Not answered yet';
$string['notopenyet'] = 'Sorry, this activity is not available until $a';
$string['option'] = 'Option';
$string['privacy'] = 'Privacy of results';
$string['publish'] = 'Publish results';
$string['publishafteranswer'] = 'Show results to a student after they answer';
@ -53,5 +55,4 @@ $string['taken'] = 'Taken';
$string['timerestrict'] = 'Restrict answering to this time period';
$string['viewallresponses'] = 'View $a responses';
$string['yourselection'] = 'Your selection';
$string['choicesaved'] = 'Your choice has been saved';
?>

View file

@ -28,8 +28,8 @@ class mod_choice_mod_form extends moodleform_mod {
//-------------------------------------------------------------------------------
$repeatarray=array();
$repeatarray[] = &MoodleQuickForm::createElement('header', '', get_string('choice','choice').' {no}');
$repeatarray[] = &MoodleQuickForm::createElement('text', 'option', get_string('choice','choice'));
$repeatarray[] = &MoodleQuickForm::createElement('header', '', get_string('option','choice').' {no}');
$repeatarray[] = &MoodleQuickForm::createElement('text', 'option', get_string('option','choice'));
$repeatarray[] = &MoodleQuickForm::createElement('text', 'limit', get_string('limit','choice'));
$repeatarray[] = &MoodleQuickForm::createElement('hidden', 'optionid', 0);