Error on comments

Best WordPress theme for game news websites, game portals or whatever your preferred subject.
GK User
Sun Dec 30, 2012 9:19 am
Hi,

I noticed something interesting. If there is only a single comment below a post, the label '1 comment" appears in my language. If there are more than one comments, the label says "Two comments", "Three comments" etc. in English. :?

I'll send you a link in PM to check it. Could you please advise what's wrong?

Thanks
User avatar
Senior Boarder

GK User
Sun Dec 30, 2012 9:42 am
Update: Only "Two comments" appear in English, more than two and less than two are OK.

There was a minor mistake in the pot file, I corrected, but still wrong for 2 comments.
User avatar
Senior Boarder

GK User
Mon Dec 31, 2012 12:26 pm
Hello,

Did you receive my PM? It is still in my Outbox folder, not the Sent folder, and I don't know why.

Thanks
User avatar
Senior Boarder

GK User
Mon Dec 31, 2012 1:39 pm
Usually we don't work on Sundays ;) I'll send you a solution today :)
User avatar
Administrator

GK User
Mon Dec 31, 2012 3:11 pm
Please try to replace in the comments.php file fragment:
Code: Select all
<?php if(get_comments_number() == 1) : ?>
         <?php printf(__( 'One comment', GKTPLNAME), '<span>' . get_the_title() . '</span>'); ?>
      <?php elseif(get_comments_number() == 2) : ?>
         <?php printf(__( 'Two comments', GKTPLNAME), '<span>' . get_the_title() . '</span>'); ?>
      <?php elseif(get_comments_number() > 2) : ?>
         <?php printf(__( '%1$s comments', GKTPLNAME), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'); ?>
      <?php endif; ?>


to:

Code: Select all
<?php if(get_comments_number() == 1) : ?>
         <?php _e( 'One comment', GKTPLNAME); ?>
      <?php elseif(get_comments_number() >= 2) : ?>
         <?php printf(__( '%1$s comments', GKTPLNAME), number_format_i18n( get_comments_number() )); ?>
      <?php endif; ?>
User avatar
Administrator

GK User
Mon Dec 31, 2012 8:42 pm
dziudek wrote:Usually we don't work on Sundays ;) I'll send you a solution today :)


It was not a complain nor wanted to hurry you. :oops:
User avatar
Senior Boarder

GK User
Wed Jan 02, 2013 9:37 am
Victorius wrote:
dziudek wrote:Usually we don't work on Sundays ;) I'll send you a solution today :)


It was not a complain nor wanted to hurry you. :oops:


Don't worry - it was sent just for inform you :) Because sometimes I reply also on weekend ;)
User avatar
Administrator


cron