function t($text, $context = '') { if ($context == '') { return Translate($text, __CLASS__); } else { return Translate_With_GetText_Context($text, $context, __CLASS__); } }
public function t($text, $context = Null) { # Translates the string $text with context $context if (empty($context)) { return Translate($text, __CLASS__); } else { return Translate_With_GetText_Context($text, $context, __CLASS__); } }
static function t($text, $context = Null) { # Load text domain if (!self::$textdomain_loaded) { self::loadTextDomain(); } # Translates the string $text with context $context if (empty($context)) { return Translate($text, self::$textdomain); } else { return Translate_With_GetText_Context($text, $context, self::$textdomain); } }
function t($text, $context = '') { // Translates the string $text with context $context if ($context == '') { return Translate($text, __CLASS__); } else { return Translate_With_GetText_Context($text, $context, __CLASS__); } }