private static function Phamlp::translate in Sassy 7
* Translates a message to the specified language. * If the language or the message in the specified language is not defined the * original message is returned. *
Parameters
string message category: * @param string the original message * @return string the translated message
1 call to Phamlp::translate()
- Phamlp::t in phamlp/
Phamlp.php - * Translates a message to the specified language. *
File
- phamlp/
Phamlp.php, line 47
Class
- Phamlp
- Phamlp class. Static support classes. @package PHamlP
Code
private static function translate($category, $message) {
if (empty(self::$messages[$category])) {
self::loadMessages($category);
}
return empty(self::$messages[$category][$message]) ? $message : self::$messages[$category][$message];
}