Skip Navigation

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.

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 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
March 5, 2024 at 9:14 am #15373209

jaewhanl

Hello.

I am using a plug-in called wp-member, cosmosfarm when managing membership.
It has been set up to require administrator approval for new users to log in after signing up for membership.

An error message appears when an unauthorized user connects.
(plug-in function)
The error phrase is in the form of adding code to the theme's funtion.php file.

With this plug-in function, I would like to set different error messages that appear in each Korean and English page.

I want to know how to set it up because it's not a value that exists on the page, it happens when a condition occurs.

Thank you.

Is there any documentation that you are following?
No..

Is there a similar example that we can see?
Image attached

What is the link to your site?
hidden link

korean.png
english.png
March 5, 2024 at 9:36 am #15373408

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) If this message is hard-coded in the functions.php file, please make sure that you use the GetText call. Kindly check this guide. (https://wpml.org/documentation/support/translating-the-theme-you-created/)

2) If this message is added using the plugin settings, please try the following steps:

1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

3) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

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

Best regards,
Osama

The topic ‘[Closed] Display login error messages differently’ is closed to new replies.