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 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Vincent Dagenais 2 days, 11 hours ago.

Assisted by: Shekhar Bhandari.

Author Posts
February 26, 2026 at 1:23 pm #17856629

Vincent Dagenais

Hi,
I'm trying to translate a custom user meta field from acf.

I did register the field in the wpml_translatable_user_meta_fields hook.

When i run my function i get the original language , switch to the desire language, update meta data, and switch back to the original language.

Both strings are registered in the post meta table, but they are not assign in wpml as translation.

Then i set the language text domain , like mentionned here https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Worst now the string dont even appear in string translation.

My end goal, is to import user meta multiple language and the proper string as proper language tag in wpml. Before, when i was importing only french language, wpml would set it as english.

February 27, 2026 at 1:08 pm #17859823

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