Translatable::choose_site_locale
Choose the language the site is currently on.
If $_GET['locale'] is currently set, then that locale will be used. Otherwise the member preference (if logged in) or default locale will be used.
Signature
public function choose_site_locale([array
$langsAvailable = ] )
Parameters
$langsAvailable
— array- A numerical array of languages which are valid choices (optional)
Returns
- string
- Selected language (also saved in $current_locale).
Line | Task |
---|---|
252+ | Re-implement cookie and member option |