Permalink
Browse files

MDL-26562

Signed-off-by: Vadim Dvorovenko <vadimon@mail.ru>
  • Loading branch information...
1 parent 2ddb941 commit a64c75d059a288be0253ae229ef3a737f90c985f @vadimonus vadimonus committed May 16, 2012
Showing with 4 additions and 6 deletions.
  1. +2 −2 mod/forum/lang/en/forum.php
  2. +2 −4 mod/forum/lib.php
View
4 mod/forum/lang/en/forum.php
@@ -280,8 +280,8 @@
$string['openmode0'] = 'No discussions, no replies';
$string['openmode1'] = 'No discussions, but replies are allowed';
$string['openmode2'] = 'Discussions and replies are allowed';
-$string['overviewnumpostssince'] = 'posts since last login';
-$string['overviewnumunread'] = 'total unread';
+$string['overviewnumpostssince'] = '{$a} posts since last login';
+$string['overviewnumunread'] = '{$a} total unread';
$string['page-mod-forum-x'] = 'Any forum module page';
$string['page-mod-forum-view'] = 'Forum module main page';
$string['page-mod-forum-discuss'] = 'Forum module discussion thread page';
View
6 mod/forum/lib.php
@@ -1288,8 +1288,6 @@ function forum_print_overview($courses,&$htmlarray) {
}
$strforum = get_string('modulename','forum');
- $strnumunread = get_string('overviewnumunread','forum');
- $strnumpostssince = get_string('overviewnumpostssince','forum');
foreach ($forums as $forum) {
$str = '';
@@ -1308,9 +1306,9 @@ function forum_print_overview($courses,&$htmlarray) {
$str .= '<div class="overview forum"><div class="name">'.$strforum.': <a title="'.$strforum.'" href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$forum->id.'">'.
$forum->name.'</a></div>';
$str .= '<div class="info"><span class="postsincelogin">';
- $str .= $count.' '.$strnumpostssince."</span>";
+ $str .= get_string('overviewnumpostssince', 'forum', $count)."</span>";
if (!empty($showunread)) {
- $str .= '<div class="unreadposts">'.$thisunread .' '.$strnumunread.'</div>';
+ $str .= '<div class="unreadposts">'.get_string('overviewnumunread', 'forum', $thisunread).'</div>';
}
$str .= '</div></div>';
}

0 comments on commit a64c75d

Please sign in to comment.