Sauter la navigation

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

Fuseau horaire du supporter: America/Lima (GMT-05:00)

Ce sujet contient 2 réponses, a 0 voix.

Dernière mise à jour par Andreas W. Il y a 1 jour et 1 heure.

Assisté par: Andreas W..

Auteur Articles
janvier 7, 2025 à 2:26 pm #16570047

carolineT-8

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?

janvier 7, 2025 à 5:46 pm #16571015

Andreas W.
Supporter

Les langues: Anglais (English ) Espagnol (Español ) Allemand (Deutsch )

Fuseau horaire: America/Lima (GMT-05:00)

Hi,

It seems that the minimum requirements are not met on the server:
https://wpml.org/en/home/minimum-requirements/

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.

Best regards
Andreas

janvier 8, 2025 à 9:29 am #16572533

carolineT-8

Hello Andreas,

Thanks for your support.
I've changed the Worpdress memory but the problem is still there.
What can i do ?

Capture d’écran 2025-01-08 à 10.26.08.png
janvier 8, 2025 à 3:02 pm #16574056

Andreas W.
Supporter

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.

Best regards
Andreas

janvier 9, 2025 à 11:01 pm #16580040

Andreas W.
Supporter

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.

Guide:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Please also delete the strings that you registered from admin_texts.

string 1.jpg
string 2.jpg
janvier 10, 2025 à 6:54 pm #16582954

carolineT-8

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?

Thanks a lot for your time

2a.png
2.png
1a.png
1.png
3.png
janvier 10, 2025 à 8:24 pm #16583253

Andreas W.
Supporter

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.

Please read this guide and let me know if you have further questions:
https://wpml.org/documentation/getting-started-guide/translating-menus/

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.