Skip Navigation

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

Problem:
If you're experiencing issues with translating a shortcode in your Foxiz theme, where the Arabic shortcode is registered as an English string, we can help you resolve this.
Solution:
First, you need to mark the problematic string and change its source language to Arabic. After that, translate the string again. For detailed guidance, follow the steps in our documentation on how to change the source language of strings.
Additionally, if you add the English shortcode inside the Theme Options, you should be able to translate it from English to Arabic.

Please note that this solution might be irrelevant if it's 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 the issue persists, 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 10 replies, has 2 voices.

Last updated by josephN-9 10 months ago.

Assisted by: Andreas W..

Author Posts
July 6, 2024 at 10:22 am #15902891

josephN-9

Background of the issue:
hello,
theme : Foxiz, latest version. WordPress latest version and all plugins as well.

I have built 2 header using "Ruby template"
1 for english shortcode([Ruby_E_Template id="70945"])
1 for Arabic shortcode([[Ruby_E_Template id="71064"])

my default language is english
I have setup the hedaer from theme option using ruby template shortcode for English = [Ruby_E_Template id="70945"]

but I have noticed. After few minutes browsing the website from frontend.
the theme option header shortcode change to arabic([Ruby_E_Template id="71064"]) automatically.
it is also facing another string translation.

how can I solve it ?

Symptoms:

Questions:

July 6, 2024 at 5:33 pm #15903906

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I have been navigating the website and I can not see the issue.

Can you send me a link to a page on which the issue currently occurs or provide me with more details about how to replicate the issue?

Best regards
Andreas

July 7, 2024 at 7:05 am #15906513

josephN-9

Hi there...
Check my homepage - hidden link for english
you can see the arabic logo header that is - [Ruby_E_Template id="71064"]

but I had set the English header from Dashboard > Theme option > Header ([Ruby_E_Template id="70945"])
See attachment for english header

and translate the header to arabic from string translation

but Again - After few minutes browsing the website from frontend.
the theme option header shortcode(Dashboard > Theme option > Header) change to arabic([Ruby_E_Template id="71064"]) automatically.

same issue for other string translation. see the website footer copyright text
For example :

I had put the "english copyright text" from Dashboard > Theme option > Footer >Copyright
(© 2022 Dubai News Club. all rights are save.)
and I had translated it to arabic from string translation.

but right now the copyright text has changed to arabic text automatically from Dashboard > Theme option > Footer >Copyright

why ?

Screenshot 2024-07-07 125724.png
July 8, 2024 at 2:57 am #15909036

josephN-9

you didn't response yet,
really disappointed

July 8, 2024 at 7:12 am #15910412

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please take kindly note that my working days are from Tuesday to Saturday.

Details:
https://wpml.org/forums/users/andreas-w/

I will be glad to assist you as soon.

Best regards
Andreas

July 8, 2024 at 7:19 am #15910474

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. This step would only be required if the issue is replicable on such a staging site.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

July 9, 2024 at 3:15 pm #15921723

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The Arabic Shortcode is registered as an English string.

Please mark the string, and change its source language to Arabic.

Then translate the string again.

Guide:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

July 9, 2024 at 4:42 pm #15922270

josephN-9

Hi.....

Now I have changed "the language of selected string" for arabic shortcode [Ruby_E_Template id="71064"]

but can you explain?
Foxiz theme has coded in english language and my website default language is English as well.

but why wpml treat theme option as arabic.

I have put the arabic shortcode Dashboard > Theme option > Header [Ruby_E_Template id="71064"]

Should I not put english header in Dashboard > Theme option > Header [Ruby_E_Template id="70945"] ??

and have to translate from string translation english to arabic ?

July 9, 2024 at 5:24 pm #15922411

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

If you add the English Shortcode inside the Theme Options you should be able to translate it from English to Arabic.

July 9, 2024 at 5:36 pm #15922428

josephN-9

But the main problem is-
the shortcode that is english I have put in theme option.

but wpml appear given shortcode is- arabic , now it allow me to translate english again.

see example for Copyright text.
I have just put the english copyright- Dashboard > Theme option > Footer > Copyright > © 2024 Dubai News Club. all rights are reserved

And searched it from string translation. it force me to translate again to ENGLISH
why ?
see attachment

I want that I put english value in theme option and will be able to translate arabic from String translation as usual.

Screenshot 2024-07-09 233056.png
July 10, 2024 at 3:32 am #15924735

josephN-9

Have any reply for me ?

July 10, 2024 at 7:09 pm #15929928

josephN-9

very bad, didn't reply to my issue