Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    How do you mean it “messes up the translation” – what happens exactly? I have the exact same code in almost every plugin that I have on the repo and there are no issues in any of them. If you can be more specific then I could try to help.

    Thanks,
    Hugh

    Thread Starter Flowrider

    (@florisjansen)

    When using another plugin to set the language your plugin does not pick up the language change and stays english (it is run earlier, maybe instead of “init” you can use “plugins_loaded” ?)

    When removing “$this->load_plugin_textdomain();” and only using the native wordpress function “load_plugin_textdomain” there is no problem.

    Example from WordPress: https://codex.wordpress.org/Function_Reference/load_plugin_textdomain

    regards,
    Floris

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    This is sorted out in v2.0 of the plugin 🙂

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

The topic ‘load_plugin_textdomain not correct’ is closed to new replies.