Project

General

Profile

Actions

Bug #64901

closed

Revert changed default argument for TranslateViewHelper

Added by Georg Ringer over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Extbase
Target version:
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"


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #64546: Add CompilableInterface to a couple of ViewHelpersClosed2015-01-27

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36711

Actions #2

Updated by Georg Ringer over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF