Commit 588063dc authored by Janice's avatar Janice
Browse files

Bug #1051497 Changed journal entry to use plural

Changed 'entry' and 'entries' to the proper plural mechanism instead of
 the original hard coded logic.
This also fixed the space between (number of entries)entry
for example '0entries' and '1entry'

Change-Id: I8906e6760d01e4e53bc07635de0d2852f677c4f7
Signed-off-by: default avatarJanice <>
parent 59345ec5
......@@ -96,6 +96,11 @@ $string['postedon'] = 'Posted on';
$string['postedbyon'] = 'Posted by %s on %s';
$string['posttitle'] = 'Title';
$string['posts'] = 'entries';
$string['nposts'] = array(
'1 entry',
'%s entries',
$string['publish'] = 'Publish';
$string['unpublish'] = 'Unpublish';
$string['publishfailed'] = 'An error occurred. Your entry was not published.';
......@@ -2,7 +2,7 @@
<tr class="{cycle name=rows values='r0,r1'}">
<td colspan="2">
<div class="fr">
<span class="entries"><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{$blog->postcount}{if $blog->postcount == 1}{str tag=post}{else}{str tag=posts}{/if}</a></span>
<span class="entries"><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{str tag=nposts arg1=$blog->postcount}</a></span>
<span class="newentry"><a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn">{str tag=addpost}</a></span>
<span class="btns2">
{if $blog->locked}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment