Plugin translation ready
-
Hi,
I don’t know if this could help, but I noticed there might be just a few lines of code missing at the end of your file contact-form-7-email-validation-check.php to make your plugin translation ready.
Here are the lines :
function my_plugin_load_plugin_textdomain() { load_plugin_textdomain( 'contact-form-7-email-validation', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); } add_action( 'plugins_loaded', 'my_plugin_load_plugin_textdomain' );
I added those lines myself and was able to use a po file to translate the validation error message.
It would be great if those lines were already in place when installing the plugin.
- The topic ‘Plugin translation ready’ is closed to new replies.