Viewing 3 replies - 1 through 3 (of 3 total)
  • Is the version you are working on in trunk? Because I don’t see a text domain there.

    Instead of

    /*
    Plugin Name: 	Multisite Post Duplicator
    Plugin URI: 	http://www.wpmaz.uk
    Description:    Duplicate any individual page, post or custom post type from one site on your multisite network to another.
    Version: 		1.0.1
    Author: 		Mario Jaconelli
    Author URI:  	http://www.wpmaz.uk
    */
    

    it should be

    /*
    Plugin Name: 	Multisite Post Duplicator
    Plugin URI: 	http://www.wpmaz.uk
    Description:    Duplicate any individual page, post or custom post type from one site on your multisite network to another.
    Version: 		1.0.1
    Author: 		Mario Jaconelli
    Author URI:  	http://www.wpmaz.uk
    Text Domain: multisite-post-duplicator
    */
    
    • This reply was modified 9 years, 6 months ago by kjodle.
    Thread Starter MagicStick

    (@magicstick)

    Ah thanks for that. Didn’t relaise you had to declare the text domain in the header.

    Also, shouldn’t the text domain be ‘mpd’ as that is the name of the file where the header information is?

    The text-domain should match the plugin slug:

    The text domain is a unique identifier, which makes sure WordPress can distinguish between all loaded translations. This increases portability and plays better with already existing WordPress tools. The text domain must match the slug of the plugin. If your plugin is a single file called my-plugin.php or it is contained in a folder called my-plugin the domain name should be my-plugin. The text domain name must use dashes and not underscores.

    That’s from https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#text-domains

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

The topic ‘Help Preparing Plugin for Translation’ is closed to new replies.