MDL-11124 - Allowed 'There are no [modulename]' translations. This is currently
hardcoded and can be discovered through the user interface resonably easily. Merged from MOODLE_19_STABLE
This commit is contained in:
@@ -1428,6 +1428,7 @@ $string['thanks'] = 'Thanks';
|
||||
$string['theme'] = 'Theme';
|
||||
$string['themes'] = 'Themes';
|
||||
$string['themesaved'] = 'New theme saved';
|
||||
$string['thereareno'] = 'There are no $a in this course';
|
||||
$string['thischarset'] = 'UTF-8';
|
||||
$string['thisdirection'] = 'ltr';
|
||||
$string['thislanguage'] = 'English';
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
/// Get all the appropriate data
|
||||
|
||||
if (! $chats = get_all_instances_in_course('chat', $course)) {
|
||||
notice('There are no chats', "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strchats), "../../course/view.php?id=$course->id");
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
if (! $choices = get_all_instances_in_course("choice", $course)) {
|
||||
notice("There are no choices", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strchoices), "../../course/view.php?id=$course->id");
|
||||
}
|
||||
|
||||
if ( !empty($USER->id) and $allanswers = get_records("choice_answers", "userid", $USER->id)) {
|
||||
|
||||
+2
-1
@@ -41,6 +41,7 @@
|
||||
$strtopic = get_string('topic');
|
||||
$strname = get_string('name');
|
||||
$strdata = get_string('modulename','data');
|
||||
$strdataplural = get_string('modulenameplural','data');
|
||||
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $strdata, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
@@ -49,7 +50,7 @@
|
||||
print_header_simple($strdata, '', $navigation, '', '', true, "", navmenu($course));
|
||||
|
||||
if (! $datas = get_all_instances_in_course("data", $course)) {
|
||||
notice("There are no databases", "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle',$strdataplural) , "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
}
|
||||
|
||||
$timenow = time();
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
print_header_simple("$strexercises", "", $navigation, "", "", true, "", navmenu($course));
|
||||
|
||||
if (! $exercises = get_all_instances_in_course("exercise", $course)) {
|
||||
notice("There are no exercises", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strexercises), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -2796,7 +2796,7 @@ function exercise_print_teacher_table($course) {
|
||||
// print how many assessments each teacher has done in each exercise
|
||||
|
||||
if (! $exercises = get_all_instances_in_course("exercise", $course)) {
|
||||
notice("There are no exercises", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', get_string('modulenameplural', 'exercise')), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/// Get all the appropriate data
|
||||
|
||||
if (! $glossarys = get_all_instances_in_course("glossary", $course)) {
|
||||
notice("There are no glossaries", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strglossarys), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
@@ -128,4 +128,4 @@
|
||||
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
}
|
||||
}
|
||||
if (empty($hotpots)) {
|
||||
notice("There are no $strmodulenameplural", $next_url);
|
||||
notice(get_string('thereareno', 'moodle', $strmodulenameplural), $next_url);
|
||||
exit;
|
||||
}
|
||||
$hotpotids = implode(',', array_keys($hotpots));
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
if (! $journals = get_all_instances_in_course("journal", $course)) {
|
||||
notice("There are no journals", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strjournals), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
/// Get all the appropriate data
|
||||
|
||||
if (! $lamss = get_all_instances_in_course("lams", $course)) {
|
||||
notice("There are no lams", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strlamss) , "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
/// Get all the appropriate data
|
||||
|
||||
if (! $lessons = get_all_instances_in_course("lesson", $course)) {
|
||||
notice("There are no lessons", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strlessons), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
|
||||
// Get all the appropriate data
|
||||
if (!$quizzes = get_all_instances_in_course("quiz", $course)) {
|
||||
notice("There are no quizzes", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strquizzes), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"", "", true, "", navmenu($course));
|
||||
|
||||
if (! $resources = get_all_instances_in_course("resource", $course)) {
|
||||
notice("There are no resources", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strresources), "../../course/view.php?id=$course->id");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
}
|
||||
|
||||
if (! $scorms = get_all_instances_in_course("scorm", $course)) {
|
||||
notice("There are no scorms", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strscorms), "../../course/view.php?id=$course->id");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"", "", true, "", navmenu($course));
|
||||
|
||||
if (! $surveys = get_all_instances_in_course("survey", $course)) {
|
||||
notice("There are no surveys.", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strsurveys), "../../course/view.php?id=$course->id");
|
||||
}
|
||||
|
||||
if ($course->format == "weeks") {
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
/// Get all the appropriate data
|
||||
|
||||
if (! $wikis = get_all_instances_in_course("wiki", $course)) {
|
||||
notice("There are no wikis", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strwikis), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
print_header_simple("$strworkshops", "", $navigation, "", "", true, "", navmenu($course));
|
||||
|
||||
if (! $workshops = get_all_instances_in_course("workshop", $course)) {
|
||||
notice("There are no workshops", "../../course/view.php?id=$course->id");
|
||||
notice(get_string('thereareno', 'moodle', $strworkshops), "../../course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user