Skip Navigation

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

Problem:
The client is trying to translate strings from Arabic to English, but the string translation is offering Arabic translation options instead of English. This issue is observed when translating footer templates with different IDs for each language.
Solution:
If you're experiencing an issue where the language of a string is not correctly detected in the string translation, you can manually change the default language of the string. Here's how to do it:
1. Select the string in question.
2. Click on "change the language of selected strings".
3. Choose the correct language for the string.
For a detailed guide, please refer to our documentation on how to change the source language of strings.

If this solution doesn't look relevant to your issue, please open a new support ticket.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year, 6 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
December 5, 2023 at 5:36 pm #15001665

josephN-9

I am trying to translate : قمة{category} أخبار

Link to a page where the issue can be seen:

I expected to see: Top {category} news

Instead, I got: same-{category} أخبار

hidden link

same for below: latest {category} news

December 5, 2023 at 7:23 pm #15002415

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I'm adding your request here, so we can keep track of it:

"I don't understand what's wrong with it.

My default language is- Arabic, Now I need to translate it to English.

For example- footer template:

Ar- [Ruby_E_Template id="3522"]

En- [Ruby_E_Template id="2317"]

When I try to translate it from string translation:

It gives me again the option Arabic translation instead of English...

Why ? it should give me option for English translation since I have default language is- Arabic

see attachment: hidden link

Even the footer works completely reverted. Please check and let me know"

Sometimes the language of a given string is not detected properly on string translation. To change the default language of a string, you can simply select it and click on "change the language of selected strings". Please see it on the attached image. If you need more details, here's a complete explanation:

https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/#:~:text=To change the source language of specific strings%2C select them,Then%2C select the new language.

Best regards,
Lucas Vidal

December 6, 2023 at 3:47 am #15003509

josephN-9

thank you I have fixed after the read the relevant doc as you referred,