The following global functions are available with the Intl package.
Using these functions will require the
Titon\Intl\Translator class to be registered in a Titon\Context\Depository instance.
Returns a message defined by key in dot notated format (includes the domain and catalog). An optional list of parameters can be passed for interpolation. Learn more about translating strings.
$message = msg('domain.catalog.key');A variant on msg() which allows for the catalog, domain, and key to be entered separately. If the catalog and domain are omitted, they will default to "default" and "common" respectively.
$message = __('key', 'catalog', 'domain');Returns the Titon\Intl\Translator instance found in the Titon\Context\Depository container. If no instance exists, it will attempt to make one.