mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #134 from bhongong/patch-1
Correction on documentation regarding Setting the viewer's locale
This commit is contained in:
commit
3476a04eb4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user