From 7912559ec82c87c01f470229e92ee099660c118e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 21 Oct 2007 19:53:57 +0000 Subject: [PATCH] FEATURE Respects 'lang' stored in cookies ENHANCEMENT choose_site_lang() accepts $availableLang (useful to check if a certain page has a translation, and fall back to default language) ENHANCEMENT Added documentation BUGFIX Rewrote Member->Lang to Member->Locale (CMS-translations are stored in locales as well), limited Locale Varchar to 6 characters, changed profile dropdown accordingly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43659 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index fc0b6328..19abdba7 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -14,8 +14,8 @@ abstract class LeftAndMain extends Controller { // set language $member = Member::currentUser(); - if(!empty($member->Lang)) { - i18n::set_locale($member->Lang); + if(!empty($member->Locale)) { + i18n::set_locale($member->Locale); } parent::init();