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 1 year 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 1 year ago #

    Thank you for your contribution!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.