Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by moatha 1 year, 7 months ago.

Assisted by: Kor.

Author Posts
July 18, 2023 at 4:31 pm

moatha

I have installed MC4WP on my website. just wondering how can I translate the form.

July 18, 2023 at 5:14 pm
July 19, 2023 at 7:53 pm #14068595

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

Just letting you know that I'm still checking on this and I will come back to you as quickly as possible.

July 20, 2023 at 7:42 am #14069743

moatha

Hello Kor,

Just in case you need to pass the .htpasswd login screen, please use the following:

Username: abrakadabra1873
Password: 86kE4mnXwb

Can you please put priority on this as the website is going live in few hours time?

July 20, 2023 at 9:45 am #14071029

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

It looks like you've moved the site and this disabled the WPML plugin. Do you have another staging site from your production site so that I could investigate this further?

I've tried to replicate this issue on our sandbox site here hidden link but everything works correctly there, I'm able to translate the signup form without issues.

Something is causing issues on your Website and we apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link
Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

Screenshot 2023-07-20 at 5.01.29 PM.jpg
July 20, 2023 at 1:37 pm
July 20, 2023 at 2:13 pm #14073233

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Generating a new sitekey would not remove that banner. Since you've moved the site to hidden link , you'll need to make a new staging site from your production site again before you can use the WPML Translation Management on your new staging site.

Then, in your new staging site, select "This is only a copy" as explained here https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/ . Let me know how it goes.

July 27, 2023 at 6:45 am #14107851

moatha

Thanks, Kor, and apology for the late response.

Let me deal with the generation of the new key for my staging later based on your suggestion.

For the issue of the MC4WP plugin translation, I found a workaround and I think I can have it this way for now.

For the translation of form, I created the shortcode below:

//get_mailchimp_newsletter_subscription
function get_mailchimp_newsletter_subscription($atts, $content = null) {
	
	$privacy_link = (isset($atts['privacy_policy_slug']) && $atts['privacy_policy_slug'] != '') ? home_url() . $atts['privacy_policy_slug'] : '#';

    return '<div class="subscription-form">
	<div class="tnp-field-email"><input type="email" name="EMAIL" placeholder="'.__('Enter your email address', 'domain_name').'" required="required" class="tnp-email"  /><button><span class="icon-send-1" aria-label="send icon"></span> </button></div>
	<div class="tnp-field tnp-field-privacy"><label><input type="checkbox" name="AGREE_TO_TERMS" required class="tnp-privacy"> <span>'.sprintf(__('By continuing, you accept the <a href="%s">privacy policy</a>.', 'domain_name'), $privacy_link).'</a></span></label></div>
	</div>';

}
add_shortcode('mailchimp_newsletter_subscription', 'get_mailchimp_newsletter_subscription');

Added the shortcode in the form field of the plugin (attached) and to translate the plugin's messages, I use wp_localize_script so it's translatable using WPML String Translation.

Many thanks again!

Screen Shot 2023-07-27 at 9.20.21 AM.png