• Resolved 916VT

    (@vincent916)


    Hi there,

    Does anyone know how it’s possible to switch comments_popup_link parameters when switching languages using Polylang ?

    For example, I would have ‘Pas de commentaire’ in FR turning to ‘No comment’ in EN (and same for ‘1 …’ and ‘%…’ of course).

    Thanks a lot for helping !
    Vince

    https://wordpress.org/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter 916VT

    (@vincent916)

    Hi there,

    I finally managed to change it by using a new fr_FR.po.

    But I still can not change the comments.php template here :

    <?php
    printf( _nx( __( '1 Comment', 'my-theme' ), '%1$s Comments', get_comments_number(), 'comments title', 'my-theme' ),
    	number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    ?>

    I don’t find how I can make the %1$s Comments ready for translation… There is no string here and I did not find a way to have one yet.

    Anyone can help ?

    Thanks a lot

    Thread Starter 916VT

    (@vincent916)

    I got it right using that :

    $language = get_locale();
    if ($language == 'en_US') {
     ... do something ...
    }
    else {
     ... do something else ...
    }

    From = http://wordpress.org/support/topic/setting-different-footers-per-language?replies=4

    I hope do not need more than two languages because it seems to be quite dirty to multipliate these when I miss a string.

    If someone knows a better way, I’m glad to hear it 🙂

    Cheers

    Thread Starter 916VT

    (@vincent916)

    Another question regarding this plugin.

    We can not merge comments of differents languages from admin area.

    I found that : http://wordpress.org/support/topic/show-comments-for-both-languages-polylang?replies=4

    And the code on function.php and the wpml-comment-merging.php, the count if right (with 2 FR comments and 1 EN comment, it displays 3 Comments) but it displays only the one(s) from current language.

    I don’t want to use the Polylang plugin version provided by jongorrie because it’s not up to date.

    Is there anyway to make it works with the current version ?

    PS. Love this phugin but the comments management is making me crazy :$

    Thread Starter 916VT

    (@vincent916)

    Answer was here : http://wordpress.org/support/topic/merging-comments-from-different-languages?replies=3

    I hope everything will work now and maybe this will make someone life easier 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin Polylang – Comments’ is closed to new replies.