WordPress.org

Ready to get started?Download WordPress

Forums

MailPress
translate the email validation (3 posts)

  1. Marcelo Jorge Vieira
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/mailpress/

  2. RENAUT
    Member
    Plugin Author

    Posted 1 year ago #

    you have to design your own 'new_subscriber' template in your mp theme

    http://xref.mailpress.org/nav.html?mp-content/themes/_template/new_subscriber.php.source.html

  3. Marcelo Jorge Vieira
    Member
    Posted 1 year ago #

    Hi RENAUT,

    I guess it does not fix the problem, because my blog has 3 languages. How I can change the mailpress template for each language?

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic