Skip Navigation

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

Problem:
The client was trying to translate the footer content from Chinese to English using WPML, but after correcting the source and target language settings in Strings, the page did not update.
Solution:
We recommended the following steps to resolve the issue:
1. Delete the existing widget translation from WPML >> String Translation page.
2. Add the following XML in WPML >> Settings > Custom XML Configuration section:

<wpml-config><admin-texts><key name="widget_text"></key><key name="*"><key name="title"></key><key name="text"></key></key></admin-texts></wpml-config>

3. Re-save the Widgets from Appearance >> Widgets page.
4. Go to the WPML >> String Translation page, search for the widget strings, add the translation, and it should now show the correct translation at the frontend.
Additionally, ensure to choose the default language using the admin language switcher when editing the widgets from the Appearance >> Widgets page.

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 0 replies, has 0 voices.

Last updated by chun-haoH 1 week, 2 days ago.

Assisted by: Noman.

Author Posts
February 15, 2025 at 6:52 pm #16709539

chun-haoH

Background of the issue:
I am trying to translate the content in the footer of my site from Chinese to English using WPML. Initially, the original language setting was incorrect, causing the footer to be translated into English when I switched to the Chinese webpage, and vice versa. I have since corrected the source and target language settings in Strings.

Symptoms:
After correctly setting the source and target languages in Strings, my page did not update.

Questions:
Why is the page not updating after correcting the language settings in Strings?
How can I ensure the footer content is translated correctly from Chinese to English?

February 16, 2025 at 10:21 am #16710352

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Sorry for the delay due to high workload and the reply time will be shorter from now. To take a closer look at footer translation issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

February 17, 2025 at 6:43 am #16711715

chun-haoH

Hello, Noman,

May I know the current progress in resolving the issue?
I’m not trying to rush; I’m simply concerned about the current status.

Could you also let me know what caused the problem and how it can be resolved?
Is there anything I can learn to prevent similar issues in the future and fix them myself if they occur?

Additionally, I checked the backend settings. How can I configure the backend to display all languages?
This would allow me to view the translation progress directly without switching languages when adding new pages.

Thank you!

February 17, 2025 at 7:25 am #16711777

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing backend access to your site. I’m currently debugging the issue and will get back to you with an update soon.

Regarding your question about displaying all languages in the backend, WPML doesn’t have a built-in feature to keep the "All languages" option selected when switching backend pages. By default, pages open in the site’s default language, but you can manually switch to a different language or "All languages" using the admin language switcher.

I appreciate your cooperation and patience. I’ll update you as soon as I have more details.

Thank you

All languages.jpg
February 17, 2025 at 11:08 am #16713458

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I’ve tried to update the Widget strings from Appearance >> Widgets page but they were not reflecting at frontend, so I followed the below steps:

1. Deleted the existing widget translation from WPML >> String Translation page.
2. Added the below XML in WPML >> Settings > Custom XML Configuration section:

<wpml-config>
  <admin-texts>
    <key name="widget_text">
      <key name="*">
        <key name="title" />
        <key name="text" />
      </key>
    </key>
  </admin-texts>
</wpml-config>

3. Re-saved the Widgets from Appearance >> Widgets page.

4. Went to the WPML >> String Translation page, searched for the widget strings, added translation, and now it shows correct translation at frontend.

To avoid this type of issue in future, please make sure to choose the default language using the admin language switcher when you edit the widgets from Appearance >> Widgets page as you can see in the attached screenshot.

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

English footer.jpg
Chinese footer.jpg
Chinese content.jpg
February 17, 2025 at 1:46 pm #16714719

chun-haoH

Thank you very much to Noman’s technical support! The issue has been resolved!

However, I still have a question.

When I switch the admin language to English, the preview of the first widget I see in Appearance >> Widgets seems incorrect, and when I click on the widget to edit it, the content’s language is still in Chinese. The previews of the other three widgets are in English, but when clicked, the content still shows in Chinese.

In this situation, should I proceed with translation in String Translation? I understand that sometimes the WordPress backend preview doesn’t display the correct information.

To ensure smooth translation during future updates, I would like to ask a more detailed question regarding the steps you provided:
In the future, if I want to change the content of the widgets, should I first make the changes in Chinese (setting the admin language to Chinese), then go to WPML >> String Translation for English translation?
Is this approach more accurate than translating directly in Appearance >> Widgets?

Thanks again to Noman’s technical support!

截圖 2025-02-17 晚上9.45.02.png
截圖 2025-02-17 晚上9.44.59.png
February 17, 2025 at 4:41 pm #16715693

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear the issue is solved 🙂

1. Updating the default (Chinese) language widget content::
- Go to the Appearance >> Widgets page
- Make sure the default (Chinese) language is selected from the admin language switcher.
- Update the content and press the save button.

2. Updating the widget translation:
- Go to the WPML >> String Translation page.
- Search for your widget strings.
- Add/Update the translation.

Let me know if this resolves your concern or if you need further assistance.

Thank you

February 17, 2025 at 5:36 pm #16715869

chun-haoH

Got it, completely understood! Thank you so much again for your help.