Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
In your blog using the Blocksy theme, you are facing an issue where translation labels for links to the profile and log-out are not updating after switching languages, despite being translated in WPML > String Translation.
Solution:
We recommend adding the following XML code to WPML > Settings > Custom XML Configuration to register the dropdown fields for translation:
https://wpml.org/forums/topic/the-button-label-does-not-change-in-the-blog-when-languages-have-been-switched/#post-15839077

If you are using a child theme, adjust the first key name to

<key name="theme_mods_blocksy-child"></key>

. You can find the correct option name from the table wp_options in the database. After adding the code, go to WPML > String Translation and translate the strings there. Check the translation strings in the frontend.
For more details, refer to the documentation on translating strings in the wp_options table.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by Long Nguyen 6 months, 3 weeks ago.

Assisted by: Long Nguyen.

Author Posts
June 27, 2024 at 2:36 pm #15844816

grzegorzK-16

Hi!
Thank you very much! It works 🙂
I am sending the steps I did.

Searching through the wp_options table to find appropriate option names is unnecessary.

It is enough to use the Name column from WPML > String translation:

a) [theme_mods_blocksy-child][header_placements][sections][0][items][10][values][dropdown_items][2]label

b) [theme_mods_blocksy-child][header_placements][sections][0][items][10][values][dropdown_items][3]label

Using strings from the Name column I have modified your code to:

<wpml-config>
<admin-texts>
<key name="theme_mods_blocksy-child">
<key name="header_placements">
<key name="sections">
<key name="0">
<key name="items">
<key name="10">
<key name="values">
<key name="dropdown_items">
<key name="2">
<key name="label" />
</key>
<key name="3">
<key name="label" />
</key>
</key>
</key>
</key>
</key>
</key>
</key>
</key>
</key>
</admin-texts>
</wpml-config>

The above XML code I have pasted into WPML > Settings > Custom XML Configuration.

And now it works!
Grzegorz

PS:
Thank you very much for your help. So now I'm looking forward to solving the second problem:
https://wpml.org/forums/topic/registration-info-translation-issue/

(Especially since the solution I got from Blocksy stopped working....)

now it works.jpg
June 28, 2024 at 6:56 am #15849741

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Thanks for your confirmation. Feel free to contact us again if you have any questions.

Have a nice day.