Support » Plugin: WordPress Popular Posts » How to translate "views" and "comments" into my own language?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Héctor Cabrera


    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.



    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.

    Plugin Author Héctor Cabrera


    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.

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

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

    Plugin Author Héctor Cabrera


    It’s fixed already, it’s just that I haven’t had enough time to resume developing the plugin 😛 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to translate "views" and "comments" into my own language?’ is closed to new replies.