translate($messageId, $context); } /** * @see Translator::translateInDomain() For the function documentation. */ function mt($domain, $messageId, $context = null) { return StaticTranslator::$instance->translateInDomain($domain, $messageId, $context); } /** * @see Translator::translatePlural() For the function documentation. */ function tp($messageId, $messageId2, $number, $context = null) { return StaticTranslator::$instance->translatePlural($messageId, $messageId2, $number, $context); } /** * @see Translator::translatePluralInDomain() For the function documentation. */ function mtp($domain, $messageId, $messageId2, $number, $context = null) { return StaticTranslator::$instance->translatePluralInDomain( $domain, $messageId, $messageId2, $number, $context ); } } else { /** * @see Translator::translate() For the function documentation. */ function t($messageId, $context = null) { return $messageId; } /** * @see Translator::translate() For the function documentation. */ function mt($domain, $messageId, $context = null) { return $messageId; } /** * @see Translator::translatePlural() For the function documentation. */ function tp($messageId, $messageId2, $number, $context = null) { if ((int) $number !== 1) { return $messageId2; } return $messageId; } /** * @see Translator::translatePlural() For the function documentation. */ function mtp($domain, $messageId, $messageId2, $number, $context = null) { if ((int) $number !== 1) { return $messageId2; } return $messageId; } }