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)
This commit is contained in:
bhongong 2013-08-28 16:04:31 +08:00
parent b0e334d450
commit 601df819cb

View File

@ -336,7 +336,7 @@ By user preference (place this in your Page_Controller->init() method):
:::php :::php
$member = Member::currentUser(); $member = Member::currentUser();
if($member && $member->Locale) { if($member && $member->Locale) {
Translatable::set_reading_locale($member->Locale); Translatable::set_current_locale($member->Locale);
} }
### Templates ### Templates