Module m_l10n

Localization of Zotonic.

Copyright © 2011 Marc Worrell

Behaviours: zotonic_model.

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

Description

Localization of Zotonic. Country, and other lookups.

Function Index

countries/1Return a sorted list of country names in the language of the context.
country_name/2Return the name of the country belonging to the code, use the language of the context.
country_name/3
is_timezone/1
m_get/3Fetch the value for the key from a model source.
timezones/0

Function Details

countries/1

countries(Context) -> any()

Return a sorted list of country names in the language of the context

country_name/2

country_name(Code, Context) -> any()

Return the name of the country belonging to the code, use the language of the context

country_name/3

country_name(Code, Language, Context) -> any()

is_timezone/1

is_timezone(Tz::binary() | string()) -> boolean()

m_get/3

m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()

Fetch the value for the key from a model source

timezones/0

timezones() -> [binary()]


Generated by EDoc