Browse Source

[svn r10253] Some static texts are now in language vars

Eric Marguin 18 years ago
parent
commit
d229b583ce

+ 2 - 2
main/newscorm/kevin_lp_add.php

@@ -157,12 +157,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 				
 				echo '<p class="lp_action">';
 				
-					echo '<img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" /><strong style="color:#999999">New chapter</strong>';
+					echo '<img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" /><strong style="color:#999999">'.get_lang("NewChapter").'</strong>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" /><strong style="color:#999999">New step</strong>';
+					echo '<img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" /><strong style="color:#999999">'.get_lang("NewStep").'</strong>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_add_item.php

@@ -187,12 +187,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 				
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="CNew step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_build.php

@@ -204,12 +204,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 				
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_edit_item.php

@@ -186,12 +186,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 				
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_edit_item_prereq.php

@@ -184,12 +184,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_move_item.php

@@ -187,12 +187,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 2 - 2
main/newscorm/kevin_lp_view_item.php

@@ -188,12 +188,12 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New chapter"><img align="left" alt="New chapter" src="img/lp_dokeos_chapter_add.png" title="New chapter" />New chapter</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewChapter").'"><img align="left" alt="'.get_lang("NewChapter").'" src="img/lp_dokeos_chapter_add.png" title="'.get_lang("NewChapter").'" />'.get_lang("NewChapter").'</a>';
 						
 				echo '</p>';
 				echo '<p class="lp_action">';
 				
-					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="New step"><img align="left" alt="New step" src="img/lp_dokeos_step_add.png" title="New step" />New step</a>';
+					echo '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("NewStep").'"><img align="left" alt="'.get_lang("NewStep").'" src="img/lp_dokeos_step_add.png" title="'.get_lang("NewStep").'" />'.get_lang("NewStep").'</a>';
 				
 				echo '</p>';
 				

+ 4 - 10
main/newscorm/learnpath.class.php

@@ -5896,21 +5896,18 @@ class learnpath {
 				case 'chapter':
 					
 					$lang = get_lang('TitleManipulateChapter');
-					/* temp */ $lang = 'Manipulate the current chapter';
 					break;
 					
 				case 'dokeos_module':
 				case 'module':
 					
 					$lang = get_lang('TitleManipulateModule');
-					/* temp */ $lang = 'Manipulate the current module';
 					
 					break;
 					
 				case TOOL_DOCUMENT:
 					
 					$lang = get_lang('TitleManipulateDocument');
-					/* temp */ $lang = 'Manipulate the current document';
 					
 					break;
 				
@@ -5918,34 +5915,31 @@ class learnpath {
 				case 'link':
 					
 					$lang = get_lang('TitleManipulateLink');
-					/* temp */ $lang = 'Manipulate the current link';
 					
 					break;
 				
 				case TOOL_QUIZ:
 					
 					$lang = get_lang('TitleManipulateQuiz');
-					/* temp */ $lang = 'Manipulate the current exercise';
 					
 					break;
 				
 				case TOOL_STUDENTPUBLICATION:
 					
 					$lang = get_lang('TitleManipulateStudentPublication');
-					/* temp */ $lang = 'Manipulate the current student publication';
 					
 					break;
 			}
 			
 			$return .= '<p class="lp_title">' . $lang . '</p>';
 			
-			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=edit_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="Edit the current item"><img alt="Edit the current item" src="../img/edit.gif" title="Edit the current item" /> Edit</a>';
-			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=move_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="Move the current item"><img alt="Move the current item" src="../img/move.gif" title="Move the current item" /> Move</a>';
+			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=edit_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="Edit the current item"><img alt="Edit the current item" src="../img/edit.gif" title="Edit the current item" /> '.get_lang("Edit").'</a>';
+			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=move_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="Move the current item"><img alt="Move the current item" src="../img/move.gif" title="Move the current item" /> '.get_lang("Move").'</a>';
 			
 			if($item_type != 'chapter' && $item_type != 'dokeos_chapter' && $item_type != 'module' && $item_type != 'dokeos_module')
-				$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=edit_item_prereq&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="Edit the prerequisites of the current item"><img alt="Edit the prerequisites of the current item" src="../img/edit.gif" title="Edit the prerequisites of the current item" /> Prerequisites</a>';
+				$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=edit_item_prereq&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" title="'.get_lang("langEditPrerequisites").'"><img alt="'.get_lang("langEditPrerequisites").'" src="../img/edit.gif" title="'.get_lang("langEditPrerequisites").'" /> '.get_lang("Prerequisites").'</a>';
 			
-			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=delete_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" onclick="return confirmation(\'' . $row['title'] . '\');" title="Delete the current item"><img alt="Delete the current item" src="../img/delete.gif" title="Delete the current item" /> Delete</a>';
+			$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=delete_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" onclick="return confirmation(\'' . $row['title'] . '\');" title="Delete the current item"><img alt="Delete the current item" src="../img/delete.gif" title="Delete the current item" /> '.get_lang("Delete").'</a>';
 		
 		
 		// get the audiorecorder. Use of ob_* functions since there are echos in the file