[eluser]chefnelone[/eluser]
Hello,
I've done a validation and it works fine. But my site is multilingual and the validation_errors() always shows the error in JUST one language: Spanish; even if changed to English.
I have the rigth folders 'spanish' and 'english' in applications/languages.
I need it to show the errors in english.
When I switch language, let's say to 'english' I set:
Code:
$this->session->userdata('language')='english';
Then if $this->session->userdata('language'); is set to 'english', then validation_errors(); should shows the errors in english. Am I right?
Code:
$this->firephp->log( $this->session->userdata('language') );// THIS OUTPUT 'english'
$this->form_validation->set_rules('name', 'Name', 'required');
if ($this->form_validation->run() == FALSE) {
echo $errors = validation_errors();// BUT THIS OUTPUT IS IN 'spanish'
}