Project

General

Profile

Actions

Feature #66831

closed

Forms: Localize form labels

Added by Roman Büchler over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Could have
Category:
Form Framework
Target version:
-
Start date:
2015-05-07
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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}
}
}
}

Actions #1

Updated by Wouter Wolters over 9 years ago

  • Category set to Form Framework
Actions #2

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.

Actions #3

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.

Actions #4

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.

Actions

Also available in: Atom PDF