Part of the EllisLab Network
   
 
Problem with form validation
Posted: 03 July 2009 03:29 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  06-25-2009

Hi all,

I have w problem with the form validation.

Well, my website is in french, so i modified the validation_lang.php file in system/language…

$lang['required']             "Le champs %s est requis.";
$lang['isset']                "The %s field must have a value.";
$lang['valid_email']        "Le champ %s doit contenir une adresse mail valide";
$lang['valid_emails']         "The %s field must contain all valid email addresses.";
$lang['valid_url']             "The %s field must contain a valid URL.";
$lang['valid_ip']             "The %s field must contain a valid IP.";
$lang['min_length']            "The %s field must be at least %s characters in length.";
$lang['max_length']            "The %s field can not exceed %s characters in length.";
$lang['exact_length']        "Le champ %s doit contenir %s caractères.";
$lang['alpha']                "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric']        "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash']            "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric']            "Le champ %s doit contenir au moins un chiffre.";
$lang['is_numeric']            "The %s field must contain a number.";
$lang['integer']            "The %s field must contain an integer.";
$lang['matches']            "The %s field does not match the %s field.";
$lang['is_natural']            "The %s field must contain a number.";
$lang['is_natural_no_zero']    "The %s field must contain a number greater than zero."

I modified only the fields i’ve used, but the problem is, the page is still displaying these error messages :

The Titre field is required.

The Description field is required.

The Téléphone field is required.

The Courriel field must contain a valid email address.

The Ville field is required.

The Code postal field is required.

Do you guyz see any error ?


...

Profile
 
 
Posted: 03 July 2009 09:18 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  18
Joined  07-03-2009

there are 2 files in the language pack: validation_lang.php and form_validation_lang.php. You probably edited the wrong one (i did the same smile

Profile
 
 
Posted: 04 July 2009 01:05 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  06-25-2009

haha, thx man smile

...

Profile