--- loncom/html/adm/helper/parameter.helper 2009/07/08 17:55:07 1.18 +++ loncom/html/adm/helper/parameter.helper 2015/08/16 00:21:28 1.21 @@ -1,4 +1,4 @@ - + # 'dateTypeHash' should really be renamed now that we have tries... @@ -83,9 +83,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 @@ -98,9 +98,9 @@ - return 'What weight should be set for ' . + return &mt('What weight should be set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?
'; + . '?').'
';
if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { @@ -112,9 +112,9 @@
- return 'How many tries should be set for ' . + return &mt('How many tries should be set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?
'; + . '?').'
';
if ($val !~ /^[1234567890]+$/) { @@ -126,9 +126,9 @@ - return 'What should the ' . + return &mt('What should the ' . &{$helper->{DATA}->{'dateType'}}() . - ' be set to?

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

';
CHOOSE_STUDENT_LEVEL @@ -137,15 +137,18 @@ - 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 @@ -154,33 +157,33 @@ . . . 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 'Please select the group you wish to set the ' . + return &mt('Please select the group you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . - ' for:
';
+ ' 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:').'
'; +