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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Kor 1 year, 10 months ago.

Assisted by: Kor.

Author Posts
July 12, 2023 at 3:44 pm

kutluk

Hello, I'm having trouble with translations. I am using Ultimate Membership Pro plugin. The German and Italian membership options of the page are not translated. There was no problem before. Translations appear in WPML > String Translation section, but they are not reflected on the site. I request support.

July 12, 2023 at 4:22 pm
July 12, 2023 at 4:24 pm #14027113

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your reply.

Here is the ticket.

Sorry, we would need a site snapshot to continue with the troubleshooting. Or can we have your permission to create a snapshot on our own?

We usually recommend the free Plugin “Duplicator” for this purpose.

If you already know how Duplicator works ( https://wordpress.org/plugins/duplicator/),please skip the following steps and just send me the archive file you downloaded.

★ Duplicator Instructions hidden link https://wpml.org/faq/provide-supporters-copy-site/

If the file is too large (more than 400M), please use the Duplicator file filters to remove the cache, the wp-uploads directory, the media, and the archive files.

Send me the link to the archive file (you probably want to use Google Drive, Dropbox, or similar services, as the snapshot file will be quite big).

Your next reply will be private, which means that only you and I will be able to see it and have access to it.

You can paste the link to the file there.

Once the problem is resolved I will delete the local site.

July 18, 2023 at 9:38 am
July 19, 2023 at 5:36 pm #14067977

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

I've escalated this to our 2nd Tier Support and I will come back to you once I've feedback.

July 20, 2023 at 3:28 pm #14073969

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

I have feedback from our 2nd Tier Support.

Please insert the custom PHP code below into your theme's functions.php file.

add_filter ('ihc_public_subscription_plan_list_levels', 'translate_levels');
function translate_levels($levels){
    foreach ($levels as $key => $level){
	    do_action( 'wpml_register_single_string', 'ihc', "label" . '_level_'. $key, $level["label"] );
	    do_action( 'wpml_register_single_string', 'ihc', "description" . '_level_'. $key, $level["description"] );
	    do_action( 'wpml_register_single_string', 'ihc', "short_description" . '_level_'. $key, $level["short_description"] );
	    do_action( 'wpml_register_single_string', 'ihc', "price_text" . '_level_'. $key, $level["price_text"] );
	    do_action( 'wpml_register_single_string', 'ihc', "button_label" . '_level_'. $key, $level["button_label"] );

	    $levels[$key]["label"] = apply_filters( 'wpml_translate_single_string', $level["label"], 'ihc', "label" . '_level_'. $key);
	    $levels[$key]["description"] = apply_filters( 'wpml_translate_single_string', $level["description"], 'ihc', "description" . '_level_'. $key);
	    $levels[$key]["short_description"] = apply_filters( 'wpml_translate_single_string', $level["short_description"], 'ihc',"short_description" . '_level_'. $key);
	    $levels[$key]["price_text"] = apply_filters( 'wpml_translate_single_string', $level["price_text"], 'ihc', "price_text" . '_level_'. $key);
	    $levels[$key]["button_label"] = apply_filters( 'wpml_translate_single_string', $level["button_label"], 'ihc', "button_label" . '_level_'. $key);

    }
   return $levels;
}

Once you've done that, go to string translation and you'll see the strings with "ihc" text domain shows up as shown in this screenshot. Then, translate it.

Screenshot_197.png
July 23, 2023 at 4:02 pm #14084919

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Sorry for the double response.

I've received another feedback from our 2nd Tier Support and could you please contact the plugin author and ask him to join our go-global program (https://wpml.org/documentation/support/go-global-program/ ?

The topic ‘[Closed] Ultimate Membership Pro Translation not working’ is closed to new replies.