[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstudentassessment.pm /localize/localize de.pm

bisitz bisitz@source.lon-capa.org
Sun, 17 May 2009 23:13:55 -0000


bisitz		Sun May 17 23:13:55 2009 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
    /loncom/localize/localize	de.pm 
  Log:
  Optimized previous/next buttons:
  - Localization: Added missing &mt to button texts
  - Consistent wording: username:domain
  - Optimized buttons for the case that top/bottom of student list is reached:
      - Disabled corresponding button
      - Wording
  - Added phrases to de.pm
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.154 loncom/interface/statistics/lonstudentassessment.pm:1.155
--- loncom/interface/statistics/lonstudentassessment.pm:1.154	Sun May 17 22:55:42 2009
+++ loncom/interface/statistics/lonstudentassessment.pm	Sun May 17 23:13:49 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.154 2009/05/17 22:55:42 bisitz Exp $
+# $Id: lonstudentassessment.pm,v 1.155 2009/05/17 23:13:49 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -248,14 +248,14 @@
     if (defined($previous)) {
         my $sname = $previous->{'username'}.':'.$previous->{'domain'};
         $previousbutton .= '<input type="button" value="'.
-            'Previous Student ('.
-            $previous->{'username'}.'@'.$previous->{'domain'}.')'.
+            &mt('Previous Student ([_1])',
+            $previous->{'username'}.':'.$previous->{'domain'}).
             '" onclick="document.Statistics.SelectedStudent.value='.
             "'".$sname."'".';'.
             'document.Statistics.submit();" />';
     } else {
         $previousbutton .= '<input type="button" value="'.
-            'Previous student (none)'.'" />';
+            &mt('Previous Student').'" disabled="disabled" />';
     }
     #
     # Build the next student link
@@ -264,19 +264,19 @@
     if (defined($next)) {
         my $sname = $next->{'username'}.':'.$next->{'domain'};
         $nextbutton .= '<input type="button" value="'.
-            'Next Student ('.
-            $next->{'username'}.'@'.$next->{'domain'}.')'.
+            &mt('Next Student ([_1])',
+            $next->{'username'}.':'.$next->{'domain'}).
             '" onclick="document.Statistics.SelectedStudent.value='.
             "'".$sname."'".';'.
             'document.Statistics.submit();" />';
     } else {
         $nextbutton .= '<input type="button" value="'.
-            'Next student (none)'.'" />';
+            &mt('Next Student').'" disabled="disabled" />';
     }
     #
     # Build the 'all students' button
     my $all = '';
-    $all .= '<input type="button" value="All Students" '.
+    $all .= '<input type="button" value="'.&mt('All Students').'" '.
             '" onclick="document.Statistics.SelectedStudent.value='.
             "''".';'.'document.Statistics.submit();" />';
     $Str .= $previousbutton.('&nbsp;'x5).$all.('&nbsp;'x5).$nextbutton;
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.299 loncom/localize/localize/de.pm:1.300
--- loncom/localize/localize/de.pm:1.299	Sun May 17 22:49:48 2009
+++ loncom/localize/localize/de.pm	Sun May 17 23:13:55 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.299 2009/05/17 22:49:48 bisitz Exp $
+# $Id: de.pm,v 1.300 2009/05/17 23:13:55 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3522,6 +3522,18 @@
    'All Students'
 => 'Alle Studierenden',
 
+   'Previous Student'
+=> 'Vorherige/r Student/in',
+
+   'Previous Student ([_1])'
+=> 'Vorherige/r Student/in ([_1])',
+
+   'Next Student'
+=> 'Nächste/r Student/in',
+
+   'Next Student ([_1])'
+=> 'Nächste/r Student/in ([_1])',
+
    'Allowed filetypes: [_1]'
 => 'Akzeptierte Dateitypen: [_1]',