Skip to content

Commit

Permalink
[BUGFIX] Remove obsolete default localization workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Dec 30, 2024
1 parent f7c69b5 commit 4b28b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions Resources/Private/Partials/FormErrors.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
<f:for each="{validationResults.flattenedErrors}" key="propertyPath" as="errors">
<li>
<a href="{anchorLink}#{propertyPath}" data-key="error.{propertyPath}.{errors.0.code}">
<f:comment>@todo Workaround for core bug, see https://forge.typo3.org/issues/102580</f:comment>
<f:variable name="message"><f:translate key="error.{propertyPath}.{errors.0.code}" arguments="{errors.0.arguments}" /></f:variable>
<f:if condition="{message}">
<f:then>{message}</f:then>
<f:else>{errors.0.message}</f:else>
</f:if>
<f:translate key="error.{propertyPath}.{errors.0.code}" arguments="{errors.0.arguments}">{errors.0.message}</f:translate>
</a>
</li>
</f:for>
Expand Down
7 changes: 1 addition & 6 deletions Resources/Private/TwitterBootstrap4/Partials/FormErrors.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ <h4 class="alert-heading"><f:translate key="error.headline" /></h4>
<f:for each="{validationResults.flattenedErrors}" key="propertyPath" as="errors">
<li>
<a href="{anchorLink}#{propertyPath}" class="alert-link" data-key="error.{propertyPath}.{errors.0.code}">
<f:comment>@todo Workaround for core bug, see https://forge.typo3.org/issues/102580</f:comment>
<f:variable name="message"><f:translate key="error.{propertyPath}.{errors.0.code}" arguments="{errors.0.arguments}" /></f:variable>
<f:if condition="{message}">
<f:then>{message}</f:then>
<f:else>{errors.0.message}</f:else>
</f:if>
<f:translate key="error.{propertyPath}.{errors.0.code}" arguments="{errors.0.arguments}">{errors.0.message}</f:translate>
</a>
</li>
</f:for>
Expand Down

0 comments on commit 4b28b6c

Please sign in to comment.