Neos\Flow\I18n\EelHelper\TranslationHelper::translateByShortHandString PHP 메소드

translateByShortHandString() 보호된 메소드

Translate by shorthand string
protected translateByShortHandString ( string $shortHandString ) : string
$shortHandString string (PackageKey:Source:trans-unit-id)
리턴 string Translated label or source label / ID key
    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);
    }