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

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


bisitz		Wed Jan 28 14:45:06 2009 EDT

  Modified files:              
    /loncom/localize/localize	de.pm 
    /loncom/interface	lonsimplepage.pm 
  Log:
  - Wrapped available group tools in data_table (web only)
    This  also corrects cut off links at the right border due to a new style
  - Added missing &mt() call to breadcrumbs call
  - Optimized &mt() call for display of no page info
  
  
  
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.193 loncom/localize/localize/de.pm:1.194
--- loncom/localize/localize/de.pm:1.193	Wed Jan 28 14:09:35 2009
+++ loncom/localize/localize/de.pm	Wed Jan 28 14:44:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.193 2009/01/28 14:09:35 bisitz Exp $
+# $Id: de.pm,v 1.194 2009/01/28 14:44:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -11148,9 +11148,6 @@
    'No page information provided.'
 => 'Keine Seiteninformationen angegeben.',
 
-   '<p>No page information provided.</p>'
-=> '<p>Keine Seiteninformationen angegeben.</p>',
-
    'Available functions'
 => 'Verfügbare Funktionen',
 
Index: loncom/interface/lonsimplepage.pm
diff -u loncom/interface/lonsimplepage.pm:1.63 loncom/interface/lonsimplepage.pm:1.64
--- loncom/interface/lonsimplepage.pm:1.63	Mon Dec 22 00:00:51 2008
+++ loncom/interface/lonsimplepage.pm	Wed Jan 28 14:45:06 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Simple Page Editor
 #
-# $Id: lonsimplepage.pm,v 1.63 2008/12/22 00:00:51 riegler Exp $
+# $Id: lonsimplepage.pm,v 1.64 2009/01/28 14:45:06 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -386,7 +386,7 @@
         if ($group ne '') {
             &display_group_links($r,$target,$group,'view',$refarg,%groupinfo);
         } else {
-	    $r->print(&mt('<p>No page information provided.</p>'));
+	    $r->print('<p>'.&mt('No page information provided.').'</p>');
         }
     }
     if ($env{'form.grade_target'} ne 'tex') {
@@ -429,16 +429,27 @@
         }
     }
     if (@available > 0) {
-        my $output = '<table cellspacing="4" cellpadding="4"><tr>';
+        my $output = '';
+        if ($target eq 'tex') {
+            $output = '<table cellspacing="4" cellpadding="4">';
+        } else {
+            $output = &Apache::loncommon::start_data_table();
+        }
         foreach my $tool (@available) {
             if ($target eq 'tex') {
-                $output .= '<td>'.&mt($menu{$tool}{text}).'</td>';
+                $output .= '<tr><td>'.&mt($menu{$tool}{text}).'</td></tr>';
             } else {
-                $output .= '<td><a href="'.$menu{$tool}{href}.'">'.
-                           &mt($menu{$tool}{text}).'</a></td>';
+                $output .= &Apache::loncommon::start_data_table_row()
+                          .'<td><a href="'.$menu{$tool}{href}.'">'
+                          .&mt($menu{$tool}{text}).'</a></td>'
+                          .&Apache::loncommon::end_data_table_row();
             }
         }
-        $output .= '</tr></table>';
+        if ($target eq 'tex') {
+            $output .= '</table>';
+        } else {
+            $output .= &Apache::loncommon::end_data_table();
+        }
         if ($target eq 'tex') {
             $r->print(&Apache::lonxml::xmlparse($r,'tex',&mt('Available functions').'<br /><br />'.$output));
         } else {
@@ -467,7 +478,7 @@
           text=>"Groups",
           title=>"Display Groups"},
         {href=>"/adm/$cdom/$cnum/$group/smppg?ref=grouplist",
-          text=>"Group: $description",
+          text=>&mt('Group:')." $description",
           title=>"Go to group's home page"},
         );
     my $output .= &Apache::lonhtmlcommon::breadcrumbs(&mt('Group page - [_1]',