Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lang/en/moodleoverflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
$string['noguestpost'] = 'Sorry, guests are not allowed to post.';
$string['noguesttracking'] = 'Sorry, guests are not allowed to set tracking options.';
$string['noonecansubscribenow'] = 'Subscriptions are now disallowed';
$string['nootherforums'] = 'Unfortunately, there is no other Moodleoverflow where you can move it.';
$string['nopermissiontosubscribe'] = 'You do not have the permission to view subscribers';
$string['nopostmoodleoverflow'] = 'Sorry, you are not allowed to post to this forum.';
$string['noratemoodleoverflow'] = 'Sorry, you are not allowed to vote in this forum.';
Expand Down Expand Up @@ -421,6 +422,8 @@
$string['unsubscribelink'] = 'Unsubscribe from this forum: {$a}';
$string['updategrades'] = 'Update grades';
$string['upvotenotchangeable'] = 'Cannot upvote';
$string['userstats'] = 'User statistics';
$string['userstatscourse'] = 'User statistics of course: {$a}';
$string['userstatscourseactivity'] = 'Activity (coursewide)';
$string['userstatscoursereputation'] = 'Reputation (coursewide)';
$string['userstatsdownvotes'] = 'Received downvotes';
Expand All @@ -432,6 +435,7 @@
$string['votescalesolved'] = 'Reputation: Solution';
$string['votescaleupvote'] = 'Reputation: Upvote';
$string['votescalevote'] = 'Reputation: Vote.';
$string['wheremovetopic'] = 'Where do you want to move the topic "{$a}"?';
$string['wronginteraction'] = 'Something went wrong executing the interaction.';
$string['wrongparametercount'] = 'Exactly one parameter should be declared in the url. Please specify the one action you want to perform.';
$string['your_post_was_rejected'] = 'Your post was rejected.';
Expand Down
10 changes: 5 additions & 5 deletions templates/forum_list.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template mod_moodleoverflow/discussion_list
@template mod_moodleoverflow/forum_list
Moodleoverflow discussion_list template.
The purpose of this template is to render a list of discussions for the view.php.
Moodleoverflow forum_list template.
The purpose of this template is to render a list of forums for the view.php.
Example context (json):
{
Expand All @@ -29,7 +29,7 @@
<thead>
<th class ="header topic" scope="col">
{{#currentdiscussion}}
Where do you want to move the topic "{{currentdiscussion}}" ?
{{#str}} wheremovetopic, mod_moodleoverflow, {{currentdiscussion}} {{/str}}
{{/currentdiscussion}}
</th>
</thead>
Expand All @@ -52,7 +52,7 @@
{{/hasforums}}
{{^hasforums}}
<div class="alert alert-info">
Unfortunately, there is no other Moodleoverflow where you can move it.
{{#str}} nootherforums, mod_moodleoverflow {{/str}}
</div>
{{/hasforums}}
<br>
4 changes: 2 additions & 2 deletions userstats.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
// Print the page header.
$PAGE->set_url('/mod/moodleoverflow/userstats.php', ['id' => $cm->id,
'courseid' => $course->id, 'mid' => $moodleoverflow->id, ]);
$PAGE->set_title(format_string('User statistics'));
$PAGE->set_heading(format_string('User statistics of course: ' . $course->fullname));
$PAGE->set_title(get_string('userstats', 'moodleoverflow'));
$PAGE->set_heading(get_string('userstatscourse', 'moodleoverflow', $course->fullname));

// Output starts here.
echo $OUTPUT->header();
Expand Down
Loading