Public Member Functions | |
__construct ($path=null, $language= 'en_US') | |
translate ($key, $default= '') | |
getLanguage () | |
getTranslationsArray () | |
http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Usage example: $translator = new Translator( 'path/to/lang/repository/', 'fr_FR'); echo $translator->translate('translation key');
__construct | ( | $path = null , |
|
$language = 'en_US' |
|||
) |
getLanguage | ( | ) |
getTranslationsArray | ( | ) |
translate | ( | $key, | |
$default = '' |
|||
) |