WordPress.org

Forums

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

  1. dimagsv
    Member
    Posted 2 years 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. Hector Cabrera
    Member
    Plugin Author

    Posted 2 years 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

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.