[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 24 Jun 2008 15:01:27 -0000
bisitz Tue Jun 24 11:01:27 2008 EDT
Modified files:
/loncom/interface domainprefs.pm
Log:
Localization:
Added missing &mt() calls to button texts and item list
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.55 loncom/interface/domainprefs.pm:1.56
--- loncom/interface/domainprefs.pm:1.55 Tue Jun 3 13:02:12 2008
+++ loncom/interface/domainprefs.pm Tue Jun 24 11:01:23 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.55 2008/06/03 17:02:12 raeburn Exp $
+# $Id: domainprefs.pm,v 1.56 2008/06/24 15:01:23 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -300,10 +300,10 @@
$r->print('<h3>'.&mt('Functionality to display/modify').'</h3>');
$r->print('<script type="text/javascript">'."\n".
&Apache::loncommon::check_uncheck_jscript()."\n".
- '</script>'."\n".'<p><input type="button" value="check all" '.
+ '</script>'."\n".'<p><input type="button" value="'.&mt('check all').'" '.
'onclick="javascript:checkAll(document.pickactions.actions)"'.
' /> '.
- '<input type="button" value="uncheck all" '.
+ '<input type="button" value="'.&mt('uncheck all').'" '.
'onclick="javascript:uncheckAll(document.pickactions.actions)"'.
' /></p><div class="LC_left_float">');
my ($numitems,$midpoint,$seconddiv,$count);
@@ -314,7 +314,7 @@
}
$count = 0;
foreach my $item (@prefs_order) {
- $r->print('<h4><label><input type="checkbox" name="actions" value="'.$item.'" /> '.$prefs{$item}->{'text'}.'</label></h4>');
+ $r->print('<h4><label><input type="checkbox" name="actions" value="'.$item.'" /> '.&mt($prefs{$item}->{'text'}).'</label></h4>');
$count ++;
if ((!$seconddiv) && ($count >= $midpoint)) {
$r->print('</div>'."\n".'<div class="LC_left_float">'."\n");