WordPress.org

Forums

WordPress Popular Posts
[resolved] How to translate "views" and "comments" into my own language? (6 posts)

  1. Vahid
    Member
    Posted 1 year ago #

    In version 2.3.2, I translated "views" and "comments" into my own language. But in this version, I don't know how to do this because it seems that the structure of wordpress-popular-posts.php has been changed in this version.

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

  2. Hector Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Vahid,

    Yep, I'm aware of that issue. A fix is ready, just haven't had the time to push an update. I'll post here the fixed files so you can download them.

  3. Vahid
    Member
    Posted 1 year ago #

    I found the solution myself. In wordpress-popular-posts.php, you should find the lines below and then translate view, views, comment, and comments into your own language. Am I right H├ęctor?
    _n('1 comment', '%s comments', $comments, 'wordpress-popular-posts'),

    and this line:
    _n('1 view per day', '%s views per day', intval($pageviews), 'wordpress-popular-posts'),

    Keep in mind that you should only translate those strings in bold shape.

  4. Hector Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Well, that's not the best approach - more like a hack actually - but yeah that'd work in the meanwhile until the next update is ready.

  5. pietro.montagna
    Member
    Posted 1 year ago #

    Many Thanks Vahid, on my blogs are working very well.

    I hope that Hector will fix this bug in the next update .
    ;)

  6. Hector Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    It's fixed already, it's just that I haven't had enough time to resume developing the plugin :P You can see the progress here. I really want to finish it so you all can try it, it's the best version of the plugin so far!

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