Removed -lang- prefix in get_lang() calls

skala
Yannick Warnier 13 years ago
parent 7cb80464d7
commit c0b288c4a1
  1. 10
      main/exercice/multiple_answer.class.php
  2. 14
      main/exercice/question.class.php
  3. 8
      main/exercice/question_pool.php
  4. 6
      main/exercice/unique_answer.class.php

@ -94,13 +94,13 @@ class MultipleAnswer extends Question {
$defaults['weighting['.$i.']'] = float_format($answer -> weighting[$i], 1);
$defaults['correct['.$i.']'] = $answer -> correct[$i];
} else {
$defaults['answer[1]'] = get_lang('langDefaultMultipleAnswer2');
$defaults['comment[1]'] = get_lang('langDefaultMultipleComment2');
$defaults['answer[1]'] = get_lang('DefaultMultipleAnswer2');
$defaults['comment[1]'] = get_lang('DefaultMultipleComment2');
$defaults['correct[1]'] = true;
$defaults['weighting[1]'] = 10;
$defaults['answer[2]'] = get_lang('langDefaultMultipleAnswer1');
$defaults['comment[2]'] = get_lang('langDefaultMultipleComment1');
$defaults['answer[2]'] = get_lang('DefaultMultipleAnswer1');
$defaults['comment[2]'] = get_lang('DefaultMultipleComment1');
$defaults['correct[2]'] = false;
$defaults['weighting[2]'] = -5;
}
@ -223,4 +223,4 @@ class MultipleAnswer extends Question {
return $header;
}
}
endif;
endif;

@ -1178,7 +1178,7 @@ abstract class Question
');
$form -> addElement ('html','<div class="HideFCKEditor" id="HiddenFCKquestionDescription" >');
$form->add_html_editor('questionDescription', get_lang('langQuestionDescription'), false, false, $editor_config);
$form->add_html_editor('questionDescription', get_lang('QuestionDescription'), false, false, $editor_config);
$form -> addElement ('html','</div>');
// Advanced parameters
@ -1200,12 +1200,12 @@ abstract class Question
if (!isset($_GET['fromExercise'])) {
switch($answerType) {
case 1: $this->question = get_lang('langDefaultUniqueQuestion'); break;
case 2: $this->question = get_lang('langDefaultMultipleQuestion'); break;
case 3: $this->question = get_lang('langDefaultFillBlankQuestion'); break;
case 4: $this->question = get_lang('langDefaultMathingQuestion'); break;
case 5: $this->question = get_lang('langDefaultOpenQuestion'); break;
case 9: $this->question = get_lang('langDefaultMultipleQuestion'); break;
case 1: $this->question = get_lang('DefaultUniqueQuestion'); break;
case 2: $this->question = get_lang('DefaultMultipleQuestion'); break;
case 3: $this->question = get_lang('DefaultFillBlankQuestion'); break;
case 4: $this->question = get_lang('DefaultMathingQuestion'); break;
case 5: $this->question = get_lang('DefaultOpenQuestion'); break;
case 9: $this->question = get_lang('DefaultMultipleQuestion'); break;
}
}

@ -581,7 +581,7 @@ if ($fromExercise <= 0) { // NOT IN A TEST - IN THE COURSE
$questionTagA = 1; // we are in the course, question title can be a link to the question edit page
}
else { // NOT IN A TEST - NOT IN THE COURSE
$actionLabel = get_lang('langReuse');
$actionLabel = get_lang('Reuse');
$actionIcon1 = get_lang('MustBeInATest');
$actionIcon2 = "";
$questionTagA = 0; // we are not in this course, to messy if we link to the question in another course
@ -589,13 +589,13 @@ if ($fromExercise <= 0) { // NOT IN A TEST - IN THE COURSE
}
else { // IN A TEST - IN THE COURSE
if ($selected_course == api_get_course_int_id()) {
$actionLabel = get_lang('langReuse');
$actionLabel = get_lang('Reuse');
$actionIcon1 = "add";
$actionIcon2 = "";
$questionTagA = 1;
}
else { // IN A TEST - NOT IN THE COURSE
$actionLabel = get_lang('langReuse');
$actionLabel = get_lang('Reuse');
$actionIcon1 = "clone";
$actionIcon2 = "";
$questionTagA = 0;
@ -786,4 +786,4 @@ function get_question_type_for_question($in_selectedcourse, $in_questionid) {
function get_question_categorie_for_question($in_courseid, $in_questionid) {
$cat = Testcategory::getCategoryNameForQuestion($in_questionid, $in_courseid);
return $cat;
}
}

@ -170,9 +170,9 @@ class UniqueAnswer extends Question {
$temp_scenario['lp'.$i] = $lp;
$temp_scenario['destination'.$i]= $list_dest;
} else {
$defaults['answer[1]'] = get_lang('langDefaultUniqueAnswer1');
$defaults['answer[1]'] = get_lang('DefaultUniqueAnswer1');
$defaults['weighting[1]'] = 10;
$defaults['answer[2]'] = get_lang('langDefaultUniqueAnswer2');
$defaults['answer[2]'] = get_lang('DefaultUniqueAnswer2');
$defaults['weighting[2]'] = 0;
$temp_scenario['destination'.$i] = array('0');
@ -394,4 +394,4 @@ class UniqueAnswer extends Question {
}
}
}
endif;
endif;

Loading…
Cancel
Save