Project

General

Profile

Actions

Bug #86202

closed

previousButtonLabel and nextButtonLabel not translatable for a specific form

Added by Sebastian Klein about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2018-09-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I tried several translation key combinations to translate the previousButtonLabel and nextButtonLabel only for a specific form definition, but it seems this is currently not possible.

What does work (sets label for every form):

<trans-unit id="element.SummaryPage.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>

What doesn't work:

<trans-unit id="<form-identifier>.element.SummaryPage.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>
<trans-unit id="element.<form-identifier>.SummaryPage.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>
<trans-unit id="element.SummaryPage.<form-identifier>.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>
<trans-unit id="element.<form-identifier>.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>

I would have expected to translate these the same as the submitButtonLabel:

<trans-unit id="element.<form-identifier>.renderingOptions.submitButtonLabel">
    <source>Send message</source>
</trans-unit>

(the order of this translation key seems odd anyway, as the form identifier is the second part here, contrary to prepending it to keys for field labels like <form-identifier>.element.<element-name>.properties.label)

Is this a missing feature or do I use a wrong translation key?

Actions #1

Updated by Sebastian Klein about 6 years ago

Okay, it is possible to translate previousButtonLabel and nextButtonLabel for specific forms, as long as you use the identifiers of the included pages and summarypages:

<trans-unit id="<form-identifier>.element.<element-identifier>.renderingOptions.nextButtonLabel">
    <source>next</source>
</trans-unit>
<trans-unit id="element.<element-identifier>.renderingOptions.previousButtonLabel">
    <source>back</source>
</trans-unit>

Still had no luck to successfully combine element-type and form-identifier. But this solution is flexible enough.

Actions #2

Updated by Sebastian Klein about 6 years ago

  • % Done changed from 0 to 100
Actions #3

Updated by Georg Ringer about 6 years ago

  • Status changed from New to Resolved

setting to resolved

Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF