Added two templates back in that define what string to use in the two affected blocks.
});
} else {
var nocoursesimgurl = root.attr('data-nocoursesimg');
- return Templates.render('core_course/no-courses', {
+ return Templates.render('block_recentlyaccessedcourses/no-courses', {
nocoursesimg: nocoursesimgurl
});
}
$string['privacy:metadata'] = 'The Recently accessed courses block does not store any personal data.';
$string['recentlyaccessedcourses:addinstance'] = 'Add a new Recently accessed courses block';
$string['recentlyaccessedcourses:myaddinstance'] = 'Add a new recently accessed courses block to Dashboard';
-
-// Deprecated since Moodle 3.7.
$string['nocourses'] = 'No recent courses';
\ No newline at end of file
+++ /dev/null
-nocourses,block_recentlyaccessedcourses
\ No newline at end of file
--- /dev/null
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+}}
+{{< core_course/no-courses}}
+ {{$nocoursestring}}
+ {{#str}} nocourses, block_recentlyaccessedcourses {{/str}}
+ {{/nocoursestring}}
+{{/ core_course/no-courses}}
});
} else {
var nocoursesimg = root.find(SELECTORS.STARRED_COURSES_REGION_VIEW).attr('data-nocoursesimg');
- return Templates.render('core_course/no-courses', {
+ return Templates.render('block_starredcourses/no-courses', {
nocoursesimg: nocoursesimg
});
}
$string['privacy:metadata'] = 'The starred courses block does not store any personal data.';
$string['starredcourses:addinstance'] = 'Add a new starred courses block';
$string['starredcourses:myaddinstance'] = 'Add a new starred courses block to Dashboard';
-
-// Deprecated since Moodle 3.7.
$string['nocourses'] = 'No starred courses';
\ No newline at end of file
+++ /dev/null
-nocourses,block_starredcourses
\ No newline at end of file
--- /dev/null
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+}}
+{{< core_course/no-courses}}
+ {{$nocoursestring}}
+ {{#str}} nocourses, block_starredcourses {{/str}}
+ {{/nocoursestring}}
+{{/ core_course/no-courses}}
<div class="text-xs-center text-center m-t-3" data-region="empty-message">
<img class="empty-placeholder-image-lg m-t-1"
src="{{nocoursesimg}}"
- alt="{{#str}} nocourses, core {{/str}}"
+ alt="{{$nocoursestring}}{{#str}} nocourses, core {{/str}}{{/nocoursestring}}"
role="presentation">
- <p class="text-muted mt-3">{{#str}} nocourses, core {{/str}}</p>
+ <p class="text-muted mt-3">{{$nocoursestring}}{{#str}} nocourses, core {{/str}}{{/nocoursestring}}</p>
</div>
\ No newline at end of file