version 1.80.2.1, 2008/12/12 15:49:54
|
version 1.83, 2008/12/12 15:48:05
|
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>') |
.' ' |
.' ' |
.&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&refpage='.$refpage.'">' |
,'<a href="/adm/whatsnew?command=courseinit&refpage='.$refpage.'">' |
,'</a>' |
,'</a>' |
,'<a href="/adm/preferences?action=changecourseinit&refpage='.$refpage.'">') |
,'<a href="/adm/preferences?action=changecourseinit&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.").' '.&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.") |
|
.' ' |
|
.&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 687 function toggle_countunread(choice) {
|
Line 695 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]',&mt($opposite{$current})).'" |
&mt('Change to [_1]',&mt($opposite{$current})).'" |
onclick="javascript:toggle_countunread('."'change'".')" />' |
onclick="javascript:toggle_countunread('."'change'".')" />'. |
(' ' x7). |
(' ' x7). |
'<input type="button" name="nochange" value="'. |
'<input type="button" name="nochange" value="'. |
&mt("No change").'" |
&mt("No change").'" |
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 />'; |
} |
} |
} |
} |
} |
} |