| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to replace error message "Password must be between 8 and 64 characters long" | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
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)?
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|