Skip to content Skip to sidebar

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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by Itamar 5 days, 12 hours ago.

Assisted by: Itamar.

Author Posts
February 25, 2026 at 7:38 pm #17852896

Vincent Dagenais

in wpml wordpress, i have a user custom field that when i do update_user_meta, it upadte the field with the proper value. but it does not assign the proper language. When i then do in string translation of wpml, i see the term not in the language i want. how can i say to wpml that this field is in a specific language

February 26, 2026 at 2:55 pm #17857168

Vincent Dagenais

this does not work to translate a user custom field

February 26, 2026 at 4:26 pm #17857447

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Along with the ticket you opened today for the same issue, I've escalated it to our second-tier supporters. When I have news from them, I'll update you here.

I appreciate your patience.
Itamar.

February 27, 2026 at 1:48 pm #17860155

Vincent Dagenais

I tried using this code

update_user_meta($user_id, $meta_slug, $value);

do_action(
'wpml_register_single_string',
$domain_key,
$wpml_key,
$value,
'fr'
);

do_action(
'wpml_add_string_translation',
$domain_key,
$wpml_key,
$language,
$value,
10 // translation status (10 = complete)
);

But even then I get the french register as english , and the english version is not sync with the french

I have also tried seitching language whit do_action('wpml_switch_language', 'fr'); and switch back to original language. And do the same thing for english. Nothing worked.

As you can see on the image, the french text was imported as english not french.

**** Another point ****
Also, I see that the translation manager is not capable in the ui to switch the language (as you see in the image) of the text string. It can select it, select the language but nothing works after that.

Screenshot 2026-02-27 at 8.00.59 AM.png
March 1, 2026 at 2:26 pm #17862758

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

In this ticket, we will continue with the issue you added:

**** Another point ****
Also, I see that the translation manager is not capable in the ui to switch the language (as you see in the image) of the text string. It can select it, select the language but nothing works after that.

Because your screenshot shows something on the Strings Translation screen, I assume you are referring to Strings Translation, not the translation manager. I also assume that you are trying to switch the language of the string, as explained in this guide: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/. If so, then it is weird that you can't switch the language. Therefore, I would like to check this problem directly on your site. If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

For the user custom field issue, please see my reply in this ticket:
https://wpml.org/forums/topic/i-want-to-translate-a-acf-custom-field-in-a-user-profile/

Regards,
Itamar.