translate the email validation
-
Hi,
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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘translate the email validation’ is closed to new replies.