Module mod_l10n

Localization of Zotonic.

Copyright © 2011-2014 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Localization of Zotonic. Country, timezone, and other lookups.

Function Index

observe_admin_menu/3
observe_pivot_rsc_data/3Expand the two letter iso code country depending on the languages in the resource.
observe_request_context/3Check if the user has a preferred timezone.
observe_user_context/3
set_user_timezone/2Set the timezone, as selected by the user.

Function Details

observe_admin_menu/3

observe_admin_menu(Admin_menu, Acc, Context) -> any()

observe_pivot_rsc_data/3

observe_pivot_rsc_data(Pivot_rsc_data, Rsc, Context) -> any()

Expand the two letter iso code country depending on the languages in the resource.

observe_request_context/3

observe_request_context(Request_context, Context, X3) -> any()

Check if the user has a preferred timezone

observe_user_context/3

observe_user_context(User_context, Context, X3) -> any()

set_user_timezone/2

set_user_timezone(Tz, Context) -> any()

Set the timezone, as selected by the user. Persist this choice.


Generated by EDoc