--- loncom/interface/lonwhatsnew.pm 2007/09/26 12:34:19 1.73 +++ loncom/interface/lonwhatsnew.pm 2008/02/12 12:35:09 1.74 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.73 2007/09/26 12:34:19 raeburn Exp $ +# $Id: lonwhatsnew.pm,v 1.74 2008/02/12 12:35:09 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -308,10 +308,18 @@ sub display_actions_box { '
'); } } - $r->print(&mt('Page set to be displayed after you have selected a role in this '.$lctype). - '. '.&mt('Currently: [_1]',$currinit).'.  '. - &mt('Change for just this '.$lctype.'',$refpage).' '. - &mt('or for all your courses.',$refpage).'

'); + $r->print(&mt('Page set to be displayed after you have selected a role in this '.$lctype).'.' + .' ' + .&mt('Currently: [_1]',$currinit) + .'.  ' +# &mt('Change for just this '.$lctype.'',$refpage).' '. +# &mt('or for all your courses.',$refpage).'

'); + .&mt('Change for just [_1]this course[_2]' + .' or for all [_3]your courses[_2].' + ,'' + ,'' + ,'') + .'

'); if ($command eq 'reset') { $result = &process_reset($cdom,$crs); @@ -488,7 +496,7 @@ sub display_threshold_config { &Apache::loncommon::end_data_table_row()); } $r->print(&Apache::loncommon::end_data_table()."\n". - '
+ '
'); @@ -506,10 +514,10 @@ sub display_interval_config { my $lctype = lc(&Apache::loncommon::course_type()); my $current = &get_current($env{'user.name'},$env{'user.domain'}, $env{'request.course.id'},'interval'); - $r->print('
'.&mt('Choose the time window to use for display of version changes for resources in the '.$lctype.'.')); + $r->print('
'.&mt('Choose the time window to use for display of version changes for resources in the '.$lctype.'.').'
'); unless ($current eq '') { - $r->print(' '.&mt('Current value is [_1]',''. - $$interval_titles{$current}.'.')); + $r->print(' '.&mt('Current value is [_1].',''. + $$interval_titles{$current}.'')); } $r->print('

@@ -562,7 +570,7 @@ function toggle_countunread(choice) { '); $r->print('
        1) { $$triggered{$symb}{text}[$partcount] = ' - part - '.$part.''; + '.&mt('part - ').$part.''; } else { $$triggered{$symb}{text}[$partcount] = ' - single part'; + '.&mt('single part').''; } $$triggered{$symb}{text}[$partcount] .= ' '.$stats{$part}{users}.' @@ -979,7 +987,7 @@ sub process_reset { sub process_update { my ($uname,$udom,$threshold_titles) = @_; - my $setoutput = 'Changes to threshold(s) for problem tracking:
'; + my $setoutput = ''.&mt('Changes to threshold(s) for problem tracking:').'
'; foreach (keys %env) { next if ($_!~/^form\.(.+)\_setparmval$/); my $name = $1; @@ -1417,7 +1425,7 @@ sub store_interval_setting { \%interval_settings,$udom,$uname); if ($outcome eq 'ok') { $result = &mt('Interval set to version changes [_1]', - ''.$$interval_titles{$env{'form.interval'}}.'
'); + ''.$$interval_titles{$env{'form.interval'}}.'').'
'; } else { my $lctype = lc(&Apache::loncommon::course_type()); @@ -1441,7 +1449,7 @@ sub store_discussion_setting { \%discussion_settings,$udom,$uname); if ($outcome eq 'ok') { $result = &mt('Count unread posts in discussions display set to [_1]', - ''.$env{'form.countunread'}.'
'); + ''.&mt($env{'form.countunread'}).'').'
'; } else { my $lctype = lc(&Apache::loncommon::course_type()); @@ -1449,7 +1457,7 @@ sub store_discussion_setting { ' '.$outcome.' for '.$uname.':'.$udom.' in '.$lctype.' '.$cid); $result = &mt('Unable to set "number unread posts display" to [_1]'. ' due to [_2].', - ''.$env{'form.countunread'}.'', + ''.&mt($env{'form.countunread'}).'', ''.$outcome.'.
'); } }