I18n Class Reference
Inheritance diagram for I18n:

Public Member Functions | |
| & | getInstance () |
| translate ($singular, $plural=null, $domain=null, $category=null, $count=null) | |
Public Attributes | |
| $domain = null | |
| $l10n = null | |
Detailed Description
Definition at line 41 of file i18n.php.
Member Function Documentation
| & I18n::getInstance | ( | ) |
Return a static instance of the I18n class
- Returns:
- object I18n public
Definition at line 99 of file i18n.php.
Referenced by TranslateBehavior::_getLocale(), and translate().
| I18n::translate | ( | $ | singular, | |
| $ | plural = null, |
|||
| $ | domain = null, |
|||
| $ | category = null, |
|||
| $ | count = null | |||
| ) |
Used by the translation functions in basics.php Can also be used like I18n::translate(); but only if the uses('i18n'); has been used to load the class.
- Parameters:
-
string $singular String to translate string $plural Plural string (if any) string $domain Domain string $category Category integer $count Count
- Returns:
- string translated strings. public
Definition at line 119 of file i18n.php.
References $domain, getInstance(), Cache::read(), and Configure::read().
Member Data Documentation
| I18n::$domain = null |
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/libs/i18n.php