Skip Navigation

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

Problem:
The client is unable to find strings from the 404 page for translation in Salient theme.
Solution:
1. Increase the WP Memory Limit 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 “Salient” parent and child theme, and click the “Scan selected themes for strings” button.
3. Go to WPML >> Theme and plugins localization, select the “Salient Core” plugin, and click the “Scan selected plugins for strings” button.
4. Visit WPML >> String Translation and search for the required text to add the translation.
5. If the strings are still not found, follow these steps:
5.1. Enable the ‘Look for strings while pages are rendered’ option in the Auto register strings for translation section on the WPML >> String Translation page.
5.2. Visit the front end page where the string appears.
5.3. Return to the WPML >> String Translation page and search for the string.
5.4. Translate the string.
5.5. Disable the auto-registration option after translating.
For more details, refer to the documentation on finding strings that don't appear on the String Translation page

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 3 replies, has 2 voices.

Last updated by Noman 1 year, 8 months ago.

Assisted by: Noman.

Author Posts
June 8, 2023 at 11:48 am #13792787

José

Trying to translate strings of 404 page to translate them but can´t find them.
Theme support recommended contacting you.

Thanks

June 8, 2023 at 1:33 pm #13793567

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. It seems you are trying to translate the strings from these pages:

404: hidden link
Search not found: hidden link

Could you please follow the below steps and let me know how it goes:

1. I have noticed that your website’s WP Memory Limit 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 “Salient” parent and child theme, and press the “Scan selected themes for strings” button.

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

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

5. If the above steps don't 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.

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/#scanning-for-hard-coded-strings

Thank you

June 9, 2023 at 9:31 am #13798355
José

Hello,

That worked,thanks.

Can I change the text of the original english string?

Thanks

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

https://wpml.org/forums/topic/can-i-change-the-text-of-the-original-english-string/

June 11, 2023 at 7:13 am #13804357

Noman
Supporter

Languages: English (English )

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

Sorry for the delay, it was my weekend (Friday-Saturday). Glad to hear the 404-page translation issue is solved. Changing the default language text issues is a different issue and will be handled separately per our support policy. I have created a new ticket for this:
https://wpml.org/forums/topic/can-i-change-the-text-of-the-original-english-string/

If your current ticket issue is resolved, you may mark this ticket as resolved and we will continue to work on the new ticket.

Thank you for your cooperation and patience