![]() |
How to replace error message "Password must be between 8 and 64 characters long"
I am using X-cart 5.4, the language is set to French. I realized the error message "Password must be between 8 and 64 characters long". I didn't find the expression in the translation module, which is more or less normal because it is not a label.... More precisely, we have
Code:
if (\strlen($data['password']) < 8 || \strlen($data['password']) > 6 How do I replace this message with its French transaltion? And, more generally, where do I find all messages that are not labels (and replace them with labels)? |
Re: How to replace error message "Password must be between 8 and 64 characters long"
You will have to have a custom module and decorate the class overriding the method that adds this error message with your own. In your own method you can use language variable or hardcode the message as they did.
As for finding all message that are not labels - you can't really do this unless you inspect every file manually - you can search all the files for say "addErrorMessage" or whatever the method setting the message is, as it can be error or warning or success... And again you have to use custom module to make the changes |
All times are GMT -8. The time now is 07:32 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.