Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 8 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 5 months ago.

Assisted by: Osama Mersal.

Author Posts
January 3, 2024 at 11:59 am

pascalM-12

We are theme developers, In our theme we are trying to translate theme options text( admin text ) like welcome text / address / copyright etc..
these all texts showing in string translation area but after translation , it was not reflecting in frontend

January 3, 2024 at 12:24 pm
January 3, 2024 at 1:03 pm #15146643

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please login to this sandbox site and install your theme. (hidden link)

After that, please create a test header and footer and translate them to replicate the issue. If the issue is replicable, please let me know how to reproduce it.

Best regards,
Osama

January 4, 2024 at 4:49 am #15149114

pascalM-12

HI,

hidden link

Translated but even the same issue,

hidden link --- English
hidden link --- French

please check header top Mon – Sun: 9.00 am – 8.00pm
and footer copyright text

Thanks in advance

January 4, 2024 at 8:08 am #15149444

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for replicating the issue. I've consulted our compatibility team, and I'll update you as soon as I get their reply.

Best regards,
Osama

January 8, 2024 at 5:24 am #15158121

pascalM-12

Hi,

Can i get reply for this? As our client is waiting for this to fix.

Thanks in advance

January 8, 2024 at 8:49 am #15158846

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

The issue has been escalated to our compatibility team. I'll update you as soon as I get their reply. It might take some time due to a higher workload.

Thanks for your patience

Best regards,
Osama

January 8, 2024 at 10:11 am #15159474

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) I've received our compatibility team's reply. Please check the following steps:

1- Open ..../wp-content/themes/igual/template-parts/header-topbar.php.
2- Look for line 47,
3- Replace it

echo '<li>'. do_shortcode( stripslashes( force_balance_tags( wp_kses_post( $topbar_values['header_topbar_text_1'] ) ) ) ) .'</li>';

With

echo '<li>'. do_shortcode( stripslashes( force_balance_tags( wp_kses_post( get_option( 'igual_options' )['topbar-custom-text-1'] ) ) ) ) .'</li>';

I've applied this workaround on the sandbox site. Please check the topbar string on the translated page. (hidden link)

Kindly note that this needs to be done for other theme options: replace the get option custom function, $topbar_values['option-name'], for the one from WordPress $get_option['option-name'].

2) It would be great if you could contact the authors and urge them to join our Go Global Program.
You can find details about it here. (https://wpml.org/documentation/theme-compatibility/go-global-program/)

Best regards,
Osama

January 9, 2024 at 12:05 pm #15164283

pascalM-12

Hi,
Yes, it was working well...

But footer copyright bar text won't be translating

hidden link
hidden link

hidden link - here i have translated footer copyright text

Can you please check this?

January 9, 2024 at 12:30 pm #15164352

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

As mentioned in my previous reply, you would need to apply this workaround to all theme option strings. For example, for the copyright string, please check the following steps:

1- Open ..../wp-content/themes/igual/template-parts/footer-bottom.php
2- Look for line 41
3- Replace it

$copyright_html = Igual_Wp_Elements::igual_options('copyright-text');

With

$copyright_html = get_option( 'igual_options' )['copyright-text'];

4- Check if the string is translated correctly

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

The topic ‘[Closed] all texts showing in string translation area but after translation , it was not reflecting in frontend’ is closed to new replies.