--- loncom/html/adm/helper/parameter.helper 2005/11/22 12:49:55 1.15 +++ loncom/html/adm/helper/parameter.helper 2010/03/16 15:12:36 1.19 @@ -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,13 +98,13 @@ - return 'What weight should be set for ' . + return &mt('What weight should be set for ' . &{$helper->{DATA}->{'levelType'}}() - . '?
'; + . '?').'
';
if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { - return &mt('" [_1] " is not an acceptable weight. Weight must be a positive number.',$element->getValue()); + return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); } return undef; @@ -112,13 +112,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 &mt('" [_1] " is not an acceptable number of tries. Tries must be a positive number with no decimal point.',$element->getValue());} + return &mt('[_1] is not an acceptable number of tries. Tries must be a positive number with no decimal point.','"'.$element->getValue().'"');} return undef; @@ -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,19 +137,22 @@ - return 'Set ' . + return &mt('Set ' . &{$helper->{DATA}->{'dateType'}}() . ' for ' . &{$helper->{DATA}->{'levelType'}}() . - ' for ...'; + ' for ...'); . . . for all students in the course . . . for a particular section - - . . . for a particular group + + return 1 if (&Apache::longroup::coursegroups()) + + . . . for a particular group + . . . for an individual student @@ -157,26 +160,26 @@ - 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 student you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . - ' for:
';
+ ' for:').'
';