[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 19 Sep 2008 22:06:52 -0000
raeburn Fri Sep 19 18:06:52 2008 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- Typo (existant)
- Missing ;
- Add some missing localizations.
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.240 loncom/homework/bridgetask.pm:1.241
--- loncom/homework/bridgetask.pm:1.240 Thu Sep 11 10:47:17 2008
+++ loncom/homework/bridgetask.pm Fri Sep 19 18:06:49 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.240 2008/09/11 14:47:17 bisitz Exp $
+# $Id: bridgetask.pm,v 1.241 2008/09/19 22:06:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -545,7 +545,7 @@
.&mt('[_1]Nonexistent file:[_2]'
,'<span class="LC_error"> '
,'</span> <span class="LC_filename">'.$file.'</span>');
- $msg .= "<p>".&mt('Submitted non-existant file [_1]',$file)."</p>\n";
+ $msg .= "<p>".&mt('Submitted non-existent file [_1]',$file)."</p>\n";
} else {
$file = '<span class="LC_filename">'.$file.'</span>';
$msg .= "<p>".&mt('Submitted file [_1]',$file)."</p>\n";
@@ -579,7 +579,7 @@
.'<p><a href="/adm/logout">'.&mt('Logout').'</a></p>'
.'<p><a href="/adm/roles">'.&mt('Change to a different course').'</a></p>'
.$message_status
-.$comment_status
+.$comment_status;
}
@@ -1091,10 +1091,11 @@
if (!$previous && $status ne 'SHOW_ANSWER' &&
&show_task($status,$previous)) {
my $action = &Apache::lonenc::check_encrypt($env{'request.uri'});
+ my $donetext = &mt('Done');
$result.=<<DONEBUTTON;
<form name="done" method="post" action="$action">
<input type="hidden" name="donescreen" value="1" />
- <input type="submit" value="Done" />
+ <input type="submit" value="$donetext" />
</form>
DONEBUTTON
}
@@ -2647,17 +2648,11 @@
}
$status .= '.';
if ($counts->{'opt'}) {
- # FIXME &mt() missing!
- $status .= ' You were required to pass '.$counts->{'opt_req'}.
- ' optional ';
- if ($counts->{'opt_dim'} + $counts->{'man_dim'} < 1) {
- $status .=
- ($counts->{'opt_req'} == 1?'criterion':'criteria');
- } else {
- $status .=
- 'component'.($counts->{'opt_req'} == 1?'':'s');
- }
- $status .= '.';
+ if ($counts->{'opt_dim'} + $counts->{'man_dim'} < 1) {
+ $status .= ' '.&mt('You were required to pass [quant,_1,optional criterion,optional criteria].',$counts->{'opt_req'});
+ } else {
+ $status .= ' '.&mt('You were required to pass [quant,_1,optional component].',$counts->{'opt_req'});
+ }
}
return $status;
}
@@ -3139,33 +3134,45 @@
if (!$env{'form.proctordomain'}) { $env{'form.proctordomain'}=$domain; }
my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
$uri = &HTML::Entities::encode($uri,'<>&"');
- # FIXME &mt() missing!
+ my %lt = &Apache::lonlocal::texthash(
+ 'prva' => "Proctor Validation",
+ 'yoro' => "Your room's proctor needs to validate your access to this resource.",
+ 'prus' => "Proctor's Username:",
+ 'pasw' => "Password:",
+ 'prdo' => "Proctor's Domain:",
+ 'vali' => 'Validate',
+ 'stui' => "Student who should be logged in is:",
+ 'name' => "Name:",
+ 'sid' => "Student ID:",
+ 'unam' => "Username:",
+ );
my $result= (<<ENDCHECKOUT);
-<h2>Proctor Validation</h2>
- <p>Your room's proctor needs to validate your access to this resource.</p>
+<h2>$lt{'prva'}</h2>
+ <p>$lt{'yoro'}</p>
$msg
<form name="checkout" method="post" action="$uri">
<input type="hidden" name="validate" value="yes" />
<input type="hidden" name="submitted" value="yes" />
<table>
- <tr><td>Proctor's Username:</td><td><input type="string" name="proctorname" value="$env{'form.proctorname'}" /></td></tr>
- <tr><td>Password:</td><td><input type="password" name="proctorpassword" value="" /></td></tr>
- <tr><td>Proctor's Domain:</td><td><input type="string" name="proctordomain" value="$env{'form.proctordomain'}" /></td></tr>
+ <tr><td>$lt{'prus'}</td><td><input type="string" name="proctorname" value="$env{'form.proctorname'}" /></td></tr>
+ <tr><td>$lt{'pasw'}</td><td><input type="password" name="proctorpassword" value="" /></td></tr>
+ <tr><td>$lt{'prdo'}</td><td><input type="string" name="proctordomain" value="$env{'form.proctordomain'}" /></td></tr>
</table>
-<input type="submit" name="checkoutbutton" value="Validate" /><br />
+<input type="submit" name="checkoutbutton" value="$lt{'vali'}" /><br />
<table border="1">
<tr><td>
<table>
- <tr><td colspan="2">Student who should be logged in is:</td></tr>
- <tr><td>Name:</td><td>$name</td></tr>
- <tr><td>Student ID:</td><td>$env{'environment.id'}</td></tr>
- <tr><td>Usename</td><td>$user:$domain</td></tr>
+ <tr><td colspan="2">$lt{'stui'}</td></tr>
+ <tr><td>$lt{'name'}</td><td>$name</td></tr>
+ <tr><td>$lt{'sid'}</td><td>$env{'environment.id'}</td></tr>
+ <tr><td>$lt{'unam'}</td><td>$user:$domain</td></tr>
$url
</table>
</tr></td>
</table>
</form>
ENDCHECKOUT
+
return $result;
}