Sets of rules - Translation |
[eluser]Mauricio de Abreu Antunes[/eluser]
Hello, I need help with this problem: I have sets of rules for form validation. But i need to translate field in messages. I know how to translate error messages, but labels not (with sets/groups http://ellislab.com/codeigniter/user-gui...ation.html). Any idea?
[eluser]Kamarg[/eluser]
Prefix your label with "lang:" in your validation rule. For example, if you have a field in your language file called "field_label_1" your validation rule label would be "lang:field_label_1".
[eluser]Mauricio de Abreu Antunes[/eluser]
Code: $config = array( If i put lang in 'label' index, does it work?
[eluser]Kamarg[/eluser]
Yes. You want "lang:" at the start of each of those label fields.
|
Welcome Guest, Not a member yet? Register Sign In |