diff --git a/src/IDF/Form/UserAccount.php b/src/IDF/Form/UserAccount.php index ed22dfa..3d1ded1 100644 --- a/src/IDF/Form/UserAccount.php +++ b/src/IDF/Form/UserAccount.php @@ -49,6 +49,18 @@ class IDF_Form_UserAccount extends Pluf_Form 'size' => 20, ), )); + + $this->fields['language'] = new Pluf_Form_Field_Varchar( + array('required' => true, + 'label' => __('Language'), + 'initial' => $this->user->language, + 'widget' => 'Pluf_Form_Widget_SelectInput', + 'widget_attrs' => array( + 'choices' => + Pluf_L10n::getInstalledLanguages() + ), + )); + $this->fields['password'] = new Pluf_Form_Field_Varchar( array('required' => false, 'label' => __('Your password'), diff --git a/src/IDF/templates/idf/user/myaccount.html b/src/IDF/templates/idf/user/myaccount.html index e1b9a2c..7e77518 100644 --- a/src/IDF/templates/idf/user/myaccount.html +++ b/src/IDF/templates/idf/user/myaccount.html @@ -28,6 +28,12 @@