protected function translateByShortHandString($shortHandString)
    {
        $shortHandStringParts = explode(':', $shortHandString);
        if (count($shortHandStringParts) === 3) {
            list($package, $source, $id) = $shortHandStringParts;
            return $this->createTranslationParameterToken($id)
                ->package($package)
                ->source(str_replace('.', '/', $source))
                ->translate();
        }

        throw new \InvalidArgumentException(sprintf('The translation shorthand string "%s" has the wrong format', $shortHandString), 1436865829);
    }
protected function translateByShortHandString($shortHandString)
    {
        $shortHandStringParts = explode(':', $shortHandString);
        if (count($shortHandStringParts) === 3) {
            list($package, $source, $id) = $shortHandStringParts;
            return $this->createTranslationParameterToken($id)
                ->package($package)
                ->source(str_replace('.', '/', $source))
                ->translate();
        }

        throw new \InvalidArgumentException(sprintf('The translation shorthand string "%s" has the wrong format', $shortHandString), 1436865829);
    }
protected function translateByShortHandString ( $ shortHandString ) { $ shortHandStringParts = explode ( ':' , $ shortHandString ) ; if ( count ( $ shortHandStringParts ) === 3 ) { list ( $ package , $ source , $ id ) = $ shortHandStringParts ; return $ this -> createTranslationParameterToken ( $ id ) -> package ( $ package ) -> source ( str_replace ( '.' , '/' , $ source ) ) -> translate ( ) ; } throw new \ InvalidArgumentException ( sprintf ( 'The translation shorthand string "%s" has the wrong format' , $ shortHandString ) , 1436865829 ) ; }
Translate by shorthand string

@param string $shortHandString (PackageKey:Source:trans-unit-id)
@return string Translated label or source label / ID key
@throws \InvalidArgumentException
Translate by shorthand string