[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstudentassessment.pm /localize/localize newphrases.txt
matthew
lon-capa-cvs@mail.lon-capa.org
Thu, 20 Nov 2003 20:21:17 -0000
matthew Thu Nov 20 15:21:17 2003 EDT
Modified files:
/loncom/localize/localize newphrases.txt
/loncom/interface/statistics lonstudentassessment.pm
Log:
Localization of lonstudentassessment (chart). And a little bit of the
new spreadsheet error reporting.
Index: loncom/localize/localize/newphrases.txt
diff -u loncom/localize/localize/newphrases.txt:1.20 loncom/localize/localize/newphrases.txt:1.21
--- loncom/localize/localize/newphrases.txt:1.20 Fri Nov 7 17:22:23 2003
+++ loncom/localize/localize/newphrases.txt Thu Nov 20 15:21:17 2003
@@ -91,6 +91,24 @@
[_1] Filesystem Authenticated (with initial password [_2])
[_1] Local Authentication with arguement [_2]
+# Do not translate this line. [_1] is the problem title, [_2] is the row number, [_3] is the error message.
+Error computing row for assessment "[_1]" (row [_2]):[_3]
+
+Scores Summary
+Scores Per Problem
+Parts Correct
+
+Clear Caches
+Select One Student
+Generate Chart
+Output Data
+Student Data
+
+CSV
+HTML, with links
+HTML, with all links
+HTML, without links
+
You must choose at least one student to continue.
No changes were made to the current settings.
Finish Course Initialization
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.74 loncom/interface/statistics/lonstudentassessment.pm:1.75
--- loncom/interface/statistics/lonstudentassessment.pm:1.74 Tue Nov 11 17:14:28 2003
+++ loncom/interface/statistics/lonstudentassessment.pm Thu Nov 20 15:21:17 2003
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.74 2003/11/11 22:14:28 matthew Exp $
+# $Id: lonstudentassessment.pm,v 1.75 2003/11/20 20:21:17 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -54,6 +54,7 @@
use Apache::lonhtmlcommon;
use Apache::loncoursedata;
use Apache::lonnet; # for logging porpoises
+use Apache::lonlocal;
use Spreadsheet::WriteExcel;
#######################################################
@@ -316,14 +317,14 @@
# $Str .= &CreateLegend();
$Str .= '<table cellspacing="5">'."\n";
$Str .= '<tr>';
- $Str .= '<td align="center"><b>Sections</b></td>';
- $Str .= '<td align="center"><b>Student Data</b></td>';
- $Str .= '<td align="center"><b>Enrollment Status</b></td>';
- $Str .= '<td align="center"><b>Sequences and Folders</b></td>';
- $Str .= '<td align="center"><b>Output Format</b>'.
+ $Str .= '<td align="center"><b>'.&mt('Sections').'</b></td>';
+ $Str .= '<td align="center"><b>'.&mt('Student Data</b>').'</td>';
+ $Str .= '<td align="center"><b>'.&mt('Enrollment Status').'</b></td>';
+ $Str .= '<td align="center"><b>'.&mt('Sequences and Folders').'</b></td>';
+ $Str .= '<td align="center"><b>'.&mt('Output Format').'</b>'.
&Apache::loncommon::help_open_topic("Chart_Output_Formats").
'</td>';
- $Str .= '<td align="center"><b>Output Data</b>'.
+ $Str .= '<td align="center"><b>'.&mt('Output Data').'</b>'.
&Apache::loncommon::help_open_topic("Chart_Output_Data").
'</td>';
$Str .= '</tr>'."\n";
@@ -352,12 +353,14 @@
$Str .= &CreateAndParseOutputDataSelector();
$Str .= '</td></tr>'."\n";
$Str .= '</table>'."\n";
- $Str .= '<input type="submit" value="Generate Chart" />';
+ $Str .= '<input type="submit" name="Generate Chart" value="'.
+ &mt('Generate Chart').'" />';
$Str .= ' 'x5;
- $Str .= '<input type="submit" name="selectstudent" '.
- 'value="Select One Student" />';
+ $Str .= '<input type="submit" name="selectstudent" value="'.
+ &mt('Select One Student').'" />';
$Str .= ' 'x5;
- $Str .= '<input type="submit" name="ClearCache" value="Clear Caches" />';
+ $Str .= '<input type="submit" name="ClearCache" value="'.
+ &mt('Clear Caches').'" />';
$Str .= ' 'x5;
$Str .= '<br />';
return $Str;
@@ -458,7 +461,7 @@
foreach my $option (@OutputOptions) {
$Str .= "\n".' <option value="'.$option->{'value'}.'"';
$Str .= " selected " if ($option->{'value'} eq $selected);
- $Str .= ">".$option->{'name'}."<\/option>";
+ $Str .= ">".&mt($option->{'name'})."<\/option>";
}
$Str .= "\n</select>";
return $Str;
@@ -566,7 +569,7 @@
foreach my $option (@OutputDataOptions) {
$Str .= "\n".' <option value="'.$option->{'value'}.'"';
$Str .= " selected " if ($option->{'value'} eq $data);
- $Str .= ">".$option->{'name'}."<\/option>";
+ $Str .= ">".&mt($option->{'name'})."<\/option>";
}
$Str .= "\n</select>";
return $Str;