WordPress.org

Forums

WordPress Popular Posts
[resolved] Locale files not match template (4 posts)

  1. _rg_
    Member
    Posted 1 year ago #

    Hi, first of all wonderfull plugin very easy to use and customize. I´ve just installed, my site is on spanish laguage but some text on the front end do not appear translated. For example, on the posts list, i have TITLE - 0 comments - 1 view. It must be on spanish, so i edited the po file for es_ES and i notice it´s not updated. For example the string "comment" points to wordpress-popular-post.php line 1150, but there you don´t have a _e('comment') or __('comment'). You have this:

    $comments_text =sprintf( _n('1 comment', '%s comments', $comments, 'wordpress-popular-posts' ), number_format_i18n($comments));

    On the es_ES files (or any other lang file even the EN default one) those strings are not present. '1 comment' and '%s comments' and also 'views', '1 view' and so on are not translated.

    So, that´s why my texts are not translated and i´m sure they will not work (that part in particular) on any other laguage.

    If i can do something to help solve this, let me know.

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi _rg_,

    Your blog is set to use Spanish as the main language, correct? Otherwise the plugin won't load the es_ES PO file and will use English texts instead.

    As you probably guess, my main language is spanish so I always make sure to have the es_ES PO file updated.

  3. Ciro Urdaneta
    Member
    Posted 1 year ago #

    Hola Héctor
    A mi me funciona la traducción en el Escritorio y opciones del plugin pero cuando usa o el widget o shortcode no traduce la palabra "views"
    Saludos

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    How odd. Then there's something wrong either with the PO files and/or plugin's translation strings. I'll look it once WPP 3.0 is ready.

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