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

raeburn raeburn@source.lon-capa.org
Tue, 08 Sep 2009 13:20:27 -0000


raeburn		Tue Sep  8 13:20:27 2009 EDT

  Modified files:              
    /loncom/interface	lonrequestcourse.pm 
  Log:
  - Wording differences where request is for a community not a course.
  
  
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.31 loncom/interface/lonrequestcourse.pm:1.32
--- loncom/interface/lonrequestcourse.pm:1.31	Tue Sep  8 13:05:00 2009
+++ loncom/interface/lonrequestcourse.pm	Tue Sep  8 13:20:27 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Request a course
 #
-# $Id: lonrequestcourse.pm,v 1.31 2009/09/08 13:05:00 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.32 2009/09/08 13:20:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1639,8 +1639,13 @@
     }
 
     if ($persontotal) {
+        my %lt = &Apache::lonlocal::texthash(
+            community => 'Requestor is automatically assigned Coordinator role.',
+            official => 'Requestor is automatically assigned Course Coordinator role.',
+        );
+        $lt{'unofficial'} = $lt{'official'};
         $output .= &Apache::lonhtmlcommon::row_headline().
-                   '<h3>'.&mt('Requestor is automatically assigned Course Coordinator role.').' '.&mt('Include other personnel?').'</h3>';
+                  '<h3>'.$lt{$crstype}.' '.&mt('Include other personnel?').'</h3>';
     }
     for (my $i=0; $i<$persontotal; $i++) { 
         my @linkargs = map { 'person_'.$i.'_'.$_ } (@items);
@@ -2210,14 +2215,18 @@
 
 sub courseinfo_form {
     my ($dom,$formname,$crstype,$next) = @_;
-    my $nodescr = &mt('You must provide a (brief) course description.');
+    my %lt = &Apache::lonlocal::texthash(
+                official => 'You must provide a (brief) course description.',
+                community => 'You must provide a (brief) community description.'
+             );
+    $lt{'unofficial'} = $lt{'official'};
     my $js_validate = <<"ENDJS";
 <script type="text/javascript">
 // <![CDATA['
 
 function validateForm() {
     if ((document.$formname.cdescr.value == "")  || (document.$formname.cdescr.value == "undefined")) {
-        alert('$nodescr');
+        alert('$lt{$crstype}');
         return;
     }
     nextPage(document.$formname,'$next');