Passer la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client is working on a translation for a customised theme with WooCommerce, but the strings extracted from the theme do not appear translated on the front-end.

Solution:
First, we recommend checking if the theme has built-in localization support for its texts. This can be done by ensuring that the texts are enclosed in the gettext function with the appropriate text domain. For guidance on integrating translation support into a custom theme, please refer to the following documentation:

If the texts are correctly enclosed and still not appearing translated on the front-end, we suggest following the instructions in this guide to find strings that don't appear on the String Translation page:

These steps often resolve issues with translating strings and ensuring they appear correctly on the website.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket. You can do so by visiting the WPML support forum.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Prosenjit Barman Il y a 1 année et 2 mois.

Assisté par: Prosenjit Barman.

Auteur Messages
Avril 2, 2024 à 9:26 am #15471708

Charline LACOSTE

I'm working on a translation for one of my clients.
Unfortunately, the strings extracted from the customised theme do not appear translated on the front-end.

The client uses a customised theme + the WooCommerce plugin.

We've tried the solutions found in other posts in this forum but none seem to work.
- we augmented the memory limit, deleted the strings in the strings translation section, added them again + translated them again - no change
- we updated the plugin, deleted, added, translated again - still no change

Is there another solution to apply here?

Thanks!

Avril 2, 2024 à 12:14 pm #15472790

Prosenjit Barman
Partisan de WPML depuis 03/2023

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

I understand what you're looking for. If the theme has built-in localization support for its texts, you'll have the option to translate texts through String Translation, and the translations should be displayed accurately on the website. Given that you're working with a Custom theme, could you please check the following guide to verify that translation support is correctly integrated for the text that does not appear translated on the website?

- https://wpml.org/documentation/support/translating-the-theme-you-created/

If the texts are enclosed in the gettext function using the appropriate text domain, yet they still fail to appear translated on the frontend, you can follow the instructions mentioned in the guide below.

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

Instructions mentioned in the guide often resolve problems with translating string and its appearance, and I hope it will help in your case too. Let me know the update and I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

Avril 2, 2024 à 2:14 pm #15473418

Charline LACOSTE

We found the solution, there a missing part in the customised code 🙂

Thanks!