|
eZ Publish
[4.2]
|
Translates text into the leet (1337) language. More...
Inheritance diagram for eZ1337Translator:
Collaboration diagram for eZ1337Translator:Public Member Functions | |
| eZ1337Translator () | |
| findMessage ($context, $source, $comment=null) | |
| leetify ($text) | |
| translate ($context, $source, $comment=null) | |
Static Public Member Functions | |
| static | initialize () |
Public Attributes | |
| $Messages | |
| Contains the hash table with cached 1337 translations. | |
Translates text into the leet (1337) language.
It translates the following characters/strings
Definition at line 52 of file ez1337translator.php.
| eZ1337Translator::eZ1337Translator | ( | ) |
Construct the translator and loads the translation file $file if is set and exists.
Definition at line 57 of file ez1337translator.php.
Referenced by initialize().
| eZ1337Translator::findMessage | ( | $ | context, |
| $ | source, | ||
| $ | comment = null |
||
| ) | [virtual] |
If you know the translation key use findKey() instead.
This function must overridden if isKeyBased() is true.
Implements eZTranslatorHandler.
Definition at line 64 of file ez1337translator.php.
Referenced by translate().
| static eZ1337Translator::initialize | ( | ) | [static] |
Initialize the bork translator if this is not allready done.
Definition at line 115 of file ez1337translator.php.
| eZ1337Translator::leetify | ( | $ | text | ) |
Translates the text into 1337 code.
Definition at line 81 of file ez1337translator.php.
Referenced by findMessage().
| eZ1337Translator::translate | ( | $ | context, |
| $ | source, | ||
| $ | comment = null |
||
| ) | [virtual] |
Implements eZTranslatorHandler.
Definition at line 100 of file ez1337translator.php.
| eZ1337Translator::$Messages |
Contains the hash table with cached 1337 translations.
Definition at line 130 of file ez1337translator.php.