From: martin Date: Mon, 12 Aug 2002 17:54:13 +0000 (+0000) Subject: Language fixes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=98899fc040bf673fdedfe6f0e6505674aef44a39;p=moodle.git Language fixes --- diff --git a/mod/survey/details.php b/mod/survey/details.php index 11c0a3c7dd..5f5dfb2d2f 100644 --- a/mod/survey/details.php +++ b/mod/survey/details.php @@ -15,20 +15,27 @@ error("You can't modify this course!"); } - print_header("$course->shortname: Editing a survey", "$course->shortname: Editing a survey", - "wwwroot/course/view.php?id=$course->id\">$course->shortname -> - Editing a survey", ""); + $streditingasurvey = get_string("editingasurvey", "survey"); + + print_header("$course->shortname: $streditingasurvey", "$course->fullname", + "wwwroot/course/view.php?id=$course->id\">$course->shortname + -> $streditingasurvey"); + + if (!$form->name or !$form->template) { + error(get_string("filloutallfields"), $HTTP_REFERER); + } print_simple_box_start("center", "", "$THEME->cellheading"); ?>
- +

Name:

:

name) ?>

-

Introduction Text:

+

:


+
"; } else if ($question->type > 0) { // Choose one of a number + $strchoose = get_string("choose"); echo " - + - +

Survey Name:

:

Survey Type:

:

template); + helpbutton("surveys", get_string("helpsurveys", "survey")); } else { echo "No surveys to choose from!"; } @@ -30,6 +31,6 @@ - +"> diff --git a/mod/survey/save.php b/mod/survey/save.php index ab59327a01..5af81ef9c1 100644 --- a/mod/survey/save.php +++ b/mod/survey/save.php @@ -33,7 +33,7 @@ add_to_log($course->id, "survey", "submit", "view.php?id=$cm->id", "$survey->id"); if (survey_already_done($survey->id, $USER->id)) { - notice("You've already submitted this survey!", $HTTP_REFERER); + notice(get_string("alreadysubmitted", "survey"), $HTTP_REFERER); exit; } @@ -73,12 +73,15 @@ // Print the page and finish up. - print_header("$course->shortname: Survey sent", "$course->fullname", + $strsurveys = get_string("modulenameplural", "survey"); + $strsurveysaved = get_string("surveysaved", "survey"); + + print_header("$course->shortname: $strsurveysaved", "$course->fullname", "id>$course->shortname -> - id>Surveys -> $survey->name -> Survey sent", ""); + id>$strsurveys -> $survey->name -> $strsurveysaved", ""); - notice("Thanks for your answers, $USER->firstname.", "$CFG->wwwroot/course/view.php?id=$course->id"); + notice(get_string("thanksforanswers","survey", $USER->firstname), "$CFG->wwwroot/course/view.php?id=$course->id"); exit; diff --git a/mod/survey/view.php b/mod/survey/view.php index dd8903fafe..6e2f79e780 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -22,12 +22,17 @@ if ($course->category) { $navigation = "id\">$course->shortname ->"; } + + $strsurveys = get_string("modulenameplural", "survey"); + print_header("$course->shortname: $survey->name", "$course->fullname", - "$navigation id>Surveys -> $survey->name", "", "", true, + "$navigation id>$strsurveys -> $survey->name", "", "", true, update_module_icon($cm->id, $course->id)); if (isteacher($course->id)) { - echo "

id\">View all responses

"; + $numusers = survey_count_responses($survey->id); + echo "

id\">". + get_string("viewsurveyresponses", "survey", $numusers)."

"; } @@ -35,9 +40,9 @@ if (survey_already_done($survey->id, $USER->id)) { add_to_log($course->id, "survey", "view graph", "view.php?id=$cm->id", "$survey->id"); - print_heading("You've completed this survey. The graph below shows a summary of your results compared to the class averages."); + print_heading(get_string("surveycompleted", "survey")); $numusers = survey_count_responses($survey->id); - print_heading("$numusers people have completed the survey so far"); + print_heading(get_string("peoplecompleted", "survey", $numusers)); echo "
"; echo "wwwroot/mod/survey/graph.php?id=$cm->id&sid=$USER->id&type=student.png\">"; echo "
";