WordPress.org

Ready to get started?Download WordPress

Forums

Multisite User Registration Manager
Language problem (2 posts)

  1. strobech
    Member
    Posted 1 year ago #

    Hi,

    First of all, thanks for a great plugin!
    My issue is that there appears to be some problems with localization/language files in your plugin. I am using the WP plugin Codestyling Localization, and it comes up with this error message:

    Compatibility: Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won't be executed anymore. Please contact the Author about that.

    Is this something you could look into?

    Thanks
    Kristian

    http://wordpress.org/extend/plugins/multisite-user-registration-manager/

  2. zaantar
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    if you look into my code, you'll see a method of the Murm class:

    function load_textdomain() {
    	$plugin_dir = basename( dirname( __FILE__ ) );
    	load_plugin_textdomain( self::txd, false, $plugin_dir.'/languages' );
    }

    Ergo the correct WordPress function is called. However, I suspect that the Codestyling Localization plugin might think that load_textdomain is called because it just searches the murm.php file for this string and finds it.

    I'll rename my method to something else and you'll see if the warning disappears. Please confirm afterwards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic