PHP Class MultilingualPlugin, addons
You can trigger an alternate locale by adding 'locale' in the query string,
setting var vanilla_embed_locale in an embedded forum, or selecting one of the
language links added to the footer. User-selected locale takes precedence.
The selected locale is stored in the session. If it is user-selected AND the
user is logged in, it is stored in UserMeta.
Exibir arquivo
Open project: vanilla/addons
Class Usage Examples
Protected Properties
Public Methods
Protected Methods
Method Details
base_render_before()
public method
Show alternate locale options in Foot.
enabledLocales()
public static method
Return the enabled locales suitable for local choosing.
gdn_dispatcher_afterAnalyzeRequest_handler()
public method
Moved event from AppStart to AfterAnalyzeRequest to allow Embed to set P3P header first.
getAlternateLocale()
protected method
Get user preference or queried locale.
profileController_setLocale_create()
public method
Allow user to set their preferred locale via link-click.
validateLocale()
protected method
Confirm selected locale is valid and available.
Property Details
$overrides protected_oe static_oe property
protected static $overrides |