Used by the translation functions in basics.php
Returns a translated string based on current language and translation files stored in locale folder
public static translate ( string $singular, string $plural = null, string $domain = null, string $category = self::LC_MESSAGES, integer $count = null, string $language = null, string $context = null ) : string | ||
$singular | string | String to translate |
$plural | string | Plural string (if any) |
$domain | string | Domain The domain of the translation. Domains are often used by plugin translations. If null, the default domain will be used. |
$category | string | Category The integer value of the category to use. |
$count | integer | Count Count is used with $plural to choose the correct plural form. |
$language | string | Language to translate string to. If null it checks for language in session followed by Config.language configuration variable. |
$context | string | Context The context of the translation, e.g a verb or a noun. |
return | string | translated string. |