Skip to content

Commit

Permalink
[TASK] Make labels in FormEditor translatable
Browse files Browse the repository at this point in the history
This moves some labels from the template to
the locallang file, making them translatable.

Resolves: #97048
Releases: main, 11.5
Change-Id: I0d02864296b98148e2f01449edc2edbe880847f9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73772
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
o-ba committed Mar 1, 2022
1 parent 440d691 commit e20b0dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Expand Up @@ -21,14 +21,18 @@
<td data-identifier="column" data-column="selected"><input type="checkbox" data-identifier="selectValue" /></td>
<td>
<div class="btn-group btn-group-sm" role="group">
<button class="btn btn-default" title="Remove this row" data-identifier="deleteRow"><core:icon identifier="actions-delete" /></button>
<button class="btn btn-default" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formEditor.inspector.editor.grid.remove')}" data-identifier="deleteRow">
<core:icon identifier="actions-delete" />
</button>
</div>
</td>
</tr>
<tr data-identifier="addRowItem">
<td>
<div class="btn-group btn-group-sm" role="group">
<button data-random-id data-random-id-attribute="id" data-random-id-number="1" class="btn btn-default" title="Add a new row" data-identifier="addRow"><core:icon identifier="actions-add" /></button>
<button data-random-id data-random-id-attribute="id" data-random-id-number="1" class="btn btn-default" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formEditor.inspector.editor.grid.add')}" data-identifier="addRow">
<core:icon identifier="actions-add" />
</button>
</div>
</td>
<td data-identifier="column" data-column="label"></td>
Expand Down
@@ -1,5 +1,7 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="t3-form-control-group form-group btn-group-sm">
<button class="btn btn-default" title="Remove this Element"><core:icon identifier="actions-delete" alternativeMarkupIdentifier="inline" /></button>
<button class="btn btn-default" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formEditor.inspector.editor.formelement.remove')}">
<core:icon identifier="actions-delete" alternativeMarkupIdentifier="inline" />
</button>
</div>
</html>
9 changes: 9 additions & 0 deletions typo3/sysext/form/Resources/Private/Language/Database.xlf
Expand Up @@ -1103,6 +1103,15 @@
<trans-unit id="formEditor.inspector.editor.formelement_selector.no_elements" resname="formEditor.inspector.editor.formelement_selector.no_elements" xml:space="preserve">
<source>No elements available</source>
</trans-unit>
<trans-unit id="formEditor.inspector.editor.formelement.remove" resname="formEditor.inspector.editor.formelement.remove" xml:space="preserve">
<source>Remove this Element</source>
</trans-unit>
<trans-unit id="formEditor.inspector.editor.grid.add" resname="formEditor.inspector.editor.grid.add" xml:space="preserve">
<source>Add a new row</source>
</trans-unit>
<trans-unit id="formEditor.inspector.editor.grid.remove" resname="formEditor.inspector.editor.grid.remove" xml:space="preserve">
<source>Remove this row</source>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit e20b0dd

Please sign in to comment.