I've a multilanguage-site and I created a custom form
class MyLoginForm extends LoginForm ...
everything works fine (This forum was and is allways a good help!). Also if I have selected German, then when the form is displayed, it is allways set to english and i18n::get_locale() will allways output en_US. All other Pages are in German.
In page.php was "de_DE" set with:
Do anyone know why or where is it set to en_US? Did I anything wrong?
works im my class MyLoginForm. But sometimes user select en_US.
How can I set language in my form? How can I access to the property $this->dataRecord->Locale out of my class MyLoginForm?