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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | - |
- | - | - | - | - | - | - |
Fuseau horaire du supporter: Pacific/Easter (GMT-05:00)
Marqué : Compatibility
Ce sujet contient 12 réponses, a 0 voix.
Dernière mise à jour par davidD-150 Il y a 11 heures et 45 minutes.
Assisté par: Ilyes.
Auteur | Articles |
---|---|
janvier 29, 2025 à 3:44 pm #16647398 | |
davidD-150 |
Contexte de la question: Symptômes: Questions: |
janvier 30, 2025 à 4:01 pm #16652761 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Hello, Thank you for contacting WPML support team, I highly suspect this to be a compatibility issue, Hotel Booking is indeed compatible: https://wpml.org/plugin/motopress/ But I do not see any mention of their PDF addon plugin on our internal systems. Before escalating this to our compatibility team, I see that on Motopress release notes, the last time they updated the compatibility with WPML was from 2021 : lien caché In here we have two things we could so : 1- Create a sandbox environment ( I can provide you with the link upon your next reply) and you replicate the issue there. But before this, could you confirm if the issue persist when disable all plugins except motopress and WPML plugin? Best, |
janvier 31, 2025 à 4:23 pm #16656680 | |
davidD-150 |
Hello, I tried to deactivate all plugins except MPHB and WPML, problem is still there ... David |
février 3, 2025 à 5:20 pm #16663930 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Hello, In order to see if this issue is happening because of the configuration of your site, or just the combination of the hotel PDF addon plugin & WPML we need to isolate the issue. I’ve created a sandbox here: lien caché I’ve already configured WPML in 2 languages. Please do the following: - Open the Sandbox link mentioned above Please note that we only need the theme/plugin and the related functionality, you don’t need to set up an entire website or clone your existing site. Let me know when it is done. |
février 3, 2025 à 7:19 pm #16664187 | |
davidD-150 |
Hi Ilyes, Many thanks for your feedback. Best regards, David |
février 4, 2025 à 5:07 pm #16668018 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Hello David, We need to get these plugins installed on our sandboxes as we are going to change the code and break the plugin itself, Could you share a link of the zip file? or upload it using File Manager on the sandbox? You could also share an FTP access to your site, I could see if I can export the files of the plugin myself. If that wasn't enough, then we need to contact the authors directly to provide a testing version, but I should be able to activate it from the zip file or FTP. Best, |
février 4, 2025 à 9:58 pm #16668573 | |
davidD-150 |
Hi Ilyes, I have installed and activated the Bellevue Theme with bundled plugins including MotoPress Hotel Booking. Many thanks in advance, David |
février 7, 2025 à 4:28 pm #16680627 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Hello David, It turns out the invoice is loading its content directly from the booking itself, and when I check with Motopress, I find this article : lien caché That implies that the bookings are not to be translated, hence why the invoice cannot load the content in another language but English. Even when forcing the booking translation as shown in here : lien caché The booking translation is totally empty and the invoice is only able to load the english strings. I have reported this to our compatibility team, they will see if motopress can make their PDF plugin compatible. Best, |
février 10, 2025 à 8:49 am #16685544 | |
davidD-150 |
Hi Ilyes, Great feedback, many thanks ! Why are some of the invoice fields translated, but not all of them ? Many thanks in advance, David |
février 10, 2025 à 12:53 pm #16687180 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Your analogy is right, but this PDF plugin is not taking that into consideration (not checking for the language), hence why it is not compatible. For now, our compatibility team asked if you could make the frontend booking page to work so we can simulate the automatic generation of the invoice, From the backend, we couldn't create a "french" booking as you described. |
février 12, 2025 à 7:46 am #16694332 | |
davidD-150 |
Hello Ilyes, I tweaked the 'search availability' page to be functional both in EN & FR languages. Best regards, David |
février 13, 2025 à 12:38 am #16699607 | |
Ilyes Supporter
Les langues: Français (Français ) Fuseau horaire: Pacific/Easter (GMT-05:00) |
Hello, Thank you for helping with the booking installation, We have found a possible fix for this issue and the invoice is now translated: lien caché - Backup your site $booking = MPHB()->getBookingRepository()->findById( $booking_id ); With: $booking = MPHB()->getBookingRepository()->findById( $booking_id ); // WPML Workaround for compsupp-7849 if ( class_exists('Sitepress') ) { $booking_language = $booking->getLanguage(); do_action( 'wpml_switch_language', $booking_language ); } - Then look for line 294 - Replace: return $render_variables; With: return $render_variables; // WPML Workaround for compsupp-7849 if ( class_exists('Sitepress') ) { $default_lang = apply_filters('wpml_default_language', NULL ); do_action( 'wpml_switch_language', $default_lang ); } - Note that some strings need to be translated in String Translation too Let me know if that helped, |
février 13, 2025 à 10:05 pm #16704629 | |
davidD-150 |
Hi Ilyes, Many thanks for this tutorial, I 'll let you know as soon as I can test it. Best regards, David |