Ce sujet est résolu. Voici une description du problème et de la solution.
Problem: The client is experiencing issues with displaying translated strings on their website using the Hotel Booking plugin from MotoPress and Elementor. Specific problems include non-display of translated 'Payment Method' and other related text, untranslated menu items, the 'Read More' button on the blog page, and non-editable strings in a package. Solution: 1. For the main translation issue, ensure you are translating the correct strings. The strings should be marked first and then use the dialog to Change the language of the selected strings. Here is a guide on how to do this: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/ 2. For the menu, automatic translation has limitations. Custom menu items need to be translated manually via WPML > String Translation or by adjusting each menu at Appearance > Menus. More information can be found here: https://wpml.org/documentation/getting-started-guide/translating-menus/ 3. For the 'Read More' button on the blog page, if it does not appear in the WPML Translation Editor when translating the Blog Page, we recommend opening a new ticket.
If these solutions do not resolve your issues or if they seem outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed.
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.
Contexte de la question:
I am trying to display translated strings on my site, which uses the Hotel Booking plugin from Motorpress and Elementor. The translations are done in the backend. The issue can be seen on this page: lien caché
Symptômes:
The translated strings don't display as expected. Instead of seeing the English translations for 'Payment Method' and related text, the French versions are shown.
Questions:
Why are the translated strings not displaying on the frontend?
How can I ensure the translations appear correctly on the site?
Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires at least 128M.
Your current values are:
PHP MemoryLimit 512M
WP Memory Limit 64M
You need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.
Add this code to the wp-config.php file to increase WordPress memory:
define ('WP_MEMORY_LIMIT', '256M');
Add this just before this comment:
// That's all, stop editing! Happy blogging.
The current values can be viewed under WPML > Support > WordPress.
These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.
If adjusting the limit will not solve the issue, please let me know.
Les langues: Anglais (English )Espagnol (Español )Allemand (Deutsch )
Fuseau horaire: America/Lima (GMT-05:00)
Hi,
I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.
However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.
If you are not able to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: lien caché
The next time you reply, click on "I still need assistance".
Video: lien caché
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
Les langues: Anglais (English )Espagnol (Español )Allemand (Deutsch )
Fuseau horaire: America/Lima (GMT-05:00)
It looks like you are not translating the correct strings. See screenshots.
The strings are coming from the MotoPress Theme, there is not need to add them from admin text.
You only need to make sure mark the strings first and use the dialog to "Change the language of the selected strings", as they were by default registered with the source language English.
Thanks a lot for your return Andreas.
The payment methods are now translated 🙂
However, i still have some other issues :
1. The Menu
Some elements are not translated, even though they are correctly encoded in the translation strings and properly positioned in French. What could be the issue?
2. Blog Page
On the blog page, it is possible to click "Read More" to display the full article. However, this does not get translated, even though it seems to be correctly indicated in the translation strings. Any idea what the problem might be?
3. Non-editable Strings
Some strings are shown in English but should be in French, and I cannot change them. It says:
"You have selected strings belonging to a package. Please select all strings from the corresponding package or deselect these strings."
However, the other strings in the package are in the correct language, so I don’t want to change them. What should I do?
Les langues: Anglais (English )Espagnol (Español )Allemand (Deutsch )
Fuseau horaire: America/Lima (GMT-05:00)
Please take kindly note, that we only handle one issue per ticket. I would like to encourage you to open one ticket per issue.
1) Menu
The automatic translation for the menu ha limitations and will mostly only work for dynamic links for pages and posts.
If you use for example custom menu items, then those can not get translated automatically. You will need to translate such items with WPML > String Translation or translate each menu at Appearance > Menus and adjust the menu items manual in each language.
If the menu translation will not work as expected, then please open a separate ticket for this issue.
2) Blog
I understand correct, that the issue is the "Read more" button text?
It looks like you are using Elementor and this button text should appear inside the WPML Translation Editor when translating the Blog Page. If this is not the case, then I suggest you open a new ticket for this issue, as we might need to take a look into this.
3) Strings
Those package strings do come from a French page that was created with Elementor. You will need to adjust this original string directly inside Elementor on the French page. The widget should include a field for this string. It is likely that this is coming from a Posts widget's pagination settings.