I call mailpress this way:
<?php if (class_exists(‘MailPress’)) MailPress ::form(array(‘txtbutton’ => __(‘Go!’, ‘my-domain’), ‘jq’ => true )); ?>
It translates the input values (name, email and submit button), but does not translate the email validation (new_subscriber).
If I use get_locale() in theme it returns the correct value, but inside the plugin it fails, it always returns the configured language in WP_LANG. (Maybe because action.php includes wp-load.php)
I’m using polylang to switch language.
Somebody can help me?
- The topic ‘translate the email validation’ is closed to new replies.