Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to translate the "Buy Now" button on the checkout page from English to German, but the translation is not appearing.

Solution:
1. Increase the WP Memory Limit to at least 128MB by adding the following code to the top of the wp-config.php file:

/* WP Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');

2. Navigate to WPML >> Theme and plugins localization, select the current theme, and click the “Scan selected themes for strings” button.

3. Go to WPML >> Theme and plugins localization, select the WooCommerce plugin, and click the “Scan selected plugins for strings” button.

4. Visit WPML >> String Translation and search for the required string to add the translation.

5. If the string is still not found, follow these additional steps:
5.1. Enable the ‘Look for strings while pages are rendered’ option in the WPML >> String Translation page.
5.2. Visit the checkout page on the front end to allow WPML to detect the string.
5.3. Return to the WPML >> String Translation page and search for the string again.
5.4. Translate the string once it is found.
5.5. Disable the auto-registration option after translating.

For more detailed instructions, refer to the documentation on finding and translating strings.

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.

This topic contains 5 replies, has 2 voices.

Last updated by Noman 1 year, 4 months ago.

Assisted by: Noman.

Author Posts
December 2, 2023 at 7:05 pm #14978543

markusF-31

Tell us what you are trying to do?
I want to translate the check-out page from English to German.

Is there any documentation that you are following?
I tried to follow instructions on previous tickets, like updating and themes etc. this did not work.

Is there a similar example that we can see?
You can see in the screenshot that the "Buy Now" button is not translated. It needs to be translated to "Jetzt Bestellen".

What is the link to your site?
hidden link

Capture.PNG2.PNG
December 3, 2023 at 9:16 am #14979789

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Could you please follow the steps below and let me know how it goes:

1. The current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/

Please add this to the top of wp-config.php to increase WP memory:

/* WP Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

2. Please go to WPML >> Theme and plugins localization page, select the current theme, and press the “Scan selected themes for strings” button.

3. Please go to WPML >> Theme and plugins localization page, select the WooCommerce plugin, and press the “Scan selected plugins for strings” button.

4. Please go to WPML >> String Translation page and search for your required string and add the translation.

5. If the above steps doesn’ help, please try the below procedures:

5.1. Go to the WPML >> String Translation page and in the Auto register strings for translation section, enable the ‘Look for strings while pages are rendered’ option.

5.2. Re-visit the page on the front end where the string appears:
hidden link

5.3. Re-visit the WPML >> String Translation page and search for that string.

5.4. Translate the string.

5.5. After translating the string, uncheck the auto-registration option.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

Please let me know the results,

Thank you

December 3, 2023 at 10:57 am #14979941

markusF-31

Currently, I have a more pressing issue which is described in this ticket: https://wpml.org/forums/topic/plugin-multilingual-cms-blocks-my-website-if-activated/

Once this ticket is resolved, I can focus on the current ticket. I kindly ask you to prioretise the Ticket in the link above, not this one.

December 3, 2023 at 5:16 pm #14980609

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for letting us know about the priority. One of my colleagues is already working on the other issue.

Once the other issue is solved, please try the above steps and let me know the results,

Thank you for your cooperation and patience

December 6, 2023 at 2:53 pm #15008949

markusF-31

Hi Noman,

thank you for your patience. I have resolved the more pressing issue now.

I would like to know how I can translate the words that are not yet translated in German on this site: hidden link

December 6, 2023 at 4:03 pm #15009753

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I'm glad to hear your more pressing issue is solved. Could you please try to follow the step-by-step instructions from my previous reply: https://wpml.org/forums/topic/partial-translation-of-check-out-page/#post-14979789 and see if this resolves your issue?

If the above steps don’t help, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

December 6, 2023 at 4:50 pm #15010645

markusF-31

It actually worked. Thank you very much for the help!