[eluser]chamila[/eluser]
I am using the form_validation library, and I want the error messages that are displayed for rules like required, min_value to be dynamically selected from the language file according to the locale.
I can display the localized strings for the rest of the page by using template parser library. But I can't figure out the error messages.
I tried the following too, but it doesn't work. Gives out a lot of errors (required_error is the line in the lang file).
Code:
$this->form_validation->set_message("required", $this->lang->line("required_error"));
Can anyone help me out with this?
Thank you!