WordPress.org

Support

Support » Plugins and Hacks » Language problem

Language problem

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author Jan Štětina

    @zaantar

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Language problem’ is closed to new replies.