Diff for /loncom/interface/lonwhatsnew.pm between versions 1.80 and 1.81

version 1.80, 2008/08/26 01:12:16 version 1.81, 2008/12/06 12:49:18
Line 354  sub display_actions_box { Line 354  sub display_actions_box {
               .' <span class="LC_nobreak">'                .' <span class="LC_nobreak">'
               .&mt('Currently: [_1].','<i>'.$currinit.'</i>')                .&mt('Currently: [_1].','<i>'.$currinit.'</i>')
               .'&nbsp;&nbsp;'                .'&nbsp;&nbsp;'
               .&mt('<b>Change</b> for just [_1]this course[_2]'                .&mt('[_1]Change[_2] for just [_3]this course[_4] or for all [_5]your courses[_6].'
                   .' or for all [_3]your courses[_2].'                    ,'<b>'
                     ,'</b>'
                   ,'<a href="/adm/whatsnew?command=courseinit&amp;refpage='.$refpage.'">'                    ,'<a href="/adm/whatsnew?command=courseinit&amp;refpage='.$refpage.'">'
                   ,'</a>'                    ,'</a>'
                   ,'<a href="/adm/preferences?action=changecourseinit&amp;refpage='.$refpage.'">')                    ,'<a href="/adm/preferences?action=changecourseinit&amp;refpage='.$refpage.'">'
                     ,'</a>')
               .' </span><br /><hr />');                .' </span><br /><hr />');
   
     if ($command eq 'reset') {      if ($command eq 'reset') {
Line 677  function toggle_countunread(choice) { Line 679  function toggle_countunread(choice) {
     document.discussionswitch.submit();      document.discussionswitch.submit();
 }  }
 </script>');  </script>');
     $r->print('<br />'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'<br />'.&mt("This can increase the time taken to gather data for the '<i>What's New?</i>' page by a few seconds.").'&nbsp;&nbsp;'.&mt("Currently set to <b>$current</b>."));      $r->print('<br />'
                .&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.')
                .'<br />'
                .&mt("This can increase the time taken to gather data for the '<i>What's New?</i>' page by a few seconds.")
                .'&nbsp;&nbsp;'
                .&mt('Currently set to [_1].','<b>'.$current.'</b>.')
       );
     $r->print('<br /><br />      $r->print('<br /><br />
 <form method="post" name="discussionswitch" action="/adm/whatsnew">  <form method="post" name="discussionswitch" action="/adm/whatsnew">
 <input type="hidden" name="command" value="newdiscconf" />  <input type="hidden" name="command" value="newdiscconf" />
Line 1873  sub store_courseinit_setting { Line 1881  sub store_courseinit_setting {
                                            \%courseinit_settings,$udom,$uname);                                             \%courseinit_settings,$udom,$uname);
             if ($outcome eq 'ok') {              if ($outcome eq 'ok') {
                 if ($page_control eq 'global preferences') {                  if ($page_control eq 'global preferences') {
                     $result = &mt("Page displayed after role selection in $lctype now set by <b>user's global preferences</b>.");                      $result = &mt("Page displayed after role selection in $lctype now set by [_1]user's global preferences[_2].",'<b>','</b>');
                 } else {                  } else {
                     $result = &mt('Page displayed after role selection in this '.$lctype.' set to <b>[_2]</b>',$lctype,$$initpage{$env{'form.courseinit_page'}});                      $result = &mt('Page displayed after role selection in this '.$lctype.' set to [_1].'
                                    ,'<b>'.$$initpage{$env{'form.courseinit_page'}}.'</b>');
                 }                  }
             } else {              } else {
                 &Apache::lonnet::logthis('Error saving whatsnew courseinit '.                  &Apache::lonnet::logthis('Error saving whatsnew courseinit '.
Line 1887  sub store_courseinit_setting { Line 1896  sub store_courseinit_setting {
                          '<b>'.$page_control.'</b>',                           '<b>'.$page_control.'</b>',
                          '<tt>'.$outcome.'</tt>.<br />');                           '<tt>'.$outcome.'</tt>.<br />');
                 } else {                  } else {
                     $result = &mt('Unable to set page display, after role selection, for this '.$lctype.' to <b>[_2]</b> due to <tt>[_3]</tt>.<br />',                      $result = &mt('Unable to set page display, after role selection, for this '.$lctype.' to [_1] due to [_2].'
                          $$initpage{$env{'form.courseinit_page'}},$outcome);                                   ,'<b>'.$$initpage{$env{'form.courseinit_page'}}.'</b>'
                                    ,'<tt>'.$outcome.'</tt>')
                                .'<br />';
                 }                  }
             }              }
         }          }

Removed from v.1.80  
changed lines
  Added in v.1.81


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