Diff for /loncom/interface/lonnavdisplay.pm between versions 1.47 and 1.48

version 1.47, 2025/05/26 19:55:09 version 1.48, 2025/05/27 23:35:38
Line 373  ENDCLOSE Line 373  ENDCLOSE
                         push(@names,&LONCAPA::unescape($name));                          push(@names,&LONCAPA::unescape($name));
                     }                      }
                 }                  }
                   my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
                   my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
                   my $has_supp = &Apache::lonnet::has_unhidden_suppfiles($cnum,$cdom);
                 if ($linkprot) {                  if ($linkprot) {
                     if ($currmatch) {                      if ($currmatch) {
                         $noresmsg = &mt('No main content available when accessed using the link you followed from [_1].',                          if ($has_supp) {
                                         $currmatch);                              $noresmsg = &mt('No main content available when accessed using the link you followed from [_1].',
                         if ($othermatches) {                                              $currmatch);
                             $noresmsg = '<br />'.                          } else {
                                         &mt('Main content may be available by following a different link from [_1].',                              $noresmsg = &mt('No content available when accessed using the link you followed from [_1].',
                                             $currmatch);                                              $currmatch);
                         }                          }
                           if ($othermatches) {
                               $noresmsg = '<br />';
                               if ($has_supp) {
                                   $noresmsg .= &mt('Main content may be available by following a different link from [_1].',
                                                    $currmatch);
                               } else {
                                   $noresmsg .= &mt('Content may be available by following a different link from [_1].',
                                                    $currmatch); 
                               }
                           }
                     } else {                      } else {
                         $noresmsg = &mt('No main content available using the link you followed.');                          if ($has_supp) {
                               $noresmsg = &mt('No main content available using the link you followed.');
                           } else {
                               $noresmsg = &mt('No content available using the link you followed.');
                           }
                     }                      }
                 } elsif (@names > 0) {                  } elsif (@names > 0) {
                     $noresmsg = &mt('No main content available from direct login to this course.');                      if ($has_supp) {
                           $noresmsg = &mt('No main content available from direct login to this course.');
                       } else {
                           $noresmsg = &mt('No content available from direct login to this course.');
                       }
                 }                  }
                 if (@names == 1) {                  if (@names == 1) {
                     $noresmsg .= '<br />'.                      $noresmsg .= '<br />';
                                  &mt('Main content is likely available by following links from [_1]',                      if ($has_supp) {
                                      $names[0]);                          $noresmsg .= &mt('Main content is likely available by following links from [_1]',
                                            $names[0]);
                       } else {
                           $noresmsg .= &mt('Content is likely available by following links from [_1]',
                                            $names[0]);
                       }
                 } elsif (@names > 1) {                  } elsif (@names > 1) {
                     $noresmsg .= '<br />'.                      $noresmsg .= '<br />';
                                  &mt('Main content is likely available by following links from the following: [_1]',                      if ($has_supp) {
                                      join(', ',@names));                          $noresmsg .= &mt('Main content is likely available by following links from the following: [_1]',
                                            join(', ',@names));
                       } else {
                           $noresmsg .= &mt('Content is likely available by following links from the following: [_1]',
                                            join(', ',@names));
                       }
                 }                  }
             }              }
         }          }

Removed from v.1.47  
changed lines
  Added in v.1.48


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>