Comments: Data Validation

By korayp on 4/7/08

1 - Internationalized error messages

Despite the manual says "Note: If you plan on using internationalized error messages, you will need to specify error messages in your view instead." you can still access your gettext messages from you views using some code like:

==============>8==============

if(isset($errors)){

print "<big>";

print __("Some errors are encountered. Please correct and try again");

print "</big><br/>";

foreach ($errors as &$error) {

$error_i18n=__($error);

print $error_i18n."<br/>";

}

}

==============>8==============