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.
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
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’.
Best
Tom
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.
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 |