Reply To: A question about comments_number() in loop-*.php

#3159
Ron
Keymaster

Is there any reason you forced code the english text in comments_number()

No reason at all. I just forgot to make those text translatable 🙂

I’ve changed this code:

<?php comments_number( ‘Comments’, ’1 Comment’, ‘% Comments’ ); ?>

To this:

<?php comments_number( __('Comments', 'frontier'), __('1 Comment', 'frontier'), __('% Comments', 'frontier') ); ?>

The only reason I used the code above instead of simply is so that when a post has no comments ‘Comments’ will be used instead of ‘No Comments’

Thanks,
Ron