Skip to content

Commit dd0e30a

Browse files
Merge pull request #49 from crydotsnake/task/code-cleanup-tranlations
TASK: Code Clean up & add missing backend translations
2 parents 54a7d1d + 4b35c7f commit dd0e30a

File tree

7 files changed

+135
-17
lines changed

7 files changed

+135
-17
lines changed

Resources/Private/Fusion/Controller/Backend/ExportDefinition/Index.fusion

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ prototype(PunktDe.Form.Persistence:Backend.ExportDefinition.Index) < prototype(N
99
exportDefinitionEditorApp = Neos.Fusion:ResourceUri {
1010
path = 'resource://PunktDe.Form.Persistence/Public/ExportDefinitionEditorApp/build/static/js/main.js'
1111
}
12-
exporterTypes =${Json.stringify(Array.keys(Configuration.setting('PunktDe.Form.Persistence.exporter')))}
12+
exporterTypes = ${Json.stringify(Array.keys(Configuration.setting('PunktDe.Form.Persistence.exporter')))}
1313

1414

1515
renderer = afx`
@@ -19,7 +19,7 @@ prototype(PunktDe.Form.Persistence:Backend.ExportDefinition.Index) < prototype(N
1919
<div id="app" data-api-formdata={apiEndpoint.formData} data-api-exportdefinition={apiEndpoint.exportDefinition} data-exporter-types={props.exporterTypes}></div>
2020
</div>
2121
<div class="neos-footer">
22-
<a class="neos-button neos-button-primary" title="Export definitions" href={props.backToFormDataLink}>Back to Form data export</a>
22+
<a class="neos-button neos-button-primary" title="Export definitions" href={props.backToFormDataLink}>{I18n.translate('PunktDe.Form.Persistence:Backend.ExportDefinition:back.to.formdata.export')}</a>
2323
</div>
2424
</div>
2525

Resources/Private/Fusion/Controller/Backend/FormData/Index.fusion

+12-12
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ prototype(PunktDe.Form.Persistence:Backend.FormData.Index) < prototype(Neos.Fusi
5959
<Neos.Fusion.Form:Hidden field.name="siteName" attributes.value={formData.siteName}/>
6060
<Neos.Fusion.Form:Hidden field.name="dimensionsHash" attributes.value={formData.dimensionsHash}/>
6161
<Neos.Fusion.Form:Hidden field.name="hash" attributes.value={formData.hash}/>
62-
<Neos.Fusion.Form:Button attributes.class="neos-button neos-button-primary">Download</Neos.Fusion.Form:Button>
62+
<Neos.Fusion.Form:Button attributes.class="neos-button neos-button-primary">{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.download')}</Neos.Fusion.Form:Button>
6363
</Neos.Fusion.Form:Form>
6464
</td>
6565
<td class="neos-action">
@@ -79,32 +79,32 @@ prototype(PunktDe.Form.Persistence:Backend.FormData.Index) < prototype(Neos.Fusi
7979
renderer = afx`
8080
<div class="neos-content neos-container-fluid">
8181
<div class="neos-module-container">
82-
<table class="neos-table" @if.savedFormData={props.tableRows}>
82+
<table class="neos-table" @if.hasSavedFormData={props.tableRows}>
8383
<thead>
8484
<tr>
8585
<th>
86-
Site
86+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.site')}
8787
</th>
8888
<th>
89-
Dimension
89+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.dimension')}
9090
</th>
9191
<th>
92-
Form Identifier
92+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.form.identifier')}
9393
</th>
9494
<th>
95-
Version
95+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.version')}
9696
</th>
9797
<th>
98-
Count
98+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.count')}
9999
</th>
100100
<th>
101-
Latest
101+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.latest')}
102102
</th>
103103
<th>
104-
Scheduled
104+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.scheduled')}
105105
</th>
106106
<th>
107-
Export definition
107+
{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.export.definition')}
108108
</th>
109109
<th/>
110110
</tr>
@@ -113,10 +113,10 @@ prototype(PunktDe.Form.Persistence:Backend.FormData.Index) < prototype(Neos.Fusi
113113
{props.tableRows}
114114
</tbody>
115115
</table>
116-
<div @if.noSavedFormData={!props.tableRows}>There is either no saved form data to display or your account is missing the required privileges.</div>
116+
<div @if.hasNoSavedFormData={!props.tableRows}>{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.no.saved.form.data')}</div>
117117
</div>
118118
<div class="neos-footer">
119-
<a class="neos-button neos-button-primary" title="Export definitions" href={props.exportDefinitionsLink}>Manage Export Definitions</a>
119+
<a class="neos-button neos-button-primary" title="Export definitions" href={props.exportDefinitionsLink}>{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:index.manage.export.definitions')}</a>
120120
</div>
121121
</div>
122122
`

Resources/Private/Fusion/Controller/Backend/FormData/Preview.fusion

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ prototype(PunktDe.Form.Persistence:Backend.FormData.Preview) < prototype(Neos.Fu
4343
renderer = afx`
4444
<div class="neos-module-container">
4545
<br />
46-
<h2>Data of this form is automatically exported and sent via mail to {scheduledExport.email}.</h2>
46+
<h2>{I18n.translate('PunktDe.Form.Persistence:Backend.FormData:preview.scheduledExport.email.text')} {scheduledExport.email}.</h2>
4747
<br />
4848
</div>
4949
`
@@ -66,8 +66,7 @@ prototype(PunktDe.Form.Persistence:Backend.FormData.Preview) < prototype(Neos.Fu
6666
</table>
6767
</div>
6868
<div class="neos-footer">
69-
<a class="neos-button neos-button-primary" title="Export definitions" href={props.backToFormDataLink}>Back
70-
to Form data export</a>
69+
<a class="neos-button neos-button-primary" title="Export definitions" href={props.backToFormDataLink}>{I18n.translate('PunktDe.Form.Persistence:Backend.ExportDefinition:back.to.formdata.export')}</a>
7170
</div>
7271
</div>
7372
`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="" product-name="PunktDe.Form.Persistence" source-language="en" datatype="plaintext" target-language="de">
4+
<body>
5+
<trans-unit id="back.to.formdata.export">
6+
<source>Back to Form data export</source>
7+
<target>Zurück zum Formulardatenexport</target>
8+
</trans-unit>
9+
</body>
10+
</file>
11+
</xliff>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="" product-name="PunktDe.Form.Persistence" source-language="en" datatype="plaintext" target-language="de">
4+
<body>
5+
<trans-unit id="preview.scheduledExport.email.text">
6+
<source>Data of this form is automatically exported and sent via mail to</source>
7+
<target>Die Daten dieses Formulars werden automatisch exportiert und per E-Mail gesendet an</target>
8+
</trans-unit>
9+
<trans-unit id="index.site">
10+
<source>Site</source>
11+
<target>Seite</target>
12+
</trans-unit>
13+
<trans-unit id="index.dimension">
14+
<source>Dimension</source>
15+
<target>Dimension</target>
16+
</trans-unit>
17+
<trans-unit id="index.form.identifier">
18+
<source>Form Identifier</source>
19+
<target>Formular Kennung</target>
20+
</trans-unit>
21+
<trans-unit id="index.version">
22+
<source>Version</source>
23+
<target>Version</target>
24+
</trans-unit>
25+
<trans-unit id="index.count">
26+
<source>Count</source>
27+
<target>Anzahl</target>
28+
</trans-unit>
29+
<trans-unit id="index.latest">
30+
<source>Latest</source>
31+
<target>Aktuellste</target>
32+
</trans-unit>
33+
<trans-unit id="index.scheduled">
34+
<source>Scheduled</source>
35+
<target>Planmäßig</target>
36+
</trans-unit>
37+
<trans-unit id="index.export.definition">
38+
<source>Export definition</source>
39+
<target>Export Definition</target>
40+
</trans-unit>
41+
<trans-unit id="index.no.saved.form.data">
42+
<source>There is either no saved form data to display or your account is missing the required privileges.</source>
43+
<target>Es gibt entweder keine gespeicherten Formulardaten, die angezeigt werden können, oder Dein Konto verfügt nicht über die erforderlichen Berechtigungen.</target>
44+
</trans-unit>
45+
<trans-unit id="index.manage.export.definitions">
46+
<source>Manage Export Definitions</source>
47+
<target>Export Definitionen verwalten</target>
48+
</trans-unit>
49+
<trans-unit id="index.download">
50+
<source>Download</source>
51+
<target>Herunterladen</target>
52+
</trans-unit>
53+
</body>
54+
</file>
55+
</xliff>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="" product-name="PunktDe.Form.Persistence" source-language="en" datatype="plaintext">
4+
<body>
5+
<trans-unit id="back.to.formdata.export">
6+
<source>Back to Form data export</source>
7+
</trans-unit>
8+
</body>
9+
</file>
10+
</xliff>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="" product-name="PunktDe.Form.Persistence" source-language="en" datatype="plaintext">
4+
<body>
5+
<trans-unit id="preview.scheduledExport.email.text">
6+
<source>Data of this form is automatically exported and sent via mail to</source>
7+
</trans-unit>
8+
<trans-unit id="index.site">
9+
<source>Site</source>
10+
</trans-unit>
11+
<trans-unit id="index.dimension">
12+
<source>Dimension</source>
13+
</trans-unit>
14+
<trans-unit id="index.form.identifier">
15+
<source>Form Identifier</source>
16+
</trans-unit>
17+
<trans-unit id="index.version">
18+
<source>Version</source>
19+
</trans-unit>
20+
<trans-unit id="index.count">
21+
<source>Count</source>
22+
</trans-unit>
23+
<trans-unit id="index.latest">
24+
<source>Latest</source>
25+
</trans-unit>
26+
<trans-unit id="index.scheduled">
27+
<source>Scheduled</source>
28+
</trans-unit>
29+
<trans-unit id="index.export.definition">
30+
<source>Export definition</source>
31+
</trans-unit>
32+
<trans-unit id="index.no.saved.form.data">
33+
<source>There is either no saved form data to display or your account is missing the required privileges.</source>
34+
</trans-unit>
35+
<trans-unit id="index.manage.export.definitions">
36+
<source>Manage Export Definitions</source>
37+
</trans-unit>
38+
<trans-unit id="index.download">
39+
<source>Download</source>
40+
</trans-unit>
41+
</body>
42+
</file>
43+
</xliff>

0 commit comments

Comments
 (0)