Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter leemon

    (@leemon)

    I’ve fixed this loading the plugin text domain without specifying a folder.

    I have got the same message with my plugin: https://translate.wordpress.org/projects/wp-plugins/wp-cerber. What does it mean? I have several manually created translation files and all those files work fine with my plugin.
    How to get this strange online tool work? Who knows?

    Thread Starter leemon

    (@leemon)

    To get this to work with your plugin you have to:

    1) Change the “Text Domain: cerber” line in the wp-cerber.php file to “Text Domain: wp-cerber” (the slug of your plugin in the repository)

    2) Change the line:
    load_plugin_textdomain( ‘cerber’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );

    to:
    load_plugin_textdomain( ‘wp-cerber’ );

    3) Change the text domain in all translatable strings in your plugin. Example:

    __(‘This is a translatable string’, ‘cerber’) to: __(‘This is a translatable string’, ‘wp-cerber’)

    And that’s it, I think

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

The topic ‘This plugin is not properly prepared for localization’ is closed to new replies.