Welcome Guest, Not a member yet? Register   Sign In
validation_errors() in a multilingual site?
#1

[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'
}


Messages In This Thread
validation_errors() in a multilingual site? - by El Forum - 05-13-2010, 12:44 AM
validation_errors() in a multilingual site? - by El Forum - 05-13-2010, 03:11 AM
validation_errors() in a multilingual site? - by El Forum - 05-13-2010, 04:53 AM
validation_errors() in a multilingual site? - by El Forum - 05-13-2010, 08:21 AM
validation_errors() in a multilingual site? - by El Forum - 05-13-2010, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB