bfojcapell: Added Lang field to store user preferred language

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42124 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 16:21:55 +00:00
parent 835574ffe4
commit 44d5aef37a

View File

@ -24,7 +24,8 @@ class Member extends DataObject {
'AutoLoginExpired' => 'Datetime', 'AutoLoginExpired' => 'Datetime',
'BlacklistedEmail' => 'Boolean', 'BlacklistedEmail' => 'Boolean',
'PasswordEncryption' => "Enum('none', 'none')", 'PasswordEncryption' => "Enum('none', 'none')",
'Salt' => "Varchar(50)" 'Salt' => "Varchar(50)",
'Lang' => "Varchar(12)"
); );
static $belongs_many_many = array( static $belongs_many_many = array(
@ -710,7 +711,8 @@ class Member extends DataObject {
new HeaderField( "User Details" ), new HeaderField( "User Details" ),
new TextField("Email", "Email"), new TextField("Email", "Email"),
/*new TextField("Password", "Password")*/ /*new TextField("Password", "Password")*/
new PasswordField("Password", "Password") new PasswordField("Password", "Password"),
new LanguageDropdownField("Lang","Language")
//new TextareaField("Address","Address"), //new TextareaField("Address","Address"),
//new TextField("JobTitle", "Job Title"), //new TextField("JobTitle", "Job Title"),
//new TextField( "Organisation", "Organisation" ), //new TextField( "Organisation", "Organisation" ),