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

raeburn raeburn at source.lon-capa.org
Wed Jan 24 12:20:58 EST 2024


raeburn		Wed Jan 24 17:20:58 2024 EDT

  Modified files:              
    /loncom/interface	courseprefs.pm 
  Log:
  - Collective term used for items configurable for each instance of a tool
    in a course depends on whether tool defintion is in domain or in a course.
  
  
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.128 loncom/interface/courseprefs.pm:1.129
--- loncom/interface/courseprefs.pm:1.128	Wed Dec 13 22:12:17 2023
+++ loncom/interface/courseprefs.pm	Wed Jan 24 17:20:58 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set configuration settings for a course
 #
-# $Id: courseprefs.pm,v 1.128 2023/12/13 22:12:17 raeburn Exp $
+# $Id: courseprefs.pm,v 1.129 2024/01/24 17:20:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3285,7 +3285,13 @@
                             }
                         }
                     }
-                    $output .= '<li>'.&mt('Configurable in course:');
+                    $output .= '<li>';
+                    if ($context eq 'domain') {
+                        $output .= &mt('Configurable in course');
+                    } else {
+                        $output .= &mt('Configurable for each instance of tool in course');
+                    }
+                    $output .= ':';
                     my @possconfig = ('label','title','target','linktext','explanation','append');
                     my $numconfig = 0;
                     if (ref($changes->{$itemid}{'crsconf'}) eq 'HASH') {
@@ -6709,7 +6715,13 @@
                     %courseconfig = %{$settings->{$item}->{'crsconf'}};
                 }
             }
-            $datatable .= '<fieldset><legend>'.&mt('Configurable in course').'</legend><span class="LC_nobreak">';
+            $datatable .= '<fieldset><legend>';
+            if ($context eq 'domain') {
+                $datatable .= &mt('Configurable in course');
+            } else {
+                $datatable .= &mt('Configurable for each instance of tool in course');
+            }
+            $datatable .= '</legend><span class="LC_nobreak">';
             foreach my $item ('label','title','target','linktext','explanation','append') {
                 my $checked;
                 if ($courseconfig{$item}) {
@@ -6867,7 +6879,13 @@
         $datatable .= '</select></td>';
     }
     $datatable .= '</tr></table></fieldset>'.
-                  '<fieldset><legend>'.&mt('Configurable in course').'</legend><span class="LC_nobreak">';
+                  '<fieldset><legend>';
+    if ($context eq 'domain') {
+        $datatable .= &mt('Configurable in course');
+    } else {
+        $datatable .= &mt('Configurable for each instance of tool in course');
+    }
+    $datatable .= '</legend><span class="LC_nobreak">';
     foreach my $item ('label','title','target','linktext','explanation','append') {
         $datatable .= '<label>'.
                       '<input type="checkbox" name="ltitools_add_courseconfig" value="'.$item.'" checked="checked" />'.




More information about the LON-CAPA-cvs mailing list