From 2149c1569fd0f316de6ba90e53434608243bbe91 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 13 Nov 2007 00:14:15 +0000 Subject: [PATCH] #1702 - When in translation mode on meta-data tab, refreshing CMS removes site tree git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44676 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 92508421..cc6dbb1d 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -17,6 +17,11 @@ abstract class LeftAndMain extends Controller { if(!empty($member->Locale)) { i18n::set_locale($member->Locale); } + + // set reading lang + if(Translatable::is_enabled()) { + Translatable::choose_site_lang(i18n::get_existing_content_languages('SiteTree')); + } parent::init();