Skip Navigation

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

Problem:
You are unable to translate certain strings in the account section of your online store from English to Arabic using WPML's standard methods. Additionally, the WordPress backend menu switches direction from left to right when a new WooCommerce order is received.
Solution:
First, ensure that you are adding these strings via the Theme customizer and switch the language settings from AR to EN. Next, copy the XML configuration for these strings from WPML > String Translation > Translate admin text and add them to WPML > Settings > Custom XML. This adjustment should resolve the issue with the strings not translating. For more detailed guidance, refer to the documentation on finding strings that don't appear on the string translation page: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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. For further assistance, please visit our support forum: https://wpml.org/forums/forum/english-support/

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 2 replies, has 0 voices.

Last updated by tareqA-6 2 months, 4 weeks ago.

Assisted by: Dražen.

Author Posts
December 1, 2024 at 11:24 am #16462843

tareqA-6

Background of the issue:
I am trying to translate from English to Arabic a string in the account section of my online store at hidden link. I have translated hundreds of strings using WPML's 3 methods of locating strings and translating them, but none of those methods are working for the strings in the account section. Additionally, I have an issue with my WordPress backend where the menu switches from left to right whenever I receive a new WooCommerce order. Changing the language from US English to UK English temporarily resolves this issue.

Symptoms:
The WordPress menu switches from left to right when updating the WooCommerce order section. WPML's string translation methods are not working for certain strings in the account section.

Questions:
Why are the strings in the account section not translating using WPML's methods?
What causes the WordPress menu to switch direction when receiving a new WooCommerce order?

December 2, 2024 at 6:53 am #16464256

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

since we limit 1 issue per ticket to keep things clear, lets first concentrate on issue with string translation.

Can you please explain what string is not translating and how are you translating it? Is this string coming from PHP files or you have added it?

Thanks,
Drazen

December 3, 2024 at 10:11 am #16470781

tareqA-6

Hello,

I tried the 3 ways of searching for strings:

1) String Translation
2) Auto register strings for translation - look for strings while pages are rendered.
3) Translate Texts in Admin Screen.

I have been using these methods to locate every string I translated on my website from English to Arabic. But none of these methods managed to show the strings in the "Account" section of my WooCommerce online store.

As you can see in the screenshot attached (English Version), the Arabic text is not supposed to be there. Instead of the Arabic text, there should be "Edit Profile". This text was automatically translated in the reverse direction without me doing anything.

In the other screenshot attached (Arabic Version), you can see that "My Account" and "Log Out" are not translated and these are the two strings that I was not able to translate at all using the 3 methods mentioned above.

What I need is to get the Arabic text in my English website back to "Edit Profile" and to have the text "My Account" to be translated into "حسابي" and the text "Log Out" to be translated into "خروج" in the Arabic version of the website.

English Version.png
Arabic Version.png
December 3, 2024 at 10:27 am #16470906

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

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/


- Please backup 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.



Thanks,
Drazen

December 3, 2024 at 11:02 am #16471128

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

it requires Wordfence 2FA Code, please disable this mode while we check.

Thanks,
Drazen

December 3, 2024 at 11:05 am #16471165

tareqA-6

I totally forgot about the 2FA. I will disable it now and you can try again in 2 minutes. Thanks

December 3, 2024 at 11:16 am #16471228

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

you are adding these strings from Theme customizer, there I have changed AR to EN string.

Then I copied the XML configuration for these strings from WPML > String translation > Translate admin text and added them to WPML > Settings > Custom XML, it works fine now.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Please check.

Regards,
Drazen

December 3, 2024 at 11:32 am #16471295

tareqA-6

Yes, it is fixed now. Many thanks Drazen 🙂