WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Cnange for correct translate comments number (2 posts)

  1. dimagsv
    Member
    Posted 12 months ago #

    Please change this line to correctly translate comments numbering to languages having more than one form of plurals:

    $stats .= "<span class=\"wpp-comments\">{$comments} " . __('comment(s)', 'wordpress-popular-posts') . "</span>";

    with new line:

    $stats .= "<span class=\"wpp-comments\">" . sprintf( _n( "%d comment", "%d comments", $comments, "wordpress-popular-posts" ), $comments ) . "</span>";

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 12 months ago #

    Thank you for your contribution!

    I'll include this patch on the next release of the WPP plugin.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.