• Resolved toto

    (@toto)


    Hello very good plugin.

    I there possible to use it with qTranslate X?

    In email templates to use syntax ‘[ :en]English Text [ :de]Deutsch[ :]’ or ‘< !–:en–>English Text<!–:–>< !–:de–>Deutsch<!–:–>

    Its possible to select user language by group if group name is English to send email only with [ :en] syntax.

    What do you thing?

    https://www.ads-software.com/plugins/email-subscribers/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter toto

    (@toto)

    There is useful code but, IT working!
    But not shore is ti correct for your plugin?

    add_filter( 'wp_mail', 'qtran_emails_filter' );
    function qtran_emails_filter( $args ) {
        global $q_config;
        $q_config['language'] = 'en'; // Set new
        	if (!empty($args['subject'])) {
        		if (function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
        			$args['subject'] = qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($args['subject']);
        		}
        	}
        	$new_wp_mail = array(
        		'to'          => $args['to'],
        		'subject'     => $args['subject'],
        		'message'     => $args['message'],
        		'headers'     => $args['headers'],
        		'attachments' => $args['attachments'],
        	);
    	return $new_wp_mail;
    }
    Thread Starter toto

    (@toto)

    Is it possible this page: “admin.php?page=es-compose&ac=add” – to work with qTranslate X. And to edit text with [:en]Example[:es]Example[:]

    Its very easy to make this plugin to send emails on different languages with qTranslate X. Its a just few lines?

    Thread Starter toto

    (@toto)

    There is a bug with scripts includes.

    Can you use:
    wp_register_script
    wp_enqueue_script

    So we need to use: wp_localize_script

    Plugin Author storeapps

    (@storeapps)

    Hi,

    We haven’t tested Email Subscribers with qTranslate X. So, we are not confident just by looking at the code if it will correctly work or not. However, it seems that you are translating only the subject and we think fields like message should also be translated.

    Also, with regards to wp_localize_script, it is in our roadmap and we will surely do it future releases of Email Subscribers.

    Plugin Author storeapps

    (@storeapps)

    Hi,

    Email Subscribers v3.1 is live now and it allows you to translate all the strings from the plugin using loco translate or gettext filter. It also includes scripts in the correct order (wp_register_script, wp_enqueue_script, wp_localize_script).

    Please update Email Subscribers to latest version (v3.1) and have a check with the functionality.

    mkost

    (@mkost)

    Excuse me that does mean that we can get MULTILANGUAGE subscibers for the different parts of our website? Is that correct?

    Plugin Author storeapps

    (@storeapps)

    Hi,

    No, it means that you can translate Email Subscribers plugin into any of your language.

    so no way to manage multilingual websites… sad ??

    Plugin Author storeapps

    (@storeapps)

    @fulviods,

    You can have different subscribers for your multilingual website provided it is a multisite setup & you have activated Email Subscribers on each of site.
    If it’s a single site, then you would have only 1 common list for all of your subscribers.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multilingual newsletter’ is closed to new replies.