From 44d5aef37ac1bc0b821dd3cbde4d47775b3e5d09 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 16:21:55 +0000 Subject: [PATCH] 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 --- security/Member.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/security/Member.php b/security/Member.php index c96ee7c30..167b505cf 100644 --- a/security/Member.php +++ b/security/Member.php @@ -24,7 +24,8 @@ class Member extends DataObject { 'AutoLoginExpired' => 'Datetime', 'BlacklistedEmail' => 'Boolean', 'PasswordEncryption' => "Enum('none', 'none')", - 'Salt' => "Varchar(50)" + 'Salt' => "Varchar(50)", + 'Lang' => "Varchar(12)" ); static $belongs_many_many = array( @@ -710,7 +711,8 @@ class Member extends DataObject { new HeaderField( "User Details" ), new TextField("Email", "Email"), /*new TextField("Password", "Password")*/ - new PasswordField("Password", "Password") + new PasswordField("Password", "Password"), + new LanguageDropdownField("Lang","Language") //new TextareaField("Address","Address"), //new TextField("JobTitle", "Job Title"), //new TextField( "Organisation", "Organisation" ),