Support » Plugin: Email Subscribers & Newsletters » How to Edit Form Subscriber’s Language

  • Resolved Mentik Yusmantara

    (@mentikyusmantara)


    I decide use our own language for form subscription, but the problem: i don’t like adding more plugin for that for only editing language.

    I try tricky modif, but is not working.

    email-subscribers/public/class-email-subscribers-public.php
    at
    public function enqueue_scripts() {

    /**
    * This function is provided for demonstration purposes only.
    *
    * An instance of this class should be passed to the run() function
    * defined in Email_Subscribers_Loader as all of the hooks are defined
    * in that particular class.
    *
    * The Email_Subscribers_Loader will then create the relationship
    * between the defined hooks and the functions defined in this
    * class.
    */

    wp_enqueue_script( $this->email_subscribers, plugin_dir_url( __FILE__ ) . ‘js/email-subscribers-public.js’, array( ‘jquery’ ), $this->version, false );

    $es_data = array(

    ‘messages’ => array(
    ‘es_empty_email_notice’ => __( ‘Please enter email address’, ’email-subscribers’ ),
    ‘es_rate_limit_notice’ => __( ‘You need to wait for sometime before subscribing again’, ’email-subscribers’ ),
    ‘es_single_optin_success_message’ => __( ‘Successfully Subscribed.’, ’email-subscribers’ ),
    ‘es_double_optin_success_message’ => __( ‘Your subscription was successful! Kindly check your mailbox and confirm your subscription. If you don\’t see the email within a few minutes, check the spam/junk folder.’, ’email-subscribers’ ),
    ‘es_email_exists_notice’ => __( ‘Email Address already exists!’, ’email-subscribers’ ),
    ‘es_unexpected_error_notice’ => __( ‘Oops.. Unexpected error occurred.’, ’email-subscribers’ ),
    ‘es_invalid_email_notice’ => __( ‘Invalid email address’, ’email-subscribers’ ),
    ‘es_try_later_notice’ => __( ‘Please try after some time’, ’email-subscribers’ )
    ),

    ‘es_ajax_url’ => admin_url( ‘admin-ajax.php’ ),

    );

    wp_localize_script( $this->email_subscribers, ‘es_data’, $es_data );

    }

    I realized complex plugin is not so important for creating simple form.

    Very thanks 🙂

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Malay Ladu

    (@malayladu)

    Hi Mentik,

    Let us know what changes you have done in this file?

    If you already changed the existing code, it will be overwritten by the updates. So, would be great to achieve this via separate plugin.

    Hope that helps.

    yes it overwritten…

    Hope can modify via email subscriber > settings > general
    I think it feature can increase more people like your plugin 🙂

    Thanks

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.