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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by Kor 1 month, 3 weeks ago.

Assisted by: Kor.

Author Posts
April 9, 2025 at 2:45 pm #16914488

abyxoA

Background of the issue:
J'essaie de traduire plusieurs chaînes en anglais sur mon site, mais elles ne se traduisent pas correctement. Le problème peut être vu sur cette page : hidden link

Symptoms:
Le texte 'Complétez votre tenue' n'est pas traduit en anglais, bien que la chaîne soit bien traduite dans le plugin. Au lieu de cela, le texte reste en français.

Questions:
Pourquoi certaines chaînes ne se traduisent-elles pas en anglais malgré leur traduction dans le plugin ?
Comment puis-je résoudre le problème de traduction pour les chaînes spécifiques ?

April 11, 2025 at 4:52 am #16920916

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

April 11, 2025 at 2:46 pm #16923269

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you tell me where I can edit this text "Complétez votre tenue"? Did you insert it directly into the theme files? As for the English orders not being displayed issue, could you tell me a little bit more about it? Or perhaps you can include some screenshots and some instructions to replicate it?

April 14, 2025 at 8:45 am #16927831

abyxoA

Bonjour , merci pour votre retour rapide. Le texte est en dure dans le code/thème je ne pourrai pas vous dire exactement ou désolé. Il ce pourrait qu'il soit dans un template twig /wp-content/themes/hyraw/views/partials/random-products.twig ligne 2.

il y a une référence aussi dans le fichier hyraw.pot situé à la racine du thème, je sais pas si ça a une influence

Je tient aussi a rappeler que le texte que je vous ai donner n'est qu'un exemple, il y a plusieurs autres texte qui ne sont pas traduite sur le site , notamment dans le panier et la validation de commande ou la page de remerciement apres avoir passé une commande. Alors qu'ils ont bien une traduction dans WPML.

Concernant le problème des commande, enfaite les commande US de remonte pas a Odoo, impossible de synchroniser ces commandes même manuellement. Il ne se passe rien. Pas de message.

elles ne remontent pas sur Odoo parce qu'apparemment il considère qu'il y a des produits dans la commande avec des ids qui n'existent pas

Odoo fait une erreur en disant qu'il y a un problème avec le produit xxxx dans la commande yyyy mais en fait si tu vas dans la commande WC le produit xxxx n'y est pas

Nous avons déjà contacter Odoo par rapport a ce problème mais nous n'avons toujours pas de réponse. Si vous arrivez a trouver quelque chose ca nous serait d'une grande aide.

Merci encore pour vos retour
Bonne journée

April 14, 2025 at 9:12 am #16927914

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've checked your theme files here hidden link and I cannot locate this file /wp-content/themes/hyraw/views/partials/random-products.twig .

We need to make sure the strings are added correctly using the method explained here hidden link .

Or you can use our new tool here https://wpml.org/documentation/support/translating-the-theme-you-created/ to fully localize a custom theme.

April 14, 2025 at 9:46 am #16928098

abyxoA

Bonjour , désolé, il semblerai que les accés FTP n'était pas bon, vous pouvez ré essayer de vous connecter avec les mêmes identifiants vous aurez normalement accés à tout les fichiers maintenant.

April 14, 2025 at 9:51 am #16928130

abyxoA

en ce qui concerne le problème des commandes Odoo il semblerait que les produits en des variante pour la version US et que ca n'arrive pas a syncroniser ces variantes en anglais, Il me semble que ca marché avant que je ne fasse une manipulation pour essayer de régler le problème des traductions, j'ai ajouter un code pour traduire les chaines manuellement, sauf que j'ai désactiver ce code parce que je me suis rendu compte qu'il y avait trop de chaine pas traduite et que ca prendrai trop de temps, il y avait aussi un problème avec l'AJAX qui faisait que le code ne fonctionner pas bien, je l'ai donc désactivé, vous pouvez le retrouver ici dans le back office "Extraits de code > Trad" c'est le code qui semblerai avoir causer les soucis avec Odoo , si vous pouvez regarder, Il ce pourrai aussi que ca n'est rien a voir mais on sait jamais.

April 15, 2025 at 7:03 am #16931856

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've enabled the custom PHP code and the translation is still working fine. I don't see anything wrong with the method you use to translate the strings. As for the Odoo order, could you recheck and let me know if the issue persists?

April 15, 2025 at 12:14 pm #16933936

abyxoA

Bonjour, merci pour votre réponse.

Oui le code que j'ai fait fonctionne bien pour les traductions, seulement il manque pas mal de traduction et donc ce me fait perdre énormément de temps de les trouver et de les corriger a la main, et j'ai peur d'en louper. De plus comme je l'ai dit les parties AJAX ne fonctionne pas correctement avec mon code , par exemple dans le panier ou la validation de commande, si je change quelque chose , par exemple la méthode de livraison, un chargement AJAX va ce faire et va remettre le texte en FR alors qu'on est toujours en anglais, elle est la la limite de mon code personnalisé.

Pour Odoo le problème persiste toujours, pour vous aider voici deux commande US qui ne sont pas remonter sur Odoo: 40208 et 40238. Le problème semble venir des ID US
Par contre voici deux commandes qui sont bien remonté a Odoo 40204 et 40206. Je ne sais pas quel sont les différences entre ces deux commandes.

Merci

April 16, 2025 at 11:32 am #16938314

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

To troubleshoot the string translation issue, I would need a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

As for the order issue, could you provide a screen recording from your end explaning how to replicate the issue?

April 17, 2025 at 10:02 am #16943189

abyxoA

Bonjour , pas de soucis je vous donne l'autorisation de crée votre propre Snapshot du site, pour ce qui est des problèmes de commande je reviens vers vous avec une vidéo.

Merci

April 18, 2025 at 12:16 pm #16947210
abyxoA

Bonjour, Pour reproduire le bug il suffit de faire une commande via le site en US. La commande est bien enregistrée dans WP mais pas de synchro sur Odoo.

voici le lien pour télécharger les vidéo
hidden link

merci bonne journée

New threads created by Kor and linked to this one are listed below:

https://wpml.org/forums/topic/translated-orders-are-not-sync-on-odoo/

April 18, 2025 at 5:39 pm #16947957

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I'll need to escalate the string translation issue to our 2nd Tier Support for further investigation.

As for the order issue, I've split the issue here on a new ticket https://wpml.org/forums/topic/translated-orders-are-not-sync-on-odoo/ so that we could follow up.

April 29, 2025 at 4:31 pm #16980315

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I've feedback from our 2nd Tier Support and this is what they mentioned.

After reviewing the custom theme, we found several issues — it includes full copies of the wp-admin and wp-includes folders and contains empty definitions of standard WordPress functions like load_theme_textdomain, among others.

From what we've examined, it appears that the strings are not displaying because the theme does not load its own text domain, which is required. We couldn't find any instance where load_theme_textdomain is being called.

Please refer the client to the following resources for more details:

https://developer.wordpress.org/reference/functions/load_theme_textdomain/

hidden link

There doesn’t have to be an actual .mo file present, but the call to load_theme_textdomain is necessary for WPML to hook into the theme's strings.

April 30, 2025 at 4:51 pm #16984986

abyxoA

Bonjour, merci pour votre réponse.

Nous avons bien envoyer le fichier .pot dans le dossier languages du thème et supprimé le dossier WordPress qui était présent

est-ce que vous pouvez confirmer que ça fonctionne ?

Merci

The topic ‘[Closed] Bug Traduction’ is closed to new replies.