Skip to content

Commit

Permalink
MDL-61389 mod_forum: Descriptive aria-label for "Discuss this topic"
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Feb 17, 2020
1 parent 2c0b08c commit 904bc48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions mod/forum/lang/en/forum.php
Expand Up @@ -201,6 +201,7 @@
$string['discussionunpin'] = 'Unpin';
$string['discussionunsubscribed'] = 'You are now unsubscribed from this discussion.';
$string['discussthistopic'] = 'Discuss this topic';
$string['discusstopicname'] = 'Discuss the topic: {$a}';
$string['displayend'] = 'Display end';
$string['displayend_help'] = 'This setting specifies whether a forum post should be hidden after a certain date. Note that administrators can always view forum posts.';
$string['displayenddate'] = 'Display end: {$a}.';
Expand Down
5 changes: 4 additions & 1 deletion mod/forum/templates/social_discussion_list.mustache
Expand Up @@ -38,7 +38,10 @@
{{< mod_forum/forum_discussion_post }}
{{$footer}}
<div class="link text-right">
<a href="{{urls.discuss}}">{{#str}}discussthistopic, forum{{/str}}</a>&nbsp;({{#isreplyplural}}{{#str}} repliesmany, forum, {{discussionrepliescount}} {{/str}}{{/isreplyplural}}{{^isreplyplural}}{{#str}} repliesone, forum, {{discussionrepliescount}} {{/str}}{{/isreplyplural}}{{#discussionunreadscount}}
<a href="{{urls.discuss}}"
aria-label="{{#str}} discusstopicname, forum, {{subject}} {{/str}}">
{{#str}}discussthistopic, forum{{/str}}
</a>&nbsp;({{#isreplyplural}}{{#str}} repliesmany, forum, {{discussionrepliescount}} {{/str}}{{/isreplyplural}}{{^isreplyplural}}{{#str}} repliesone, forum, {{discussionrepliescount}} {{/str}}{{/isreplyplural}}{{#discussionunreadscount}}
<span class="sep">/</span>
<span class="unread"><a href="{{urls.discuss}}#unread">{{#isunreadplural}}{{#str}} unreadpostsnumber, mod_forum, {{discussionunreadscount}} {{/str}}{{/isunreadplural}}{{^isunreadplural}}{{#str}} unreadpostsone, mod_forum {{/str}}{{/isunreadplural}}</a></span>{{/discussionunreadscount}})
</div>
Expand Down

0 comments on commit 904bc48

Please sign in to comment.