1884 Posts in 645 Topics by 583 members
|Go to End|
22 October 2009 at 9:05pm
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?
2 November 2009 at 8:45am
Hm, how do you access your custom login form? Did you override the Security/login DIrector rule?
> Also if I have selected German, then when the form is displayed, it is allways set to english
So you've selected it by i18n::set_locale(), right? The user-specific settings in profile popup won't have any effect before logging in.
|Go to Top|