Skip Navigation

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

Problem:
The client is unable to see the translation for 'DEAL CATEGORIES' even though it has been translated. The text is manually added to the

functions.php

file in the child theme folder and is not registered for translation.
Solution:
We recommend editing the

functions.php

file in the child theme folder. Specifically, on line 57, replace the existing code with the following:

echo '<div class="deal-shop"><ul><span>' . __( 'Deal Categories', 'couponseek' ) . '</span>';

Before making any changes, it is crucial to back up the database and website. After updating the code, navigate to WPML > Theme and plugins localization to scan strings in the child theme. Then, proceed to WPML > String Translation to translate the string.
For further guidance, refer to our documentation on enabling text translation for themes not compatible with WPML.

If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket in our 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.

This topic contains 2 replies, has 2 voices.

Last updated by omari-3 1 year, 5 months ago.

Assisted by: Long Nguyen.

Author Posts
January 22, 2024 at 9:00 am #15209963

omari-3

Thanks I have translated all, but DEAL CATEGORIES is already translated there, but it is not showing. Please check the screenshot.

January 22, 2024 at 9:04 am #15209972

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Here is the new ticket. In this ticket, I will focus on translating the text "DEAL CATEGORIES".

I see the text is added manually to the file functions.php in the child theme folder, it is not registered for translation:

echo '<div class="deal-shop"><ul><span>Deal Categories</span>';

I suggest you edit the file functions.php in the child theme folder, on line 57, replace the code with this one:

echo '<div class="deal-shop"><ul><span>' . __( 'Deal Categories', 'couponseek' ) . '</span>';

❌ IMPORTANT: Please backup your database and website before proceeding ❌

then go to WPML > Theme and plugins localization > Scan strings in the child theme and go to WPML > String Translation and translate the string.

Refer documentation https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

Look forward to your reply.
Thanks

January 22, 2024 at 9:52 am #15210177

omari-3

Thanks It worked.

January 22, 2024 at 12:13 pm #15211225

omari-3

thanks it resolved.