WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Displays month in english (5 posts)

  1. Wbltn
    Member
    Posted 3 years ago #

    Hello

    First of all - your Plugin works like a charm. Thanks!

    I have a german WordPress installation but the month name on the stats-information show up in english. I inserted the Plugin in the sidebar like this:

    wpp_get_mostpopular('stats_author=1&limit=5&range="week"&order_by="views"&pages=0&stats_date=1&stats_date_format="j. F Y"&stats_comments=0&wpp_start="<ul class=wpp-post-list>"');

    What can I do that the names of the month will be displayed in german?

    Best regards,
    Markus

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

  2. jonathantorres
    Member
    Posted 2 years ago #

    I'm having the SAME issue, I'm working in a WordPress that is in spanish, but the month name of the Popular Post is being displayed in English.

    Any workarounds on this?

    Thanks!

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Does the plugin have it's own translation (.po, .pot or .mo) files?

  4. Wbltn
    Member
    Posted 2 years ago #

    I could fix it for my german issue. And I think this will also work for other languages:

    File: 'wordpress-popular-posts.php'
    Line: 682 and 684

    Change:
    date($instance['stats_tag']['date']['format']
    to
    date_i18n($instance['stats_tag']['date']['format']

    Read also http://codex.wordpress.org/Function_Reference/date_i18n

    Best,
    Markus

  5. jonathantorres
    Member
    Posted 2 years ago #

    Sweet! Now it works!

    Thanks Markus!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic