Feature #66831
closedForms: Localize form labels
100%
Description
To localize a form it would be handy to define the label value in the form {LLL:EXT:powermail/Resources/Private/Language/locallang.xlf:\In2code\Powermail\Domain\Model\Mail.name}. TS snippet:
10 = FIELDSET
10 {
10 = TEXTLINE
10 {
name = name
label {
value = {LLL:EXT:powermail/Resources/Private/Language/locallang.xlf:\In2code\Powermail\Domain\Model\Mail.name}
}
}
}
Updated by Björn Jacob over 9 years ago
- Subject changed from System extension form to Localize form labels using stdWrap features
- Status changed from New to Needs Feedback
- Assignee set to Roman Büchler
Could you please try if the following is working for you?
10 = FIELDSET 10 { 10 = TEXTLINE 10 { name = name label.value.data = {LLL:EXT:powermail/Resources/Private/Language/locallang.xlf:\In2code\Powermail\Domain\Model\Mail.name} } } }
I'm already using this kind of code but right now I'm not sure if this is only possible with some additional hacking I did.
Updated by Björn Jacob about 9 years ago
- Subject changed from Localize form labels using stdWrap features to Forms: Localize form labels
- Status changed from Needs Feedback to New
- Assignee deleted (
Roman Büchler)
Okay, tried it out on my own. This should be somehow tackled. Right now it's not possible to translate labels easily.
Nope, tested it not correctly. The following code works as expected:
enctype = multipart/form-data method = post prefix = tx_form confirmation = 1 postProcessor { 1 = mail 1 { recipientEmail = senderEmail = } } 10 = FIELDSET 10 { 10 = TEXTLINE 10 { name = name label.value.data = LLL:EXT:reports/Resources/Private/Language/locallang.xlf:mlang_labels_tablabel label.value.crop = 10|...|1 } }
Ticket #38163 introduced stdWrap functionality of the .value parameter.
Updated by Björn Jacob about 9 years ago
- Status changed from New to Closed
- Assignee set to Roman Büchler
- % Done changed from 0 to 100
Works as expected. Nothing to do here. Tested with current master of v6 and v7.