• Resolved Yordan Soares

    (@yordansoares)


    Hello @jules-colle,

    I just translated the Readme project of this plugin into Spanish, but I noticed the Stable/Development projects aren’t loading. Looking inside the code I found some internationalization issues.

    First, you have not set a text domain in your plugin header comment. You need to add it since your plugin “Requires at least” is not set. If you decide to set a “Requires at least”, it needs to be at least 4.6, or you still will need to set your text domain. So, my recommendation is to set text domain in any way. You can learn more here: Text Domains.

    Since I’m talking about your plugin comment header, I also noticed that you have not set up a license. Setting a License header is mandatory for new plugins since April 2020. Consider adding one, preferably the same one as WordPress itself: “GPLv2 or later”. Please see Plugins must be compatible with the GNU General Public License to learn more.

    Your current plugin comment header in contact-form-7-conditional-fields.php is:

    /**
    * Plugin Name: Contact Form 7 Conditional Fields
    * Plugin URI: https://bdwm.be/
    * Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
    * Author: Jules Colle
    * Version: 1.9.14
    * Author URI: https://bdwm.be/
    */

    After adding the changes, it should look like this:

    /**
    * Plugin Name: Contact Form 7 Conditional Fields
    * Plugin URI: https://bdwm.be/
    * Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
    * Author: Jules Colle
    * Version: 1.9.14
    * Author URI: https://bdwm.be/
    * Text Domain: cf7-conditional-fields
    * License: GPL v2 or later
    * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    */

    Please note your text domain should be cf7-conditional-fields, because it needs to match with your plugin slug in WordPress Plugin Directory.

    The next step would be to change the slug you’re using in the strings you have internationalized from wpcf7cf to cf7-conditional-fields so that the WordPress translation system detects them, and we can translate them. Finally, you need to wrap the string non-internationalized and the plugin will be ready to be translated!

    I hope this helps you to improve your plugin increasing accessibility for non-English speaking users.

    By the way, if you have this plugin in a public repository like GitHub, I can give you a hand with these issues.

    Best regards,
    Yordan.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘About the internationalization of the plugin’ is closed to new replies.