Issue Bug Closed

#64901Revert changed default argument for TranslateViewHelper

Georg Ringer 02/06/15, 11:03 updated 10/19/17, 21:00

Description

The default value of propery $arguments changed from NULL to array(). This breaks the translation in certain behaviours as \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate() calls vsprintf if the arguments is an array.

breaking e.g. EXT:news where translation is used for the different time format. The locallang looks like

<trans-unit id="dateFormat" xml:space="preserve">
    <source>%m/%d/%Y</source>
</trans-unit>

and this leads to “PHP Warning: vsprintf(): Too few arguments”

Reviews 1