--- loncom/html/adm/helper/parameter.helper 2004/04/27 15:14:56 1.11 +++ loncom/html/adm/helper/parameter.helper 2016/03/05 21:49:52 1.23 @@ -1,4 +1,4 @@ - + # 'dateTypeHash' should really be renamed now that we have tries... @@ -26,9 +26,11 @@ -

This helper will assist you in setting the open, - due, and answer dates for problems, or in - setting the number of tries for problems.

+ +

This helper will assist you in setting the open, due, + and answer dates for problems, setting the problem + weights, or in setting the number of tries for + problems.

You will be asked to select which problems you wish to set the parameters for, then what parameter you @@ -51,6 +53,13 @@ Course default for all problems + + return 1 if (&Apache::lonnet::get_server_loncaparev($env{'course.'.$env{'request.course.id'}.'.home'}) >= 2.12) + + Every problem in a particular folder and (recursively) for sub-folders + (overrides course default) + + Every problem in a particular folder (overrides course default) @@ -73,7 +82,7 @@ Select the problem you wish to set the parameter for: - + CHOOSE_ACTION return $res->is_map || $res->is_problem() return $res->is_problem() @@ -81,9 +90,9 @@ - return 'What parameter do you want to set for ' . + return &mt('What parameter do you want to set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?'; + . '?'); CHOOSE_DATE @@ -96,13 +105,13 @@ - return 'What weight should be set for ' . + return &mt('What weight should be set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?
'; + . '?').'
';
if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { - return '"'.$element->getValue().'" '.&mt('is not an acceptable weight. Weight must be a positive number.'); + return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); } return undef; @@ -110,13 +119,13 @@
- return 'How many tries should be set for ' . + return &mt('How many tries should be set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?
'; + . '?').'
';
if ($val !~ /^[1234567890]+$/) { - return '"' . $element->getValue() . '" '.&mt('is not an acceptable number of tries. Tries must be a positive number with no decimal point.');} + return &mt('[_1] is not an acceptable number of tries. Tries must be a positive number with no decimal point.','"'.$element->getValue().'"');} return undef; @@ -124,9 +133,9 @@ - return 'What should the ' . + return &mt('What should the ' . &{$helper->{DATA}->{'dateType'}}() . - ' be set to?

'; + ' be set to?').'

';
CHOOSE_STUDENT_LEVEL @@ -135,36 +144,53 @@ - return 'Set ' . + return &mt('Set ' . &{$helper->{DATA}->{'dateType'}}() . ' for ' . &{$helper->{DATA}->{'levelType'}}() . - ' for ...'; + ' for ...'); - - . . . for all students in the course + + return 1 if ($env{'request.course.sec'} eq '') + + . . . for all students in the course + . . . for a particular section + + return 1 if (($env{'request.course.groups'} ne '') || (&Apache::lonnet::allowed('mdg',$env{'request.course.id'}) && (&Apache::longroup::coursegroups()))) + + . . . for a particular group + - . . . for an individual student + . . . for an individual student or user - return 'Please select the section you wish to set the ' . + return &mt('Please select the section you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . - ' for:
';
-

+ ' for:').'
'; +
- + + + return &mt('Please select the group you wish to set the ' . + &{$helper->{DATA}->{'dateType'}}() . + ' for:').'
';
+ +
+ + + - return 'Please select the student you wish to set the ' . + return &mt('Please select the person you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . - ' for:
';
- + ' for:').'
'; +