translate
Description
Look up a language key and test it against the currently specificed language.
Basic Example:
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
key | Yes | string | Key to lookup that was exported in strings file. | |
vars | No | array | [] | Array of variables for substitution. For each %s found in the language string, these variables are substituted in order starting with index 0. |
count | No | integer | 1 | Number of items. Intended for language keys whose value is a pluralized array. |
Examples
Language.translate for translation