Skip to content

Commit ff2c25c

Browse files
authored
Merge pull request #151 from lucaboesch/lastpostlocalization
"Last post" as language string fixes #150.
2 parents f263d67 + 002220e commit ff2c25c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: lang/en/moodleoverflow.php

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
// Strings for the view.php.
6161
$string['noviewdiscussionspermission'] = 'You do not have the permission to view discussions in this forum';
62+
$string['lastpost'] = 'Last post';
6263

6364
// Strings for the locallib.php.
6465
$string['addanewdiscussion'] = 'Add a new discussion topic';

Diff for: templates/discussions.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
</a>
128128
{{/userlink}}
129129
<div class="d-flex flex-wrap align-items-center">
130-
<span class="text-muted">Last post:</span>
130+
<span class="text-muted">{{#str}}lastpost, mod_moodleoverflow{{/str}}:</span>
131131
<div>
132132
<a href="{{{lastpostlink}}}" class="user-info d-flex px-2 py-1 align-items-center">
133133
{{# lastpostuserpicture }}

0 commit comments

Comments
 (0)