Welcome Guest, Not a member yet? Register   Sign In
Localizing the error messages for rules in form_validation library
#1

[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!


Messages In This Thread
Localizing the error messages for rules in form_validation library - by El Forum - 12-31-2009, 10:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB