Browse Source

[svn r10957] add language vars, etc...

Julian Prud'homme 18 years ago
parent
commit
00f663cf6d

+ 2 - 1
main/exercice/admin.php

@@ -60,7 +60,7 @@
 *
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: admin.php 10918 2007-01-26 10:00:17Z elixir_inter $
+* 	@version $Id: admin.php 10957 2007-01-29 10:16:23Z elixir_julian $
 */
 
 
@@ -284,6 +284,7 @@ else
 }
 
 $interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices'));
+$interbreadcrumb[]=array("url" => "admin.php?exerciseId=".$objExercise->id,"name" => $objExercise->exercise);
 
 // shows a link to go back to the question pool
 if(!$exerciseId && $nameTools != get_lang('ExerciseManagement'))

+ 2 - 1
main/exercice/exercice_submit.php

@@ -35,7 +35,7 @@
 * 	the administrator
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: exercice_submit.php 10789 2007-01-18 19:18:27Z pcool $
+* 	@version $Id: exercice_submit.php 10957 2007-01-29 10:16:23Z elixir_julian $
 */
 
 
@@ -264,6 +264,7 @@ if(!$questionNum || $_POST['questionNum'])
 //$nameTools=get_lang('Exercice');
 
 $interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices'));
+$interbreadcrumb[]=array("url" => "#","name" => $exerciseTitle);
 
 if ($origin != 'learnpath') { //so we are not in learnpath tool
 

+ 19 - 19
main/newscorm/learnpath.class.php

@@ -5821,11 +5821,11 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 			unset($this->arrMenu);
 			
 			if($action == 'add')
-				$return .= '<p class="lp_title">Create the link:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("CreateTheLink").' :</p>' . "\n";
 			elseif($action == 'move')
-				$return .= '<p class="lp_title">Move the current link:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("MoveCurrentLink").' :</p>' . "\n";
 			else
-				$return .= '<p class="lp_title">Edit the current link:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("EditCurrentLink").' :</p>' . "\n";
 			
 			$return .= '<form method="POST">' . "\n";
 			
@@ -5833,7 +5833,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 				
 					$return .= "\t\t" . '<tr>' . "\n";
 					
-						$return .= "\t\t\t" . '<td class="label"><label for="idParent">Parent:</label></td>' . "\n";
+						$return .= "\t\t\t" . '<td class="label"><label for="idParent">'.get_lang("Parent").' :</label></td>' . "\n";
 						$return .= "\t\t\t" . '<td class="input">' . "\n";
 						
 							$return .= "\t\t\t\t" . '<select id="idParent" name="parent" onchange="load_cbo(this.value);" size="1">';
@@ -5872,12 +5872,12 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 									
 					$return .= "\t\t" . '<tr>' . "\n";
 						
-						$return .= "\t\t\t" . '<td class="label"><label for="idPosition">Position:</label></td>' . "\n";
+						$return .= "\t\t\t" . '<td class="label"><label for="idPosition">'.get_lang("Position").' :</label></td>' . "\n";
 						$return .= "\t\t\t" . '<td class="input">' . "\n";
 						
 							$return .= "\t\t\t\t" . '<select id="idPosition" name="previous" size="1">';
 							
-								$return .= "\t\t\t\t\t" . '<option class="top" value="0">First position</option>';
+								$return .= "\t\t\t\t\t" . '<option class="top" value="0">'.get_lang("FirstPosition").'</option>';
 								
 								for($i = 0; $i < count($arrLP); $i++)
 								{
@@ -5904,21 +5904,21 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 					{
 						$return .= "\t\t" . '<tr>' . "\n";
 							
-							$return .= "\t\t\t" . '<td class="label"><label for="idTitle">Title:</label></td>' . "\n";
+							$return .= "\t\t\t" . '<td class="label"><label for="idTitle">'.get_lang("Title").' :</label></td>' . "\n";
 							$return .= "\t\t\t" . '<td class="input"><input id="idTitle" name="title" type="text" value="' . $item_title . '" /></td>' . "\n";
 						
 						$return .= "\t\t" . '</tr>' . "\n";
 						
 						$return .= "\t\t" . '<tr>' . "\n";
 							
-							$return .= "\t\t\t" . '<td class="label"><label for="idDescription">Description:</label></td>' . "\n";
+							$return .= "\t\t\t" . '<td class="label"><label for="idDescription">'.get_lang("Description").' :</label></td>' . "\n";
 							$return .= "\t\t\t" . '<td class="input"><textarea id="idDescription" name="description" rows="4">' . $item_description . '</textarea></td>' . "\n";
 						
 						$return .= "\t\t" . '</tr>' . "\n";
 						
 						$return .= "\t\t" . '<tr>' . "\n";
 							
-							$return .= "\t\t\t" . '<td class="label"><label for="idURL">URL:</label></td>' . "\n";
+							$return .= "\t\t\t" . '<td class="label"><label for="idURL">'.get_lang("Url").' :</label></td>' . "\n";
 							$return .= "\t\t\t" . '<td class="input"><input' . (is_numeric($extra_info) ? ' disabled="disabled"' : '') . ' id="idURL" name="url" type="text" value="' . $item_url . '" /></td>' . "\n";
 						
 						$return .= "\t\t" . '</tr>' . "\n";
@@ -5926,7 +5926,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 					
 					$return .= "\t\t" . '<tr>' . "\n";
 						
-						$return .= "\t\t\t" . '<td colspan="2"><input class="button" name="submit_button" type="submit" value="OK" /></td>' . "\n";
+						$return .= "\t\t\t" . '<td colspan="2"><input class="button" name="submit_button" type="submit" value="'.get_lang("Ok").'" /></td>' . "\n";
 					
 					$return .= "\t\t" . '</tr>' . "\n";
 				
@@ -6032,11 +6032,11 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 			unset($this->arrMenu);
 			
 			if($action == 'add')
-				$return .= '<p class="lp_title">Create the student publication:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("student_publication").' :</p>' . "\n";
 			elseif($action == 'move')
-				$return .= '<p class="lp_title">Move the current student publication:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("MoveCurrentStudentPublication").' :</p>' . "\n";
 			else
-				$return .= '<p class="lp_title">Edit the current student publication:</p>' . "\n";
+				$return .= '<p class="lp_title">'.get_lang("EditCurrentStudentPublication").' :</p>' . "\n";
 			
 			$return .= '<form method="POST">' . "\n";
 			
@@ -6044,7 +6044,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 				
 					$return .= "\t\t" . '<tr>' . "\n";
 					
-						$return .= "\t\t\t" . '<td class="label"><label for="idParent">Parent:</label></td>' . "\n";
+						$return .= "\t\t\t" . '<td class="label"><label for="idParent">'.get_lang("Parent").' :</label></td>' . "\n";
 						$return .= "\t\t\t" . '<td class="input">' . "\n";
 						
 							$return .= "\t\t\t\t" . '<select id="idParent" name="parent" onchange="load_cbo(this.value);" size="1">';
@@ -6083,12 +6083,12 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 									
 					$return .= "\t\t" . '<tr>' . "\n";
 						
-						$return .= "\t\t\t" . '<td class="label"><label for="idPosition">Position:</label></td>' . "\n";
+						$return .= "\t\t\t" . '<td class="label"><label for="idPosition">'.get_lang("Position").' :</label></td>' . "\n";
 						$return .= "\t\t\t" . '<td class="input">' . "\n";
 						
 							$return .= "\t\t\t\t" . '<select id="idPosition" name="previous" size="1">';
 							
-								$return .= "\t\t\t\t\t" . '<option class="top" value="0">First position</option>';
+								$return .= "\t\t\t\t\t" . '<option class="top" value="0">'.get_lang("FirstPosition").'</option>';
 								
 								for($i = 0; $i < count($arrLP); $i++)
 								{
@@ -6115,7 +6115,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 					{
 						$return .= "\t\t" . '<tr>' . "\n";
 							
-							$return .= "\t\t\t" . '<td class="label"><label for="idTitle">Title:</label></td>' . "\n";
+							$return .= "\t\t\t" . '<td class="label"><label for="idTitle">'.get_lang("Title").' :</label></td>' . "\n";
 							$return .= "\t\t\t" . '<td class="input"><input id="idTitle" name="title" type="text" value="' . $item_title . '" /></td>' . "\n";
 						
 						$return .= "\t\t" . '</tr>' . "\n";
@@ -6123,7 +6123,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 					
 					$return .= "\t\t" . '<tr>' . "\n";
 						
-						$return .= "\t\t\t" . '<td colspan="2"><input class="button" name="submit_button" type="submit" value="OK" /></td>' . "\n";
+						$return .= "\t\t\t" . '<td colspan="2"><input class="button" name="submit_button" type="submit" value="'.get_lang("Ok").'" /></td>' . "\n";
 					
 					$return .= "\t\t" . '</tr>' . "\n";
 				
@@ -6570,7 +6570,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 							
 						$return .= '<td colspan="3">';
 						
-							$return .= '<input class="button" name="submit_button" type="submit" value="OK" /></td>' . "\n";
+							$return .= '<input class="button" name="submit_button" type="submit" value="'.get_lang("Ok").'" /></td>' . "\n";
 						
 						$return .= '</td>';
 							

+ 1 - 1
main/upload/form.scorm.php

@@ -32,7 +32,7 @@ function get_zip_files_in_garbage(){
  * Just display the form needed to upload a SCORM and give its settings
  */
 $nameTools = get_lang("FileUpload");
-$interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang(TOOL_LEARNPATH));
+$interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang("Doc"));
 Display::display_header($nameTools,"Path");
 //show the title
 api_display_tool_title(get_lang("learnpath")." - ".$nameTools.$add_group_to_title);

+ 2 - 1
main/upload/upload_ppt.php

@@ -12,6 +12,7 @@
 // 'inc.php' is automatically appended to the file name
 $language_file[] = "document"; //the document file is loaded because most of the upload vocab relates to the document tool
 $language_file[] = "learnpath";
+$language_file[] = "scormdocument";
 // global settings initialisation
 // also provides access to main api (inc/lib/main_api.lib.php)
 include("../inc/global.inc.php");
@@ -48,7 +49,7 @@ if(isset($_POST['convert'])){
 event_access_tool(TOOL_UPLOAD);
 
 
-$interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang(TOOL_LEARNPATH));
+$interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang("Doc"));
 $nameTools = get_lang("OogieConversionPowerPoint");
 Display :: display_header($nameTools);