Support » Plugin: LifterLMS » user language is ignored

  • Resolved Antonio Gallo

    (@antoniogallo)


    I’ve the main language of the website in English.
    If i set the user language in italian or spanish the settings is ignored.
    Is there a way to have LifterLMS to respect the users settings?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Natalie

    (@nrherron)

    Hi @antoniogallo

    I’m sorry you’re having this issue!

    I know for Spanish there are a couple extra steps you will need to take to get the site translated as the WordPress Language directory for Spanish is not above 90%. There are instructions on this here if you have not already added the .po files: https://lifterlms.com/docs/how-to-load-lifterlms-translation-files-or-language-packs/

    However, to have a WordPress site run in multiple languages you would want to use a plugin like PolyLang: https://wordpress.org/plugins/polylang/ to accomplish this.

    I apologize if I gave you more information than you needed here!

    Let us know if you have any further questions!

    Thanks and take care,

    I think you didn’t understood my question.
    The website default language is for example “A”.
    The user language is set to “A” by default but then he wants to change to “B”.
    There is an API to switch locale in WordPress since 4.7
    I partially solved by calling:

    
    switch_to_locale( $locale );
    unload_textdomain('lifterlms');
    LLMS()->locale($newlocale)
    

    At least this fixes the admin interface.

    Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @antoniogallo,

    I’m not seeing any issues with LifterLMS on the admin panel in other languages.

    If you’re still looking for some help here could you post a copy of your system report (https://lifterlms.com/docs/how-to-use-the-lifterlms-system-report/) to a service like paste bin and then upload a copy of the .po/.mo files you’re using to a service like drive or dropbox. With this I can setup an accurare recreation of what you’re encountering and see what we can do to help resolve it.

    Thanks,

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