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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 32 replies, has 2 voices.

Last updated by Dražen Duvnjak 1 year, 2 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
September 15, 2023 at 8:58 am #14401691

lobkeB

Dear Drazen,

First it looks like the issue was solved.
Unfortunately now all the other languages goes wrong. The body text of the email for all the other languages (NL, AT, DK, Fi, FR, NO, DE, PL, SE) is now in English instead of the translated version.

This is the situation for the 'review reminder' email.

For the 'Review for discount' email the situation has not changed. So the body text of the CH and BE email are both in English.

Best regards,

Lobke

September 15, 2023 at 11:53 am #14403017

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

let me further check with our 2nd tier and I will get back to you.

Regadrs,
Drazen

September 15, 2023 at 12:36 pm #14403227

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

our 2nd tier checked and you can try the next code, it fixes issues for some languages.

//WPML and Polylang integration
	if ( has_filter( 'wpml_translate_single_string' ) && defined( 'ICL_LANGUAGE_CODE' ) && ICL_LANGUAGE_CODE && !function_exists( 'pll_current_language' ) && $ivole_language === 'WPML' ) {
		global $sitepress;
		$wpmllangs = $sitepress->get_active_languages();
		if (ctype_upper($lang) && (ctype_upper($wpmllangs[$lang]["code"]))){
			$wpml_current_language = ( $lang );
	} else {
			$wpml_current_language = strtolower( $lang );
		}

but the thing is the author is adding WPML compatibility code from their side and is not part of our compatibility program, so the next steps and the best would be here to contact the plugin author, report this issue, and invite them to our GoGlobal program to work with our devs, will be glad to help. This needs further compatibility implementation and changes.

- https://wpml.org/documentation/support/go-global-program/

Regards,
Drazen