コード例 #1
0
ファイル: contribution.php プロジェクト: rtgibbons/bya.org
 function t($text, $context = '')
 {
     if ($context == '') {
         return Translate($text, __CLASS__);
     } else {
         return Translate_With_GetText_Context($text, $context, __CLASS__);
     }
 }
コード例 #2
0
ファイル: class.i18n.php プロジェクト: marleexoxo/FWC
 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__);
     }
 }
コード例 #3
0
ファイル: class.i18n.php プロジェクト: Gculos/farmcosales
 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);
     }
 }
コード例 #4
0
 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__);
     }
 }