TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #98924
Issue Bug Closed

#98924Harden LocalizationUtility with arguments

Georg Ringer 10/26/22, 08:39 updated 12/06/22, 21:41

Open in Forge Comment in Forge

Description

The default value of arguments of TranslateViewHelper has been switched from null to [].
To avoid exceptions, when no arguments are given, an additional check is needed.

the error occurs if a string like '%m/%d/%Y' is added to be translated but no arguments are provided

ArgumentCountError
4 arguments are required, 1 given

Reviews 2

  • 11.5 76407[BUGFIX] Harden LocalizationUtility with empty arguments Resolves this issue Merged Stefan Bürk CR +2 V +2 → main Normal +77 −1 11/03/22, 19:03
  • main 76269[BUGFIX] Harden LocalizationUtility with empty arguments Resolves this issue Merged Georg Ringer CR +2 V +2 → 11.5 Easy +36 −2 11/03/22, 18:22

Related issues 3

  • Bug #93346LocalizationUtility::translate throws uncaught exception, if the arguments contains an empty array Related to Closed Localization v9 Dieter Porth 01/22/21, 11:14
  • Task #96473Allow ServerRequestInterface in ext:fluid Related to Closed v12 Christian Kuhn 01/06/22, 11:32
  • Bug #99264ArgumentCountError by usage of f:translate viewhelper Related to Closed v12 Alex Kellner 12/04/22, 11:09
Author
Georg Ringer
Priority
Should have
Category
Extbase
Target version
12.1
TYPO3 version
12
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback