[LON-CAPA-cvs] cvs: loncom /html/adm/helper course.initialization.helper /interface lonhelper.pm /localize/localize de.pm zh.pm

bisitz bisitz@source.lon-capa.org
Mon, 15 Jun 2009 11:18:17 -0000


This is a MIME encoded message

--bisitz1245064697
Content-Type: text/plain

bisitz		Mon Jun 15 11:18:17 2009 EDT

  Modified files:              
    /loncom/html/adm/helper	course.initialization.helper 
    /loncom/interface	lonhelper.pm 
    /loncom/localize/localize	de.pm zh.pm 
  Log:
  Parametrization, last helper step:
  - Corrected unbalanced HTML tags (added </p> and </ul>)
  - Prepared previous button (currently not fully functional, see comments)
  - Added info style to info message about confirmation of correctness
  - Replaced button text "Finish Helper" by "Save" to stress that a click on the button is needed to save the settings
    (This was reported by CCs to be confusing)
  - Removed deprecated <center> tag
  
  Course Initialization, last helper step:
  - Consistent Wording: button text "Save"
  - Removed deprecated <center> tag; consistent button alignment
  
  - Adjusted and updated translation phrases and added some missing phrases
    (de.pm, zh.pm)
  
  
--bisitz1245064697
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20090615111817.txt"

Index: loncom/html/adm/helper/course.initialization.helper
diff -u loncom/html/adm/helper/course.initialization.helper:1.25 loncom/html/adm/helper/course.initialization.helper:1.26
--- loncom/html/adm/helper/course.initialization.helper:1.25	Wed Feb 25 16:39:59 2009
+++ loncom/html/adm/helper/course.initialization.helper	Mon Jun 15 11:18:06 2009
@@ -312,12 +312,12 @@
    </message>
   </state>
   <state name="FINAL" title="Completed">
-    <message>Your course is now set up. Please select the <b>Finish Course 
-      Initialization</b> button to re-intialize the course with your chosen
+    <message>Your course is now set up. Please select the <b>Save</b>
+      button to re-intialize the course with your chosen
       settings.
 
       <p>Remember that all of these settings can be modified in the <b>PARMS</b>
-         screen, by pushing the <b>Course Environment</b> button.</p>
+         screen (<b>Course Configuration</b>).</p>
       </message>
     <condition>
       <clause>$env{'course.'.$env{'request.course.id'}.'.clonedfrom'}</clause>
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.175 loncom/interface/lonhelper.pm:1.176
--- loncom/interface/lonhelper.pm:1.175	Fri Jun 12 17:58:22 2009
+++ loncom/interface/lonhelper.pm	Mon Jun 15 11:18:11 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.175 2009/06/12 17:58:22 bisitz Exp $
+# $Id: lonhelper.pm,v 1.176 2009/06/15 11:18:11 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3438,7 +3438,7 @@
 helper, going to a provided page.
 
 If the parameter "restartCourse" is true, this will override the buttons and
-will make a "Finish Helper" button that will re-initialize the course for them,
+will make a Save button (Finish Helper) that will re-initialize the course for them,
 which is useful for the Course Initialization helper so the users never see
 the old values taking effect.
 
@@ -3545,7 +3545,7 @@
 
     my $actionURL = $self->{EXIT_PAGE};
     my $targetURL = '';
-    my $finish=&mt('Finish');
+	my $finish=&mt('Save');
     if ($self->{'restartCourse'}) {
 	$actionURL = '/adm/roles';
 	$targetURL = '/adm/menu';
@@ -3557,20 +3557,19 @@
 	if ($env{'course.'.$env{'request.course.id'}.'.clonedfrom'}) {
 	    $targetURL = '/adm/parmset?overview=1';
 	}
-	my $finish=&mt('Finish Course Initialization');
     }
     my $previous = HTML::Entities::encode(&mt("Back"), '<>&"');
     my $next = HTML::Entities::encode(&mt("Next"), '<>&"');
     my $target = " target='loncapaclient'";
     if ($env{'environment.remote'} eq 'off') {  $target='';  }
-    $result .= "<center>\n" .
+    $result .= "<p>\n" .
 	"<form action='".$actionURL."' method='post' $target>\n" .
 	"<input type='button' onclick='history.go(-1)' value='$previous' />" .
 	"<input type='hidden' name='orgurl' value='$targetURL' />" .
 	"<input type='hidden' name='selectrole' value='1' />\n" .
 	"<input type='hidden' name='" . $env{'request.role'} . 
 	"' value='1' />\n<input type='submit' value='" . $finish . "' />\n" .
-	"</form></center>";
+	"</form></p>\n";
 
     return $result;
 }
@@ -3693,9 +3692,9 @@
             my $res = $navmap->getById($vars->{RESOURCE_ID});
             $symb = $res->symb();
             my $title = $res->compTitle();
-            $resourceString .= '<li>'.&mt('for the resource named [_1] part [_2]',"<b>$title</b>","<b>$part</b>").'</li>';
+            $resourceString .= '<li>'.&mt('for the resource named [_1], part [_2]',"<b>$title</b>","<b>$part</b>").'</li>';
         } else {
-            $resourceString .= '<li>'.&mt('for the resource ID [_1] (name unavailable) part [_2]','<b>'.$vars->{RESOURCE_ID}.'</b>',"<b>$part</b>").'</li>';
+            $resourceString .= '<li>'.&mt('for the resource ID [_1] (name unavailable), part [_2]','<b>'.$vars->{RESOURCE_ID}.'</b>',"<b>$part</b>").'</li>';
             &Apache::lonnet::logthis('Retrieval of resource title failed in lonhelper.pm - could not create navmap object for course.');
         }
 	if ($vars->{TARGETS} eq 'course') {
@@ -3728,7 +3727,10 @@
     $result .= "<input type='hidden' name='psprt' value='".
 	HTML::Entities::encode($part,"'<>&\"") . "' />\n";
 
-    $result .= '<p>'.&mt('Confirm that this information is correct, then click &quot;Finish Helper&quot; to complete setting the parameter.').'<ul>';
+    $result .= '<p class="LC_info">'
+              .&mt('Confirm that this information is correct, then click &quot;Save&quot; to complete setting the parameter.')
+              .'</p>'
+              .'<ul>';
     
     # Print the type of manipulation:
     my $extra;
@@ -3804,7 +3806,18 @@
         my $showdate = &Apache::lonlocal::locallocaltime($vars->{PARM_DATE});
 	$result .= '<li>'.&mt('to [_1] ([_2])',"<b>".$showdate."</b>",Apache::lonnavmaps::timeToHumanString($vars->{PARM_DATE}))."</li>\n";
     }
+
+	$result .= '</ul>';
  
+# FIXME: Make previous button working
+#        Found to be dysfunctional when used to change the selected student
+#   my $previous = HTML::Entities::encode(&mt("Back"), '<>&"');
+    my $buttons .= '<p><span class="LC_nobreak">'
+#                 .'<input name="back" type="button"'
+#                 .' value="'.$previous.'" onclick="history.go(-1)" />'
+                  .' <input type="submit" value="'.&mt('Save').'" />' # Finish Helper
+                  .'</span></p>'."\n";
+
     # print pres_marker
     $result .= "\n<input type='hidden' name='pres_marker'" .
         " value='$affectedResourceId&$parm_name&$level' />\n";
@@ -3814,7 +3827,7 @@
     $result .= "\n<input type='hidden' value='$symb' name='pssymb' />";
     $result .= "\n<input type='hidden' value='$paramlevel' name='parmlev' />";
 
-    $result .= "<br /><br /><center><input type='submit' value='".&mt('Finish Helper')."' /></center></form>\n";
+    $result .= $buttons;
 
     return $result;
 }
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.309 loncom/localize/localize/de.pm:1.310
--- loncom/localize/localize/de.pm:1.309	Thu Jun 11 16:48:38 2009
+++ loncom/localize/localize/de.pm	Mon Jun 15 11:18:17 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.309 2009/06/11 16:48:38 bisitz Exp $
+# $Id: de.pm,v 1.310 2009/06/15 11:18:17 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2245,7 +2245,7 @@
 => 'Aktualisiere Sektion oder bestimmten Benutzer',
 
    'Verify Selection'
-=> 'Überprüfe Auswahl',
+=> 'Auswahl überprüfen',
 
    'Welcome to the Assignment Parameter Helper'
 => 'Willkommen zum Hilfsprogramm für Übungs-Parameter',
@@ -4811,8 +4811,8 @@
    'Completed'
 => 'Ausgeführt',
 
-   'Confirm that this information is correct, then click &quot;Finish Helper&quot; to complete setting the parameter.'
-=> 'Bestätigen Sie, dass diese Informationen richtig sind. Klicken Sie dann auf &quot;Beende Hilfsprogramm&quot;, um das Einstellen der Parameter abzuschließen.',
+   'Confirm that this information is correct, then click &quot;Save&quot; to complete setting the parameter.'
+=> 'Bestätigen Sie, dass diese Informationen richtig sind. Klicken Sie dann auf &quot;Save&quot;, um das Einstellen der Parameter abzuschließen.',
 
    'Course ID or number'
 => 'Kurs-ID oder -Nummer',
@@ -4871,9 +4871,6 @@
    'Feedback Addresses for Course Content'
 => 'Feedback-Adressen für Kursinhalt',
 
-   'Finish Helper'
-=> 'Beende Hilfsprogramm',
-
    'HTML can be allowed or banned inside of course discussion.'
 => 'HTML kann innerhalb von Kursdiskussionen erlaubt oder verboten werden.',
 
@@ -5126,8 +5123,8 @@
    'What weight should be set for the selected problem?'
 => 'Auf welchen Wert soll die Gewichtung der ausgewählten Aufgabe gesetzt werden?',
 
-   'Your course is now set up. Please select the Finish Course Initialization button to re-intialize the course with your chosen settings. Remember that all of these settings can be modified in the PARMS screen, by pushing the Course Environment button.'
-=> 'Ihr Kurs ist nun eingerichtet. Bitte klicken Sie auf "Abschließen", um den Kurs mit den vorgenommenen Einstellungen neu zu initialisieren. All diese Einstellungen können im Menüpunkt "Kurs- und Ressourcen-Parameter", Unterpunkt "Kursumgebung" geändert werden.',
+   'Your course is now set up. Please select the Save button to re-intialize the course with your chosen settings. Remember that all of these settings can be modified in the PARMS screen (Course Configuration).'
+=> 'Ihr Kurs ist nun eingerichtet. Bitte klicken Sie auf "Speichern", um den Kurs mit den vorgenommenen Einstellungen neu zu initialisieren. All diese Einstellungen können im Menüpunkt "Kurs- und Ressourcen-Parameter", Unterpunkt "Kurs-Konfiguration" geändert werden.',
 
    '[_1] Filesystem Authenticated (with initial password [_2])'
 => '[_1] Authentifizierung über Dateisystem (mit Anfangspasswort [_2])',
@@ -5198,8 +5195,11 @@
    'for the map named [_1]'
 => 'für die Inhaltszusammenstellung mit der Bezeichnung [_1]',
 
-   'for the resource named [_1]'
-=> 'für die Ressource mit der Bezeichnung [_1]',
+   'for the resource named [_1], part [_2]'
+=> 'für die Ressource [_1], Aufgabenteil [_2]',
+
+   'for the resource ID [_1] (name unavailable), part [_2]'
+=> 'für die Ressource mit der ID [_1] (Name nicht verfügbar), Aufgabenteil [_2]',
 
    'from'
 => 'von',
Index: loncom/localize/localize/zh.pm
diff -u loncom/localize/localize/zh.pm:1.59 loncom/localize/localize/zh.pm:1.60
--- loncom/localize/localize/zh.pm:1.59	Thu Jun 11 16:48:38 2009
+++ loncom/localize/localize/zh.pm	Mon Jun 15 11:18:17 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Chinese Simplified Localization Lexicon
 #
-# $Id: zh.pm,v 1.59 2009/06/11 16:48:38 bisitz Exp $
+# $Id: zh.pm,v 1.60 2009/06/15 11:18:17 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4848,8 +4848,8 @@
    'Completed'
 => 'Ausgeführt',
 
-   'Confirm that this information is correct, then click &quot;Finish Helper&quot; to complete setting the parameter.'
-=> 'Bestätigen Sie, dass diese Informationen richtig sind. Klicken Sie dann auf &quot;Beende Hilfsprogramm&quot;, um das Einstellen der Parameter abzuschließen.',
+   'Confirm that this information is correct, then click &quot;Save&quot; to complete setting the parameter.'
+=> 'Bestätigen Sie, dass diese Informationen richtig sind. Klicken Sie dann auf &quot;Save&quot;, um das Einstellen der Parameter abzuschließen.',
 
    'Course ID or number'
 => 'Kurs-ID oder -Nummer',
@@ -4909,9 +4909,6 @@
    'Feedback Addresses for Course Content'
 => '课程内容的信息反馈地址',
 
-   'Finish Helper'
-=> '结束帮助程序',
-
    'HTML can be allowed or banned inside of course discussion.'
 => 'HTML kann innerhalb von Kursdiskussionen erlaubt oder verboten werden.',
 
@@ -5167,7 +5164,7 @@
    'What weight should be set for the selected problem?'
 => 'Auf welchen Wert soll die Gewichtung der ausgewählten Aufgabe gesetzt werden?',
 
-   'Your course is now set up. Please select the Finish Course Initialization button to re-intialize the course with your chosen settings. Remember that all of these settings can be modified in the PARMS screen, by pushing the Course Environment button.'
+   'Your course is now set up. Please select the Save button to re-intialize the course with your chosen settings. Remember that all of these settings can be modified in the PARMS screen (Course Configuration).'
 => 'Ihr Kurs ist nun eingerichtet. Bitte klicken Sie auf "Abschließen", um den Kurs mit den vorgenommenen Einstellungen neu zu initialisieren. All diese Einstellungen können im Menüpunkt "Kurs- und Ressourcen-Parameter", Unterpunkt "Kursumgebung" geändert werden.',
 
    '[_1] Filesystem Authenticated (with initial password [_2])'
@@ -5239,8 +5236,11 @@
    'for the map named [_1]'
 => 'für die Inhaltszusammenstellung mit der Bezeichnung [_1]',
 
-   'for the resource named [_1]'
-=> 'für die Ressource mit der Bezeichnung [_1]',
+   'for the resource named [_1], part [_2]'
+=> 'für die Ressource [_1], Aufgabenteil [_2]',
+
+   'for the resource ID [_1] (name unavailable), part [_2]'
+=> 'für die Ressource mit der ID [_1] (Name nicht verfügbar), Aufgabenteil [_2]',
 
    'from'
 => 'von',

--bisitz1245064697--