Permalink
Browse files

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)
  • Loading branch information...
1 parent b0e334d commit 601df819cbe7d3479327574461906646559c569f @bhongong bhongong committed Aug 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/en/index.md
View
@@ -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

0 comments on commit 601df81

Please sign in to comment.