[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm /localize/localize de.pm

raeburn raeburn at source.lon-capa.org
Tue Feb 27 17:09:41 EST 2024


raeburn		Tue Feb 27 22:09:41 2024 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
    /loncom/localize/localize	de.pm 
  Log:
  - In PDF printout of resource that is not currently available, only append
    contents of $accessmsg if status is UNAVAILABLE, CLOSED or INVALID_ACCESS.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.584 loncom/homework/structuretags.pm:1.585
--- loncom/homework/structuretags.pm:1.584	Sat Jan 13 17:35:19 2024
+++ loncom/homework/structuretags.pm	Tue Feb 27 22:09:40 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.584 2024/01/13 17:35:19 raeburn Exp $
+# $Id: structuretags.pm,v 1.585 2024/02/27 22:09:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1652,10 +1652,13 @@
         $msg ='\noindent \vskip 1 mm '.
               $startminipage.'\vskip 0 mm';
         if ($status eq 'UNAVAILABLE') {
-            $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm ';
+            $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.');
+        } elsif ($status eq 'CLOSED' || $status eq 'INVALID_ACCESS') {
+            $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg";
         } else {
-            $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg \\vskip 0 mm ";
+            $msg.=&mt('Problem is not open to be viewed.');
         }
+        $msg .= " \\vskip 0 mm ";
     }
     return $msg;
 }
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.631 loncom/localize/localize/de.pm:1.632
--- loncom/localize/localize/de.pm:1.631	Tue Jan 17 17:38:21 2023
+++ loncom/localize/localize/de.pm	Tue Feb 27 22:09:41 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.631 2023/01/17 17:38:21 raeburn Exp $
+# $Id: de.pm,v 1.632 2024/02/27 22:09:41 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6911,6 +6911,9 @@
    'Problem Name'
 => 'Aufgabenbezeichnung',
 
+   'Problem is not open to be viewed.'
+=> 'Aufgabe nicht zur Betrachtung freigegeben.',
+
    'Problem is not open to be viewed. It' # ??? bridgetask.pm, structuretags.pm
 => 'Aufgabe nicht zur Betrachtung freigegeben. Es',
 




More information about the LON-CAPA-cvs mailing list