Browse Source

[svn r10800] replace static text by language vars

Julian Prud'homme 18 years ago
parent
commit
86ecdc419a

+ 7 - 7
main/exercice/matching.class.php

@@ -135,7 +135,7 @@ class Matching extends Question {
 				<table cellpadding="0" cellspacing="5">
 					<tr bgcolor="#e6e6e6">
 						<td>
-							N�
+							'.get_lang('Number').'
 						</td>
 						<td>
 							'.get_lang('Answer').'
@@ -144,7 +144,7 @@ class Matching extends Question {
 							'.get_lang('MatchesTo').'
 						</td>
 						<td>
-							Weighting
+							'.get_lang('Weighting').'
 						</td>
 						<td width="0"></td>
 					</tr>';
@@ -171,8 +171,8 @@ class Matching extends Question {
 
 		$form -> addElement ('html', '</table></div></div>');
 		$group = array();
-		$group[] = FormValidator :: createElement ('submit', 'lessMatches', '-elem');
-		$group[] = FormValidator :: createElement ('submit', 'moreMatches', '+elem');
+		$group[] = FormValidator :: createElement ('submit', 'lessMatches', get_lang('DelElem'));
+		$group[] = FormValidator :: createElement ('submit', 'moreMatches', get_lang('AddElem'));
 		$form -> addGroup($group);
 
 
@@ -188,7 +188,7 @@ class Matching extends Question {
 				<table cellpadding="0" cellspacing="5">
 					<tr bgcolor="#e6e6e6">
 						<td>
-							N�
+							'.get_lang('Number').'						
 						</td>
 						<td>
 							'.get_lang('Answer').'
@@ -216,8 +216,8 @@ class Matching extends Question {
 
 		$form -> addElement ('html', '</table></div></div>');
 		$group = array();
-		$group[] = FormValidator :: createElement ('submit', 'lessOptions', '-elem');
-		$group[] = FormValidator :: createElement ('submit', 'moreOptions', '+elem');
+		$group[] = FormValidator :: createElement ('submit', 'lessOptions', get_lang('DelElem'));
+		$group[] = FormValidator :: createElement ('submit', 'moreOptions',get_lang('AddElem'));
 		$form -> addGroup($group);
 
 		$form -> setDefaults($defaults);

+ 2 - 2
main/exercice/multiple_answer.class.php

@@ -138,8 +138,8 @@ class MultipleAnswer extends Question {
 
 		$form -> addElement ('html', '</table></div></div>');
 		$group = array();
-		$group[] = FormValidator :: createElement ('submit', 'lessAnswers', '-answ');
-		$group[] = FormValidator :: createElement ('submit', 'moreAnswers', '+answ');
+		$group[] = FormValidator :: createElement ('submit', 'lessAnswers', get_lang('LessAnswer'));
+		$group[] = FormValidator :: createElement ('submit', 'moreAnswers', get_lang('PlusAnswer'));
 		$form -> addGroup($group);
 
 		$form -> setDefaults($defaults);

+ 2 - 2
main/exercice/question.class.php

@@ -22,7 +22,7 @@
 *	File containing the Question class.
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: question.class.php 10793 2007-01-19 09:17:15Z elixir_inter $
+* 	@version $Id: question.class.php 10800 2007-01-19 13:24:39Z elixir_julian $
 */
 
 
@@ -562,7 +562,7 @@ abstract class Question
 			if ($type == HOT_SPOT || $type == HOT_SPOT_ORDER) {
 				$TBL_ANSWERS = Database::get_course_table(TABLE_QUIZ_ANSWER);
 
-				$sql="INSERT INTO `$TBL_ANSWERS` (`id` , `question_id` , `answer` , `correct` , `comment` , `ponderation` , `position` , `hotspot_coordinates` , `hotspot_type` ) VALUES ('1', '$this->id', '', NULL , '', NULL , '1', '0;0|0|0', 'square')";
+				$sql="INSERT INTO $TBL_ANSWERS (`id` , `question_id` , `answer` , `correct` , `comment` , `ponderation` , `position` , `hotspot_coordinates` , `hotspot_type` ) VALUES ('1', '$this->id', '', NULL , '', NULL , '1', '0;0|0|0', 'square')";
 				api_sql_query($sql,__FILE__,__LINE__);
 			}
 		}

+ 2 - 2
main/exercice/unique_answer.class.php

@@ -143,8 +143,8 @@ class UniqueAnswer extends Question {
 
 		$form -> addElement ('html', '</table></div></div>');
 		$group = array();
-		$group[] = FormValidator :: createElement ('submit', 'lessAnswers', '-answ');
-		$group[] = FormValidator :: createElement ('submit', 'moreAnswers', '+answ');
+		$group[] = FormValidator :: createElement ('submit', 'lessAnswers', get_lang('LessAnswer'));
+		$group[] = FormValidator :: createElement ('submit', 'moreAnswers', get_lang('PlusAnswer'));
 		$form -> addGroup($group);
 
 		$defaults['correct'] = $correct;