[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm

bisitz bisitz at source.lon-capa.org
Tue Feb 11 13:04:48 EST 2014


bisitz		Tue Feb 11 18:04:48 2014 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - Internationalization:
      - Added missing &mt() call
      - Proper compilation of translation phrases
  - Standard styles
  
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.368 loncom/interface/lonfeedback.pm:1.369
--- loncom/interface/lonfeedback.pm:1.368	Fri Oct  4 03:04:45 2013
+++ loncom/interface/lonfeedback.pm	Tue Feb 11 18:04:47 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.368 2013/10/04 03:04:45 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.369 2014/02/11 18:04:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -562,7 +562,7 @@
                     my $postingfile;
                     my $postingfilename = $tempexport.'/'.$postfilename;
                     if ($postingfile = Apache::File->new('>'.$postingfilename)) {
-                        print $postingfile '<html><head><title>Discussion Post</title></head><body>'.
+                        print $postingfile '<html><head><title>'.&mt('Discussion Post').'</title></head><body>'.
                                            $imsitems{$alldiscussion{$post}}{'title'}.' '.
                                            $imsitems{$alldiscussion{$post}}{'sender'}.
                                            $imsitems{$alldiscussion{$post}}{'timestamp'}.'<br /><br />'.
@@ -702,13 +702,17 @@
                     open(OUTPUT, "zip -r $imszip *  2> /dev/null |");
                     close(OUTPUT);
                     chdir $cwd;
-                    $discussion .= &mt('Download the zip file from [_1]Discussion Posting Archive','<a href="'.$imszipfile.'">').'</a><br />';
+                    $discussion .= &mt('Download the zip file from [_1]Discussion Posting Archive[_2]',
+                                           '<a href="'.$imszipfile.'">','</a>').'<br />';
                     if ($copyresult) {
-                        $discussion .= &mt('The following errors occurred during export').' - <br />'.$copyresult;
+                        $discussion .= '<span class="LC_error">'.
+                                       &mt('The following errors occurred during export:').
+                                       '</span><br />'.$copyresult;
                     }
                 }
             } else {
-                $discussion .= '<br />'.&mt('Unfortunately you will not be able to retrieve an archive of the discussion posts at this time, because there was a problem creating a manifest file.').'<br />';
+                $discussion .= '<p class="LC_error">'.
+                               &mt('Unfortunately you will not be able to retrieve an archive of the discussion posts at this time, because there was a problem creating a manifest file.').'</p>';
             }
             return $discussion;
         }




More information about the LON-CAPA-cvs mailing list