• Samuel

    (@thestaticturtle)


    I’ve just set up the plugin and enabled infinite scroll.

    However, once the infinite scroll starts the text is no long translated, see the picture below:

    Is there a setting that I’ve missed, or is it known/intended behavior?

    Thanks,
    Samuel

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Samuel,

    For me in default French, it works.

    I have no explanation for this difference.

    Maybe you can install the plugin Query Monitor and see it that says anything about missing translations.

    Regards, Marcel

    Thread Starter Samuel

    (@thestaticturtle)

    Hi,

    Thanks for the reply. It appears that it’s linked to the logged-in user language, the site’s language is French, but my admin account is using English and if I change it, it’s in the correct language.

    The question now is: Which is supposed to be the correct one? And why isn’t the first one translated?

    Thanks again,
    Samuel

    Plugin Author Marcel Pol

    (@mpol)

    I see it now.

    It seems that the user defined language is used in the dashboard. On the frontend the site defined language is used.

    I assume that actions through AJAX are regarded as admin dashboard, that is why the dashboard language is used.

    I don’t know enough about this, I am sorry.

    What I do see, is that if this code is used:
    add_filter( 'pre_determine_locale', 'get_locale' );
    All pages, admin and frontend and ajax, are following the user defined language.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.