By Print and Web Designer on Sunday, 11 May 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 504
Votes 0
The languages files specifies MOD_EASYBLOGLATESTBLOGGER_COUNT_PLURAL and MOD_EASYBLOGLATESTBLOGGER_COUNT_SINGULAR. The solution could be to add the string or modify modules/mod_easybloglatestblogger/tmpl/default.php as follows:
42,51c42
< <div class="mod-author-post small">
< <?php
< /* chrissy:Fix plural/singular internationalisation issue */
< if ($blogger->post_count != 1) {
< echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT_PLURAL', $blogger->post_count);
< } else {
< echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT_SINGULAR', $blogger->post_count);
< }
< ?>
< </div>
---
> <div class="mod-author-post small"><?php echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT', $blogger->post_count); ?></div>
53c44
< </div>
---
> </div>
Hello Myra,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, looking at the language file for this module, it does seem like we already have a translation for it,


MOD_EASYBLOGLATESTBLOGGER_COUNT_SINGULAR="%1s post"
MOD_EASYBLOGLATESTBLOGGER_COUNT_PLURAL="%1s posts"
·
Sunday, 11 May 2014 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
hi mark, it seems your modules/mod_easybloglatestblogger/tmpl/default.php file does not use both of the language strings above!
·
Thursday, 05 June 2014 03:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

Thanks Rene, yes, we have missed that. We will add this Singular and Plural check in mod_latestblogger in the next release.
·
Thursday, 05 June 2014 09:50
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Nik, thanks for adding this in next release..coud you add here in the meantime a dirty hack for this Singular and Plural check?
·
Saturday, 07 June 2014 01:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

Add this to the default.php file in the module.


<?php
if ($blogger->post_count != 1) {
echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT_PLURAL', $blogger->post_count);
} else {
echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT_SINGULAR', $blogger->post_count);
}
?>
·
Saturday, 07 June 2014 01:18
·
0 Likes
·
0 Votes
·
0 Comments
·
hi mark, wich line i have to replace with above code? thanks
·
Sunday, 08 June 2014 07:51
·
0 Likes
·
0 Votes
·
0 Comments
·
You need to replace the codes below,


<div class="mod-author-post small"><?php echo JText::sprintf('MOD_EASYBLOGLATESTBLOGGER_COUNT', $blogger->post_count);?></div>
·
Sunday, 08 June 2014 14:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post