[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm structuretags.pm /localize/localize newphrases.txt

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 16 Feb 2004 20:30:34 -0000


albertel		Mon Feb 16 15:30:34 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm lonhomework.pm 
    /loncom/localize/localize	newphrases.txt 
  Log:
  - localizing problem state setter
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.241 loncom/homework/structuretags.pm:1.242
--- loncom/homework/structuretags.pm:1.241	Mon Feb 16 15:20:01 2004
+++ loncom/homework/structuretags.pm	Mon Feb 16 15:30:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.241 2004/02/16 20:20:01 albertel Exp $
+# $Id: structuretags.pm,v 1.242 2004/02/16 20:30:34 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -242,20 +242,20 @@
 Problem Type:
 <select name='problemtype'>
   <option name=''></option>
-  ".&option('exam'   ,'problemtype')."Exam Problem</option>
-  ".&option('problem','problemtype')."Homework problem</option>
-  ".&option('survey' ,'problemtype')."Survey Question</option>
+  ".&option('exam'   ,'problemtype').&mt("Exam Problem")."</option>
+  ".&option('problem','problemtype').&mt("Homework problem")."</option>
+  ".&option('survey' ,'problemtype').&mt("Survey Question")."</option>
 </select>
 </nobr>
 <nobr>
 Feedback Mode:
 <select name='problemstatus'>
   <option value=''></option>
-  ".&option('yes','problemstatus')."Show Feedback</option>
-  ".&option('no', 'problemstatus')."Don\'t Show Feedback</option>
+  ".&option('yes','problemstatus').&mt("Show Feedback")."</option>
+  ".&option('no', 'problemstatus').&mt("Don't Show Feedback")."</option>
 </select>
-<input type='submit' name='changeproblemmode' value='Change' />
 </nobr>
+<input type='submit' name='changeproblemmode' value='".&mt("Change")."' />
 <hr />";
     my $numtoanalyze=$ENV{'form.numtoanalyze'};
     if (!$numtoanalyze) { $numtoanalyze=20; }
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.167 loncom/homework/lonhomework.pm:1.168
--- loncom/homework/lonhomework.pm:1.167	Mon Feb 16 14:19:31 2004
+++ loncom/homework/lonhomework.pm	Mon Feb 16 15:30:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.167 2004/02/16 19:19:31 albertel Exp $
+# $Id: lonhomework.pm,v 1.168 2004/02/16 20:30:34 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -205,11 +205,12 @@
 	    if ($ENV{'form.problemstate'} =~ /^CANNOT_ANSWER/) {
 		if ( ! ($ENV{'form.problemstate'} eq 'CANNOT_ANSWER_correct' &&
 			lc($Apache::lonhomework::problemstatus) eq 'no')) {
-		    return ('CANNOT_ANSWER','is in this state by royal decree.');
+		    return ('CANNOT_ANSWER',
+			    &mt('is in this state by royal decree.'));
 		}
 	    } else {
 		return ($ENV{'form.problemstate'},
-			'is in this state by royal decree.');
+			&mt('is in this state by royal decree.'));
 	    }
 	}
 	&Apache::lonxml::debug("in construction ignoring dates");
Index: loncom/localize/localize/newphrases.txt
diff -u loncom/localize/localize/newphrases.txt:1.33 loncom/localize/localize/newphrases.txt:1.34
--- loncom/localize/localize/newphrases.txt:1.33	Wed Feb 11 10:30:37 2004
+++ loncom/localize/localize/newphrases.txt	Mon Feb 16 15:30:34 2004
@@ -41,3 +41,15 @@
 Current Starting Date: [_1]
 Current Ending Date: not set
 Current Ending Date: [_1]
+Closed
+Answerable
+Open with full tries
+Open and correct
+Show Answer
+Exam Problem
+Homework problem
+Survey Question
+Show Feedback
+Don't Show Feedback
+Change
+is in this state by royal decree.
\ No newline at end of file