[LON-CAPA-cvs] cvs: loncom /interface lonwhatsnew.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 12 Feb 2008 12:35:10 -0000
bisitz Tue Feb 12 07:35:10 2008 EDT
Modified files:
/loncom/interface lonwhatsnew.pm
Log:
Localization:
- Added some missing &mt()
- Optimized some &mt() calls (e.g. link, br, ... excluded from translation)
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.73 loncom/interface/lonwhatsnew.pm:1.74
--- loncom/interface/lonwhatsnew.pm:1.73 Wed Sep 26 08:34:19 2007
+++ loncom/interface/lonwhatsnew.pm Tue Feb 12 07:35:09 2008
@@ -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 @@
'</a></span><br />');
}
}
- $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).'. '.
- &mt('<b>Change</b> for just <a href="/adm/whatsnew?command=courseinit&refpage=[_1]">this '.$lctype.'</a>',$refpage).' '.
- &mt('or for all <a href="/adm/preferences?action=changecourseinit&refpage=[_1]">your courses</a>.',$refpage).'</span><br /><hr />');
+ $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)
+ .'. '
+# &mt('<b>Change</b> for just <a href="/adm/whatsnew?command=courseinit&refpage=[_1]">this '.$lctype.'</a>',$refpage).' '.
+# &mt('or for all <a href="/adm/preferences?action=changecourseinit&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&refpage='.$refpage.'">'
+ ,'</a>'
+ ,'<a href="/adm/preferences?action=changecourseinit&refpage='.$refpage.'">')
+ .' </span><br /><hr />');
if ($command eq 'reset') {
$result = &process_reset($cdom,$crs);
@@ -488,7 +496,7 @@
&Apache::loncommon::end_data_table_row());
}
$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="refpage" value="'.$refpage.'" />
</form>');
@@ -506,10 +514,10 @@
my $lctype = lc(&Apache::loncommon::course_type());
my $current = &get_current($env{'user.name'},$env{'user.domain'},
$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 '') {
- $r->print(' '.&mt('Current value is [_1]','<b>'.
- $$interval_titles{$current}.'</b>.'));
+ $r->print(' '.&mt('Current value is [_1].','<b>'.
+ $$interval_titles{$current}.'</b>'));
}
$r->print('<br /><br />
<form method="post" name="intervalswitch" action="/adm/whatsnew">
@@ -562,7 +570,7 @@
');
$r->print('<br/>
<input type="button" name="display" value="'.
- &mt('Change to [_1]',$opposite{$current}).'"
+ &mt('Change to [_1]',&mt($opposite{$current})).'"
onclick="javascript:toggle_countunread('."'change'".')" />
 
<input type="button" name="nochange" value="'.
@@ -866,10 +874,10 @@
my $resettitle = 'title_'.&escape($symb."\0".$part);
if (@parts > 1) {
$$triggered{$symb}{text}[$partcount] = '
- <td>part - '.$part.'</td>';
+ <td>'.&mt('part - ').$part.'</td>';
} else {
$$triggered{$symb}{text}[$partcount] = '
- <td>single part</td>';
+ <td>'.&mt('single part').'</td>';
}
$$triggered{$symb}{text}[$partcount] .= '
<td>'.$stats{$part}{users}.'</td>
@@ -979,7 +987,7 @@
sub process_update {
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) {
next if ($_!~/^form\.(.+)\_setparmval$/);
my $name = $1;
@@ -1417,7 +1425,7 @@
\%interval_settings,$udom,$uname);
if ($outcome eq 'ok') {
$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 {
my $lctype = lc(&Apache::loncommon::course_type());
@@ -1441,7 +1449,7 @@
\%discussion_settings,$udom,$uname);
if ($outcome eq 'ok') {
$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 {
my $lctype = lc(&Apache::loncommon::course_type());
@@ -1449,7 +1457,7 @@
' '.$outcome.' for '.$uname.':'.$udom.' in '.$lctype.' '.$cid);
$result = &mt('Unable to set "number unread posts display" to [_1]'.
' due to [_2].',
- '<b>'.$env{'form.countunread'}.'</b>',
+ '<b>'.&mt($env{'form.countunread'}).'</b>',
'<tt>'.$outcome.'</tt>.<br />');
}
}