WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Vahid
    Member
    Posted 11 months 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. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months 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 11 months 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. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months 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 10 months ago #

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

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

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months 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!

Reply

You must log in to post.

About this Plugin

About this Topic