Welcome Guest, Not a member yet? Register   Sign In
Autoload of form_validation_lang
#1

[eluser]felix_[/eluser]
Hey,
i'm developing a website in 2 languages.
I'm using the build in Language class.
I also want to have the form validation texts in both languages - so i copied the form_validation_lang.php from system/language/english to application/language/german and translated the texts.
I extended my standard controller that it looks up on every request which language is stored in the session and load the specific lang file.
When i use form validation on some sites i have to check the language again and and load the form_validation_lang file manually.
Isn't there a way that CI can detect my previously loaded language and autoload the form_validation_lang file automatically?




Theme © iAndrew 2016 - Forum software by © MyBB