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

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Tue, 24 Jun 2008 16:17:20 -0000


bisitz		Tue Jun 24 12:17:20 2008 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  Localization:
  - Corrected wrong &mt() call
  - Added two missing &mt() calls
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.58 loncom/interface/lonuserutils.pm:1.59
--- loncom/interface/lonuserutils.pm:1.58	Thu Jun 19 13:39:29 2008
+++ loncom/interface/lonuserutils.pm	Tue Jun 24 12:17:05 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.58 2008/06/19 17:39:29 bisitz Exp $
+# $Id: lonuserutils.pm,v 1.59 2008/06/24 16:17:05 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -319,8 +319,8 @@
               &hidden_input('fileupload',$env{'form.fileupload'}).
               &hidden_input('upfiletype',$env{'form.upfiletype'}).
               &hidden_input('upfile_associate',$env{'form.upfile_associate'}));
-    $r->print('<br /><input type="button" value="Reverse Association" '.
-              'name="'.&mt('Reverse Association').'" '.
+    $r->print('<br /><input type="button" value="'.&mt('Reverse Association').'" '.
+              'name="Reverse Association" '.
               'onClick="javascript:this.form.associate.value=\'Reverse Association\';submit(this.form);" />');
     $r->print('<label><input type="checkbox" name="noFirstLine"'.$checked.'/>'.
               &mt('Ignore First Line').'</label>');
@@ -777,7 +777,7 @@
     }
     $Str .= '</div><div class="LC_clear_float_footer"><br /><input type="button"'.
               'onClick="javascript:verify(this.form,this.form.csec)" '.
-        'value="Update Users" />'."<br />\n";
+        'value="'.&mt('Update Users').'" />'."<br />\n";
     if ($context eq 'course') {
         $Str .= &mt('Note: for large courses, this operation may be time '.
                     'consuming');
@@ -2968,7 +2968,7 @@
     if ($mode eq 'upload') {
         my ($options,$cb_script,$coursepick) =
             &default_role_selector($context,1);
-        $secbox .= &Apache::lonhtmlcommon::row_title('role','LC_oddrow_value').
+        $secbox .= &Apache::lonhtmlcommon::row_title(&mt('role'),'LC_oddrow_value').
                    $options. &Apache::lonhtmlcommon::row_closure(1)."\n";
     }
     $secbox .= &Apache::lonhtmlcommon::row_title($rowtitle,'LC_oddrow_value')."\n";