Actions
Bug #64901
closedRevert changed default argument for TranslateViewHelper
Start date:
2015-02-06
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint
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"
Actions