Support » Plugin: Polylang » [Plugin: Polylang] Incompatibility with plugin WP Mailto Links?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Chouby


    Well I found the bug… Not in Polylang but in WP Mailto Links. this plugin is ‘internationalized’ (ready for translation) but not ‘localized’ (translated), so probably no i18n test has been made and in fact things are in my opinion done the wrong way. Correcting this is quite simple. I suggest that you resquest a bug release to the plugin author. Waiting for it, here is the solution.

    line 87, replace:
    load_plugin_textdomain( $this->domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
    add_action( 'init', array( $this, 'init' ) );

    Then at line 100, add the following function:

    function init() {
    		load_plugin_textdomain( $this->domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );

    It should work after these modifications.

    Thank you Chouby, the solution doesn’t work in my case, maybe there is another interaction with unother plugin. I will follow your advise and request a bug release.

    @christian Could you test again with the new version 0.24?

    @chouby You’re right. It’s better to put the code in the init callback (so I did).

    Hi freelancephp, I tested your new version with one website and it seems to work. I’m not using WP Mailto Links any more, I switched to “Email Encoder Bundle”.

    Hello Christian, thank you for testing!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Polylang] Incompatibility with plugin WP Mailto Links?’ is closed to new replies.