[LON-CAPA-cvs] cvs: loncom /interface lonuserutils.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 19 Jun 2008 17:39:29 -0000
bisitz Thu Jun 19 13:39:29 2008 EDT
Modified files:
/loncom/interface lonuserutils.pm
Log:
Localization:
Optimized translation for Show/hide clicker id
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.57 loncom/interface/lonuserutils.pm:1.58
--- loncom/interface/lonuserutils.pm:1.57 Fri May 30 13:18:21 2008
+++ loncom/interface/lonuserutils.pm Thu Jun 19 13:39:29 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Utility functions for managing LON-CAPA user accounts
#
-# $Id: lonuserutils.pm,v 1.57 2008/05/30 17:18:21 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.58 2008/06/19 17:39:29 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2013,7 +2013,6 @@
'role' => "role",
'type' => "enroll type/action",
'email' => "email address",
- 'clicker' => "clicker id",
'photo' => "photo",
'extent' => "extent",
'pr' => "Proceed",
@@ -2178,19 +2177,20 @@
if ($context eq 'course' && $mode ne 'autoenroll') {
if ($env{'form.showrole'} eq 'st' || $env{'form.showrole'} eq 'Any') {
# Clicker display on or off?
- my %clicker_options = &Apache::lonlocal::texthash(
- 'on' => 'Show',
- 'off' => 'Hide',
- );
+ my %clicker_options = (
+ 'on' => 'Show',
+ 'off' => 'Hide',
+ );
my $clickerchg = 'on';
if ($displayclickers eq 'on') {
$clickerchg = 'off';
}
- $output .= ' <th>'."\n".' '.
- '<a href="javascript:document.'.$formname.'.displayclickers.value='.
- "'".$clickerchg."'".';document.'.$formname.'.submit();">'.
- $clicker_options{$clickerchg}.'</a> '.$lt{'clicker'}."\n".
- ' </th>'."\n";
+ $output .= ' <th>'."\n".' '
+ .&mt('[_1]'.$clicker_options{$clickerchg}.'[_2] clicker id'
+ ,'<a href="javascript:document.'.$formname.'.displayclickers.value='
+ ."'".$clickerchg."'".';document.'.$formname.'.submit();">'
+ ,'</a>')
+ ."\n".' </th>'."\n";
# Photo display on or off?
if ($env{'course.'.$env{'request.course.id'}.'.internal.showphoto'}) {