WordPress.org

Ready to get started?Download WordPress

Forums

WP-EMail
[resolved] load_plugin_textdomain bug (3 posts)

  1. zetoun17
    Member
    Posted 8 months ago #

    hello,
    a little error when loading translation file
    in wp-email.php replace
    load_plugin_textdomain('wp-email', false, 'wp-email');
    with
    load_plugin_textdomain('wp-email', false, dirname( plugin_basename( __FILE__ ) );

    http://wordpress.org/plugins/wp-email/

  2. Lester Chan
    Member
    Plugin Author

    Posted 8 months ago #

    Hmm that is weird, technically it should work because I am using that code for the rest of my plugins and it seems to work fine.

    The third argument is the relative path from WP_PLUGIN_DIR, so wp-email is correct unless you are putting it elsewhere?

    Having said that, the correct argument should be dirname( plugin_basename( __FILE__ ) so I made the fix https://github.com/lesterchan/wp-email/commit/b03a4575912e936371ecb9e5f75a68f47333d84c

    Just curious, any error you are getting?

  3. zetoun17
    Member
    Posted 8 months ago #

    Hi,
    no there was no errors, but the translation file was'nt loaded without the fix.

    Regards

Reply

You must log in to post.

About this Plugin

About this Topic