public function shortcodeTranslate(Event $event, array $atts, $content, $tag)
    {
        if (!empty($atts['domain'])) {
            return __d($atts['domain'], $content);
        } else {
            return __($content);
        }
    }
public function shortcodeTranslate(Event $event, array $atts, $content, $tag)
    {
        if (!empty($atts['domain'])) {
            return __d($atts['domain'], $content);
        } else {
            return __($content);
        }
    }
public function shortcodeTranslate ( Event $ event , array $ atts , $ content , $ tag ) { if ( ! empty ( $ atts [ 'domain' ] ) ) { return __d ( $ atts [ 'domain' ] , $ content ) ; } else { return __ ( $ content ) ; } }
Implements the "t" shortcode.

{t}Text for translate{/t}

@param \Cake\Event\Event $event The event that was fired
@param array $atts An associative array of attributes, or an empty string if
no attributes are given
@param string $content The enclosed content (if the shortcode is used in its
enclosing form)
@param string $tag The shortcode tag
@return string
Implements the t shortcode .