Beispiel #1
0
 function t($text, $context = '')
 {
     if ($context == '') {
         return Translate($text, __CLASS__);
     } else {
         return Translate_With_GetText_Context($text, $context, __CLASS__);
     }
 }
Beispiel #2
0
 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__);
     }
 }
Beispiel #3
0
 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__);
     }
 }