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

raeburn raeburn at source.lon-capa.org
Mon Dec 17 09:41:07 EST 2012


raeburn		Mon Dec 17 14:41:07 2012 EDT

  Modified files:              
    /loncom/interface	lonpopulate.pm 
  Log:
  - Localization: move HTML mark-up out of &mt().
  
  
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.68 loncom/interface/lonpopulate.pm:1.69
--- loncom/interface/lonpopulate.pm:1.68	Tue Jan 11 22:09:50 2011
+++ loncom/interface/lonpopulate.pm	Mon Dec 17 14:41:06 2012
@@ -1,5 +1,5 @@
 # automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.68 2011/01/11 22:09:50 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.69 2012/12/17 14:41:06 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -692,10 +692,10 @@
       if (@ccs > 0 || @showdom > 0) {
           $r->print("<tr><td> </td></tr><tr><td>");
           if ($notifycount) {
-              $r->print(&mt("Uncheck the checkbox(es) to terminate notification for people currently informed of roster changes from the nightly enrollment update.<br />"));
+              $r->print(&mt('Uncheck the checkbox(es) to terminate notification for people currently informed of roster changes from the nightly enrollment update.').'<br />');
          }
          if ((@ccs + @showdom) > $notifycount) {
-             $r->print(&mt("Check the checkbox(es) to initiate notification for people not currently informed of roster changes from the nightly enrollment update.<br />"));
+             $r->print(&mt('Check the checkbox(es) to initiate notification for people not currently informed of roster changes from the nightly enrollment update.').'<br />));
          }
          $r->print(&mt("Click 'Go' to save your changes.")."
            <br/>
@@ -1327,8 +1327,9 @@
          'freg' => 'for registered students added via automated enrollment',
          'fnew' => 'for new students added when you update the class roster',
          'ifad'  => 'If automated adds are enabled, then when students are added their student roles will become active on the date set here for first access, and their roles will become inactive on the date set here for last access.  These default access dates will be overridden for specific students if the institutional classlist data supplied to the automatic enrollment process includes entries for the startdate and enddate fields for those students.',
-         'ncds'  => 'changing default start and end access dates will affect <b>future enrollments</b> and also <b>currently inactive</b> students (i.e., those for whom access will begin in the future).',
-         'tcha' => 'To change access dates for <b>currently active</b> students, use User Management -> "Manage Course Users" to display currently active students, then use the dropdown menu for "Action to take for selected users:" to choose "Change starting/ending dates", select the students to change, and click "Proceed".',
+    );
+    $lt{'ncds'} = &mt('changing default start and end access dates will affect [_1]future enrollments[_2] and also [_1]currently inactive[_2] students (i.e., those for whom access will begin in the future).','<b>','</b>');
+    $lt{'tcha'} = 'To change access dates for [_1]currently active[_2] students, use User Management -> "Manage Course Users" to display currently active students, then use the dropdown menu for "Action to take for selected users:" to choose "Change starting/ending dates", select the students to change, and click "Proceed".','<b>','</b>');
     );
     my $dateshow;
     if ( ($oldendshow eq '') && ($oldstartshow eq '') ) {
@@ -1782,7 +1783,7 @@
 		    }
 		    $response .= "</ul>\n";
 		} else {
-		    $response = &mt('Notification of enrollment changes was <b> not enabled</b> as no [_1]s were selected as recipients.<br/>',&Apache::lonnet::plaintext('cc'));
+		    $response = &mt('Notification of enrollment changes was [_1]not enabled[_2]> as no [_3]s were selected as recipients.''<b>','</b>',&Apache::lonnet::plaintext('cc')).'<br />';
 		}
 	    } else {
 		if ($currcount) {




More information about the LON-CAPA-cvs mailing list