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

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Thu, 05 Jun 2008 00:15:25 -0000


bisitz		Wed Jun  4 20:15:25 2008 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  Localization:
  - Added missing &mt() calls
  - Corrected &mt() call
  - Changed user display in discussion post to LON-CAPA-standard (username:domain)
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.253 loncom/interface/lonfeedback.pm:1.254
--- loncom/interface/lonfeedback.pm:1.253	Tue Mar 11 22:45:07 2008
+++ loncom/interface/lonfeedback.pm	Wed Jun  4 20:15:24 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.253 2008/03/12 02:45:07 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.254 2008/06/05 00:15:24 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1008,7 +1008,7 @@
 					 $plainname,
 					 $contrib{$idx.':sendername'},
 					 $contrib{$idx.':senderdomain'}).' ('.
-					 $contrib{$idx.':sendername'}.' at '.
+					 $contrib{$idx.':sendername'}.':'.
 					 $contrib{$idx.':senderdomain'}.')';
 			    if ($contrib{$idx.':anonymous'}) {
 			        $sender.=' <font color="red"><b>['.$$anonhash{$key}.']</b></font> '.
@@ -1240,7 +1240,7 @@
                                 $$newitem{$idx} = 1;
                                 $$discussionitems[$idx] .= '
                                  <p><table border="0" width="100%">
-                                  <tr><td align="left"><font color="#FF0000"><b>NEW</b></font></td>';
+                                  <tr><td align="left"><font color="#FF0000"><b>'.&mt('NEW').'</b></font></td>';
                             } else {
                                 $$newitem{$idx} = 0;
                                 $$discussionitems[$idx] .= '
@@ -1802,7 +1802,7 @@
         'unread' => 'New posts only',
         'unmark' => 'Posts not marked read',
         'ondisp' => 'Once displayed',
-        'onmark' => 'Once marked not NEW ',
+        'onmark' => 'Once marked not NEW',
         'toggon' => 'Shown',
         'toggoff' => 'Not shown',
         'disa' => 'Posts displayed?',
@@ -1960,6 +1960,7 @@
        <td>$lt{$disctogg}</td>
        <td><label><input type="checkbox" name="disctogg" onClick="discdispChk('2')" />$lt{'chgt'} "$toggchange"</label></td>
 END
+    my $save = &mt('Save Changes');
     $r->print(&Apache::loncommon::end_data_table_row());
     $r->print(&Apache::loncommon::end_data_table());
     $r->print(<<END);
@@ -1971,7 +1972,7 @@
 <input type="hidden" name="$dispchgB" value=""/>
 <input type="hidden" name="$markchg" value=""/>
 <input type="hidden" name="$toggchg" value="" />
-<input type="button" name="sub" value="Save Changes" onClick="javascript:setDisp()" />
+<input type="button" name="sub" value="$save" onClick="javascript:setDisp()" />
 END
     if (exists($env{'form.group'})) {
         $r->print('<input type="hidden" name="group" value="'.$env{'form.group'}.'" />');