Skip to content

Commit 6ffd9bb

Browse files
authored
Merge pull request #1 from b13/feature/add-translations
Add tranlation files for default (en) and de
2 parents cda4554 + 4cd3470 commit 6ffd9bb

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

Configuration/Yaml/FormSetup.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.email_template_field: &email_template_field
33
identifier: emailTemplate
44
templateName: Inspector-SingleSelectEditor
5-
label: 'Select email template'
5+
label: 'form_custom_templates.select.label'
66
propertyPath: options.emailTemplate
77
selectOptions:
88
0:
9-
value: ""
10-
label: "Default"
9+
value: ''
10+
label: 'form_custom_templates.select.default'
1111

1212
# Definition of the additional dropdown for template selection
1313
.email_template_options: &email_template_options
@@ -24,7 +24,7 @@
2424
FormEngine:
2525
elements:
2626
emailTemplate:
27-
label: 'Select email template'
27+
label: 'form_custom_templates.select.label'
2828
config:
2929
type: select
3030
renderType: selectSingle
@@ -35,7 +35,7 @@
3535
# items again, because it is a different format! Partey!
3636
items:
3737
0:
38-
- "Default"
38+
- 'form_custom_templates.select.default'
3939
# The default value is required for v10, otherwise this will show up as "INVALID VALUE"
4040
# can be set to "" (empty string) once we support v11 and up only.
4141
- "[Empty]"
@@ -44,12 +44,18 @@ TYPO3:
4444
Form:
4545
prototypes:
4646
standard:
47+
formEngine:
48+
translationFiles:
49+
97: 'EXT:form_custom_templates/Resources/Private/Language/Database.xlf'
50+
formEditor:
51+
translationFiles:
52+
97: 'EXT:form_custom_templates/Resources/Private/Language/Database.xlf'
4753
formElementsDefinition:
4854
Form:
4955
formEditor:
5056
propertyCollections:
5157
finishers:
52-
# add finisher fields
58+
# Add finisher field
5359
10:
5460
identifier: EmailToSender
5561
editors:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3+
<file source-language="en" datatype="plaintext" original="EXT:form_custom_templates/Resources/Private/Language/locallang.xlf" date="2022-02-16T17:00:00Z" product-name="form_custom_templates">
4+
<header/>
5+
<body>
6+
<trans-unit id="form_custom_templates.select.label" resname="form_custom_templates.select.label">
7+
<source>Select email template</source>
8+
</trans-unit>
9+
<trans-unit id="form_custom_templates.select.default" resname="form_custom_templates.select.default">
10+
<source>Default</source>
11+
</trans-unit>
12+
</body>
13+
</file>
14+
</xliff>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3+
<file source-language="de" datatype="plaintext" original="EXT:form_custom_templates/Resources/Private/Language/locallang.xlf" date="2022-02-16T17:00:00Z" product-name="form_custom_templates">
4+
<header/>
5+
<body>
6+
<trans-unit id="form_custom_templates.select.label" resname="form_custom_templates.select.label">
7+
<source>Select email template</source>
8+
<target>E-Mail Template wählen</target>
9+
</trans-unit>
10+
<trans-unit id="form_custom_templates.select.default" resname="form_custom_templates.select.default">
11+
<source>Default</source>
12+
<target>Standard</target>
13+
</trans-unit>
14+
</body>
15+
</file>
16+
</xliff>

0 commit comments

Comments
 (0)