Diff for /loncom/interface/lonwhatsnew.pm between versions 1.73 and 1.74

version 1.73, 2007/09/26 12:34:19 version 1.74, 2008/02/12 12:35:09
Line 308  sub display_actions_box { Line 308  sub display_actions_box {
                   '</a></span><br />');                    '</a></span><br />');
         }          }
     }      }
     $r->print(&mt('Page set to be displayed after you have selected a role in this '.$lctype).      $r->print(&mt('Page set to be displayed after you have selected a role in this '.$lctype).'.'
               '. <span class="LC_nobreak">'.&mt('Currently: <i>[_1]</i>',$currinit).'.&nbsp;&nbsp;'.                .' <span class="LC_nobreak">'
               &mt('<b>Change</b> for just <a href="/adm/whatsnew?command=courseinit&amp;refpage=[_1]">this '.$lctype.'</a>',$refpage).' '.                .&mt('Currently: <i>[_1]</i>',$currinit)
               &mt('or for all <a href="/adm/preferences?action=changecourseinit&amp;refpage=[_1]">your courses</a>.',$refpage).'</span><br /><hr />');                .'.&nbsp;&nbsp;'
   #              &mt('<b>Change</b> for just <a href="/adm/whatsnew?command=courseinit&amp;refpage=[_1]">this '.$lctype.'</a>',$refpage).' '.
   #              &mt('or for all <a href="/adm/preferences?action=changecourseinit&amp;refpage=[_1]">your courses</a>.',$refpage).'</span><br /><hr />');
                 .&mt('<b>Change</b> for just [_1]this course[_2]'
                     .' or for all [_3]your courses[_2].'
                     ,'<a href="/adm/whatsnew?command=courseinit&amp;refpage='.$refpage.'">'
                     ,'</a>'
                     ,'<a href="/adm/preferences?action=changecourseinit&amp;refpage='.$refpage.'">')
                 .' </span><br /><hr />');
   
     if ($command eq 'reset') {      if ($command eq 'reset') {
         $result = &process_reset($cdom,$crs);          $result = &process_reset($cdom,$crs);
Line 488  sub display_threshold_config { Line 496  sub display_threshold_config {
                  &Apache::loncommon::end_data_table_row());                   &Apache::loncommon::end_data_table_row());
     }      }
     $r->print(&Apache::loncommon::end_data_table()."\n".      $r->print(&Apache::loncommon::end_data_table()."\n".
           '<br /><input type="submit" name="threshold" value="Make changes" />            '<br /><input type="submit" name="threshold" value="'.&mt('Make changes').'" />
                  <input type="hidden" name="command" value="update" />                   <input type="hidden" name="command" value="update" />
                  <input type="hidden" name="refpage" value="'.$refpage.'" />                   <input type="hidden" name="refpage" value="'.$refpage.'" />
                </form>');                 </form>');
Line 506  sub display_interval_config { Line 514  sub display_interval_config {
     my $lctype = lc(&Apache::loncommon::course_type());      my $lctype = lc(&Apache::loncommon::course_type());
     my $current = &get_current($env{'user.name'},$env{'user.domain'},      my $current = &get_current($env{'user.name'},$env{'user.domain'},
                                 $env{'request.course.id'},'interval');                                  $env{'request.course.id'},'interval');
     $r->print('<br />'.&mt('Choose the time window to use for display of version changes for resources in the '.$lctype.'.'));      $r->print('<br />'.&mt('Choose the time window to use for display of version changes for resources in the '.$lctype.'.').'<br />');
     unless ($current eq '') {      unless ($current eq '') {
         $r->print(' '.&mt('Current value is [_1]','<b>'.          $r->print(' '.&mt('Current value is [_1].','<b>'.
                   $$interval_titles{$current}.'</b>.'));                    $$interval_titles{$current}.'</b>'));
     }      }
     $r->print('<br /><br />      $r->print('<br /><br />
 <form method="post" name="intervalswitch" action="/adm/whatsnew">  <form method="post" name="intervalswitch" action="/adm/whatsnew">
Line 562  function toggle_countunread(choice) { Line 570  function toggle_countunread(choice) {
 ');  ');
     $r->print('<br/>      $r->print('<br/>
                <input type="button" name="display" value="'.                 <input type="button" name="display" value="'.
                &mt('Change to [_1]',$opposite{$current}).'"                  &mt('Change to [_1]',&mt($opposite{$current})).'" 
                onclick="javascript:toggle_countunread('."'change'".')" />                 onclick="javascript:toggle_countunread('."'change'".')" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                <input type="button" name="nochange" value="'.                 <input type="button" name="nochange" value="'.
Line 866  sub check_thresholds { Line 874  sub check_thresholds {
                 my $resettitle = 'title_'.&escape($symb."\0".$part);                  my $resettitle = 'title_'.&escape($symb."\0".$part);
                 if (@parts > 1) {                  if (@parts > 1) {
                     $$triggered{$symb}{text}[$partcount] = '                      $$triggered{$symb}{text}[$partcount] = '
                      <td>part - '.$part.'</td>';                       <td>'.&mt('part - ').$part.'</td>';
                 } else {                  } else {
                     $$triggered{$symb}{text}[$partcount] = '                      $$triggered{$symb}{text}[$partcount] = '
                      <td>single part</td>';                       <td>'.&mt('single part').'</td>';
                 }                  }
                 $$triggered{$symb}{text}[$partcount] .= '                  $$triggered{$symb}{text}[$partcount] .= '
                      <td>'.$stats{$part}{users}.'</td>                       <td>'.$stats{$part}{users}.'</td>
Line 979  sub process_reset { Line 987  sub process_reset {
   
 sub process_update {  sub process_update {
     my ($uname,$udom,$threshold_titles) = @_;      my ($uname,$udom,$threshold_titles) = @_;
     my $setoutput = '<b>Changes to threshold(s) for problem tracking:</b><br />';      my $setoutput = '<b>'.&mt('Changes to threshold(s) for problem tracking:').'</b><br />';
     foreach (keys %env) {      foreach (keys %env) {
         next if ($_!~/^form\.(.+)\_setparmval$/);          next if ($_!~/^form\.(.+)\_setparmval$/);
         my $name  = $1;          my $name  = $1;
Line 1417  sub store_interval_setting { Line 1425  sub store_interval_setting {
                                              \%interval_settings,$udom,$uname);                                               \%interval_settings,$udom,$uname);
         if ($outcome eq 'ok') {          if ($outcome eq 'ok') {
             $result = &mt('Interval set to version changes [_1]',              $result = &mt('Interval set to version changes [_1]',
                   '<b>'.$$interval_titles{$env{'form.interval'}}.'</b><br />');                    '<b>'.$$interval_titles{$env{'form.interval'}}.'</b>').'<br />';
   
         } else {          } else {
     my $lctype = lc(&Apache::loncommon::course_type());      my $lctype = lc(&Apache::loncommon::course_type());
Line 1441  sub store_discussion_setting { Line 1449  sub store_discussion_setting {
                                              \%discussion_settings,$udom,$uname);                                               \%discussion_settings,$udom,$uname);
         if ($outcome eq 'ok') {          if ($outcome eq 'ok') {
             $result = &mt('Count unread posts in discussions display set to [_1]',              $result = &mt('Count unread posts in discussions display set to [_1]',
                   '<b>'.$env{'form.countunread'}.'</b><br />');                    '<b>'.&mt($env{'form.countunread'}).'</b>').'<br />';
                                                                                                                                                                       
         } else {          } else {
     my $lctype = lc(&Apache::loncommon::course_type());      my $lctype = lc(&Apache::loncommon::course_type());
Line 1449  sub store_discussion_setting { Line 1457  sub store_discussion_setting {
                 ' '.$outcome.' for '.$uname.':'.$udom.' in '.$lctype.' '.$cid);                  ' '.$outcome.' for '.$uname.':'.$udom.' in '.$lctype.' '.$cid);
             $result = &mt('Unable to set "number unread posts display" to [_1]'.              $result = &mt('Unable to set "number unread posts display" to [_1]'.
                           ' due to [_2].',                            ' due to [_2].',
                          '<b>'.$env{'form.countunread'}.'</b>',                           '<b>'.&mt($env{'form.countunread'}).'</b>',
                          '<tt>'.$outcome.'</tt>.<br />');                           '<tt>'.$outcome.'</tt>.<br />');
         }          }
     }      }

Removed from v.1.73  
changed lines
  Added in v.1.74


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>