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

bisitz bisitz@source.lon-capa.org
Wed, 28 Jan 2009 14:09:54 -0000


bisitz		Wed Jan 28 14:09:54 2009 EDT

  Modified files:              
    /loncom/localize/localize	de.pm 
    /loncom/interface	groupboards.pm 
  Log:
  - Wrapped list of group discussion boards in data_table
  - Optimized &mt() call
  
  Additional changes in de.pm:
  - Some updates related to 2.8.0 release
  
  
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.192 loncom/localize/localize/de.pm:1.193
--- loncom/localize/localize/de.pm:1.192	Tue Jan 27 15:59:26 2009
+++ loncom/localize/localize/de.pm	Wed Jan 28 14:09:35 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.192 2009/01/27 15:59:26 schafran Exp $
+# $Id: de.pm,v 1.193 2009/01/28 14:09:35 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -843,8 +843,8 @@
    'Answer submitted'
 => 'Antwort eingereicht',
 
-   '[_1] of [_2] tries used'
-=> '[_1] von [_2] Versuchen verbraucht',
+   '[_1] of [quant,_2,try,tries] used'
+=> '[_1] von [quant,_2,Versuch,Versuchen] verbraucht',
 
    'Processing'
 => 'Wird verarbeitet',
@@ -7184,7 +7184,7 @@
    'None of the selected students attempted the problem more than [_1] times.'
 => 'Keiner der ausgewählten Studenten hat für die Aufgabe mehr als [_1] Versuche benötigt.',
 
-   'None of the selected students attempted the problem.'
+   'None of the selected students have attempted the problem.'
 => 'Keiner der ausgewählten Studenten hat die Aufgabe bearbeitet.',
 
    'The analysis you have selected is not supported at this time.'
@@ -8186,7 +8186,7 @@
    'Material appears to be correct'
 => 'Das Material scheint korrekt zu sein',
 
-   'This will only retrieve the resource. If you want to retrieve the metadata, you will need to do that separately.'
+   'This will only retrieve the resource. If you want to retrieve the metadata you will need to do that separately.'
 => 'Die Aktion wird lediglich die Ressource selbst wiederherstellen. Möchten Sie auch eine alte Version der Metadaten zu dieser Ressource wiederherstellen, müssen Sie dies extra tun.',
 
    'is in this state due to author settings.'
@@ -8455,16 +8455,22 @@
 => 'Seitenränder festlegen',
 
    'How should each column be formatted?'
-=> 'Wie soll jede Spalte formatiert werden?', # n.t.
+=> 'Wie soll jede Spalte formatiert werden?',
+
+   'Width'
+=> 'Breite',
+
+   'Height'
+=> 'Höhe',
 
    'Width:'
-=> 'Breite:', # n.t.
+=> 'Breite:',
 
    'Height:'
-=> 'Höhe:', # n.t.
+=> 'Höhe:',
 
-   'Left Margin:'
-=> 'Linker Rand:', # n.t.
+   'Left Margin'
+=> 'Linker Rand',
 
    'Username and/or password could not be authenticated.'
 => 'Benutzerkennung und/oder Passwort konnten nicht erfolgreich authentifiziert werden.',
@@ -11067,8 +11073,11 @@
    'New Discussion Board'
 => 'Neues Diskussionsforum anlegen',
 
-   'There are currently no discussion boards in this [_1].'
-=> 'In dieser [_1] sind derzeit keine Diskussionsforen.',
+   'There are currently no discussion boards in this course.'
+=> 'In diesem Kurs sind derzeit keine Diskussionsforen.',
+
+   'There are currently no discussion boards in this group.'
+=> 'In dieser Gruppe sind derzeit keine Diskussionsforen.',
 
    'Discussion Board Title'
 => 'Titel des Diskussionsforums',
@@ -16604,10 +16613,7 @@
    ''
 => '',
 
-#End: redesigned menus
 
-   ''
-=> '',
 #SYNCMARKER
 );
 1;
Index: loncom/interface/groupboards.pm
diff -u loncom/interface/groupboards.pm:1.11 loncom/interface/groupboards.pm:1.12
--- loncom/interface/groupboards.pm:1.11	Wed May  2 01:33:48 2007
+++ loncom/interface/groupboards.pm	Wed Jan 28 14:09:54 2009
@@ -155,7 +155,12 @@
                   "\n".'</form><br />');
     }
     if (@{$groupboards} > 0) {
-        $r->print('<br />');
+        $r->print('<br />'
+                 .&Apache::loncommon::start_data_table()
+                 .&Apache::loncommon::start_data_table_header_row()
+                 .'<th>'.&mt('Discussion Boards').'</th>'
+                 .&Apache::loncommon::end_data_table_header_row()
+        );
         foreach my $board (@{$groupboards}) {
             my $board_url = $$boards{$board}{'url'};
             if ($board_url =~ /\?/) {
@@ -163,12 +168,20 @@
             } else {
                 $board_url .= '?group='.$group;
             }
-            $r->print('<a href="'.$board_url.'&amp;'.$refarg.'">'.
-                      $$boards{$board}{'title'}.'</a><br />');
+            $r->print(&Apache::loncommon::start_data_table_row()
+                     .'<td>'
+                     .'<a href="'.$board_url.'&amp;'.$refarg.'">'
+                     .$$boards{$board}{'title'}.'</a>'
+                     .'</td>'
+                     .&Apache::loncommon::end_data_table_row()
+            );
         }
+        $r->print(&Apache::loncommon::end_data_table());
     } else {
-        $r->print('<br />'.&mt('There are currently no discussion boards in this [_1].',
-                      $gpterm));
+        $r->print('<p class="LC_info">'
+                 .&mt('There are currently no discussion boards in this '.$gpterm.'.',)
+                 .'</p>'
+        );
     }
     $r->print(&Apache::loncommon::end_page());
     return OK;