--- loncom/interface/courseprefs.pm 2023/12/13 22:12:17 1.128 +++ loncom/interface/courseprefs.pm 2024/01/24 17:20:58 1.129 @@ -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 @@ sub store_ltitools { } } } - $output .= '
  • '.&mt('Configurable in course:'); + $output .= '
  • '; + 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 @@ sub print_ltitools { %courseconfig = %{$settings->{$item}->{'crsconf'}}; } } - $datatable .= '
    '.&mt('Configurable in course').''; + $datatable .= '
    '; + if ($context eq 'domain') { + $datatable .= &mt('Configurable in course'); + } else { + $datatable .= &mt('Configurable for each instance of tool in course'); + } + $datatable .= ''; foreach my $item ('label','title','target','linktext','explanation','append') { my $checked; if ($courseconfig{$item}) { @@ -6867,7 +6879,13 @@ sub print_ltitools { $datatable .= ''; } $datatable .= '
    '. - '
    '.&mt('Configurable in course').''; + '
    '; + if ($context eq 'domain') { + $datatable .= &mt('Configurable in course'); + } else { + $datatable .= &mt('Configurable for each instance of tool in course'); + } + $datatable .= ''; foreach my $item ('label','title','target','linktext','explanation','append') { $datatable .= '