/** * Get the translated value for an id or original label * * Replace all placeholders with corresponding values if they exist in the * translated label. * * @param string $id Id to use for finding translation (trans-unit id in XLIFF) * @param string $value If $key is not specified or could not be resolved, this value is used. If this argument is not set, child nodes will be used to render the default * @param array $arguments Numerically indexed array of values to be inserted into placeholders * @param string $source Name of file with translations * @param string $package Target package key. If not set, the current package key will be used * @param mixed $quantity A number to find plural form for (float or int), NULL to not use plural forms * @param string $locale An identifier of locale to use (NULL for use the default locale) * @return string Translated label or source label / ID key * @throws \TYPO3\Eel\Exception */ protected function translateByExplicitlyPassedOrderedArguments($id, $value = NULL, $arguments = array(), $source = 'Main', $package = NULL, $quantity = NULL, $locale = NULL) { $translationParameterToken = $this->translationParameterTokenFactory->create(); $translationParameterToken->id($id)->value($value)->arguments($arguments)->source($source)->package($package)->quantity($quantity)->locale($locale); return $translationParameterToken->translate(); }