ZenMagick 0.9.10


Functions


Function Summary
string

_zm_l10n_lookup(string text, string default, var args)

The actual l10n workhorse.

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.

Function Detail

l10n.php at line 121

_zm_l10n_lookup

public string _zm_l10n_lookup(string text, string default, var args)

The actual l10n workhorse.

Parameters:
text - The text.
default - A default text in case there is no localized version of the given text.
args - A variable number of arguments that will be used as arguments for vsprintf(..) to insert variables into the localized text.
Returns:
A localized version based on the current language, or the original text.
Deprecated:
use _zm instead

l10n.php at line 33

zm_l10n

public string zm_l10n(string text, var args)

Lookup and echo a language specific text.

Parameters:
text - The text.
args - A variable number of arguments that will be used as arguments for vsprintf(..) to insert variables into the localized text.
Returns:
A localized version based on the current language, or the original text.
Deprecated:
use _vzm instead

l10n.php at line 96

zm_l10n_add

public void zm_l10n_add(array map)

Add language mappings.

Parameters:
map - The new/additional mappings.
Deprecated:
- no replacement

l10n.php at line 70

zm_l10n_chunk_get

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.

Parameters:
name - The chunk name.
args - A variable number of arguments that will be used as arguments for vsprintf(..) to insert variables into the localized text.
Returns:
A localized version based on the current language, or null.
Deprecated:
use static page instead

l10n.php at line 50

zm_l10n_get

public string zm_l10n_get(string text, var args)

Lookup a language specific text.

Parameters:
text - The text.
args - A variable number of arguments that will be used as arguments for vsprintf(..) to insert variables into the localized text.
Returns:
A localized version based on the current language, or the original text.
Deprecated:
use _zm instead

ZenMagick 0.9.10