View Single Post
  #1  
Old 12-18-2024, 06:59 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 460
 

Default 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 4) { $result = false; $this->addErrorMessage( 'password', 'Password must be between 8 and 64 characters long' );
in View/Model/Profile/Main.php


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
Reply With Quote