diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php index 4265e7c3428323186b134ae8bdd480f6e5db2cac..69a5ced97a2e38fb9604bbc95f23743b9df2fcfb 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php @@ -65,11 +65,19 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic; * * :: * - * {f:translate(key: 'argumentsKey', arguments: {0: 'dog', 1: 'fox'}, default: 'default value')} + * {f:translate(key: 'someKey', arguments: {0: 'dog', 1: 'fox'}, default: 'default value')} * - * Value of key ``argumentsKey`` in the current website language - * with ``%1`` and ``%2`` are replaced by "dog" and "fox" (:php:`printf()`). - * If the key is not found, the output is "default value". + * Value of key ``someKey`` in the current website language + * with the given arguments (“dog†and “foxâ€) assigned for the specified + * ``%s`` conversions (:php:`sprintf()`) in the language file:: + * + * <trans-unit id="someKey" resname="argumentsKey"> + * <source>Some text about a %s and a %s.</source> + * </trans-unit> + * + * The output will be "Some text about a dog and a fox". + * + * If the key ``someKey`` is not found in the language file, the output is “default valueâ€. * * Inline notation with extension name * -----------------------------------