Translation of Comment/Comments in ProBlog lists

Permalink Browser Info Environment
Congratulations for another great package.
I'm just working on ProBlog translation and customization, and finally find out why an little 's' was big problem for me. Maybe my solutions can help others.
As I found, in user_blog_list/view.php #88, and in Simple template, is 's' for 'comment' plurals. I created appropriate (missing) 't' string, and translation with poedit.
<strong><div id="content-sbBlog-commentcount"><?php echo $cCount;?> <?php  echo t('comment')?><?php  if($cCount!=1){echo t('s');}?> </div></strong>

But 's' is still on the page. Also, 's' is remaining on page when this part of code is commented out (or when the file view.php is deleted).
Finally I find out another missing ‘t’ string, in helpers/blogify.php #265
if($row['COUNT(cID)']!=1){$s = 's';}

I wrapped it with t(), and got translation.
if($row['COUNT(cID)']!=1){$s = t('s');} [/code]
But my Croatian language is asking more. 0 comment-count is plural. 1 comment-count is singular. 2 and more are plurals.
To resolve that I added to blogify.php ‘elseif’.
if ($row['COUNT(cID)']!=1){
   $s = t('s'); 
}
elseif ($row['COUNT(cID)']!=0){
   $s = '';
}


Best
Tom

Type: Discussion
Status: New
thuic
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.