From 601df819cbe7d3479327574461906646559c569f Mon Sep 17 00:00:00 2001 From: bhongong Date: Wed, 28 Aug 2013 16:04:31 +0800 Subject: [PATCH] Correction on documentation regarding Setting the viewer's locale Corrected Translatable docs in setting the locale based on $member->Locale to the correct method: Translatable::set_current_locale($member->Locale); instead of Translatable::set_reading_locale($member->Locale) --- docs/en/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index 6605c65..eb98083 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -336,7 +336,7 @@ By user preference (place this in your Page_Controller->init() method): :::php $member = Member::currentUser(); if($member && $member->Locale) { - Translatable::set_reading_locale($member->Locale); + Translatable::set_current_locale($member->Locale); } ### Templates