|
| __construct ($name=null) |
|
| usePage ($pageName) |
| Load translation texts for page $pageName.
|
|
| useFile ($fileName) |
| Load translation texts from $messages array in php-file $fileName.
|
|
| translate ($s, array $params=null) |
| Translate string $s to selected language.
|
|
| ntranslate ($s, $n, array $params=null) |
| Translate plural form of string $s ($n is number of items).
|
|
| translateTags ($s) |
| Translate each text in $s wrapped in <M></M> tags.
|
|
| loadDefaults ($className=null) |
| Load default parameters of class $className into object instance.
|
|
| setProperties (array $defaults) |
| Set public properties of object from the array. More...
|
|
| toArray () |
| Convert object to array. More...
|
|
Translate strings to another language.
Features:
- Can load translated texts from php array or database table.
- Can dig texts from templates and source and fill database table for you.
- Texts can be separated to pages, you can load only some pages for better performance.