| Function Summary | |
|---|---|
| string | _zm_l10n_lookup(string text, string default, var args) The actual l10n workhorse. |
| string | zen_date_raw(string date, boolean reverse) Convert UI date into a raw date format that zen-cart understands. |
| string | zm_i18n(string name) Lookup and echo a i18n specific setting. |
| void | zm_i18n_add(mixed name, string value) Add i18n setting. |
| void | Finalise i18n settings. |
| string | zm_l10n(string text, var args) Lookup and echo a language specific text. |
| void | zm_l10n_add(array map) Add language mappings. |
| string | zm_l10n_chunk_get(string name, var args) Lookup a language specific chunk. |
| string | zm_l10n_get(string text, var args) Lookup a language specific text. |
public string _zm_l10n_lookup(string text, string default, var args)
The actual l10n workhorse.
vsprintf(..) to insert variables into the localized text.public string zen_date_raw(string date, boolean reverse)
Convert UI date into a raw date format that zen-cart understands.
This generic implementation will work as long as UI_DATE_FORMAT
is defined.
The function will honour DD, MM, CC, YY
and YYYY in the format.
NOTE: The format is *not* case sensitive.
true, the returned data will be reversed.YYYYDDMM or MMDDYYYY, respectivley.public string zm_i18n(string name)
Lookup and echo a i18n specific setting.
public void zm_i18n_add(mixed name, string value)
Add i18n setting.
name is of type array).public void zm_i18n_finalise()
Finalise i18n settings.
This function will convert all i18n settings into corresponding defines and
do all additional stuff that should be done just once.
public string zm_l10n(string text, var args)
Lookup and echo a language specific text.
vsprintf(..) to insert variables into the localized text.public void zm_l10n_add(array map)
Add language mappings.
public string zm_l10n_chunk_get(string name, var args)
Lookup a language specific chunk.
Similar to zm_l10n_get(..), except that the first argument is a chunk (file-)name, rather
than a real localizable string.
vsprintf(..) to insert variables into the localized text.null.public string zm_l10n_get(string text, var args)
Lookup a language specific text.
vsprintf(..) to insert variables into the localized text.