mod_l10n

Localization of Zotonic. Provides lookups for country, month, week names. Localization module providing locale, country, and timezone data and related helpers.

Accepted Events

This module handles the following notifier callbacks:

  • observe_admin_menu: Add localization and timezone settings entries to the admin menu.

  • observe_pivot_rsc_data: Expand the two letter iso code country depending on the languages in the resource using m_l10n:country_name.

  • observe_request_context: Check if the user has a preferred timezone using z_acl:user.

  • observe_user_context: Set user context language/timezone defaults based on the user profile resource.

Edit on GitHub

Models

l10n

Model for localization helpers, including countries, country names, available timezones, and site timezone settings.

Dispatch rules

dispatch

Dispatch rules Name Path Resource Args admin_l10n [“admin”,”localization”] controller_admin [{template,”admin_l10n.

Referred by

All dispatch rules

All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.