Skip to content

Commit 8859c33

Browse files
authored
[Task]: Version tab translations (#906)
* translate version tab * typo
1 parent 9d2f10f commit 8859c33

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

templates/admin/data_object/data_object/diff_versions.html.twig

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111

1212
<table class="preview" border="0" cellpadding="0" cellspacing="0">
1313
<tr>
14-
<th>Name</th>
15-
<th>Key</th>
14+
<th>{{ 'Name'|trans([], 'admin') }}</th>
15+
<th>{{ 'Key'|trans([], 'admin') }}</th>
1616
{% if isImportPreview is defined %}
1717
{% if isNew is defined %}
18-
<th>New Object or unable to resolve</th>
18+
<th>{{ 'New Object or unable to resolve'|trans([], 'admin') }}</th>
1919
{% else %}
20-
<th>Before</th>
21-
<th>After</th>
20+
<th>{{ 'Before'|trans([], 'admin') }}</th>
21+
<th>{{ 'After'|trans([], 'admin') }}</th>
2222
{% endif %}
2323
{% else %}
24-
<th>Version 1</th>
25-
<th>Version 2</th>
24+
<th>{{ 'Version'|trans([], 'admin') }} 1</th>
25+
<th>{{ 'Version'|trans([], 'admin') }} 2</th>
2626
{% endif %}
2727
</tr>
2828
<tr class="system">
29-
<td>Date</td>
29+
<td>{{ 'Date'|trans([], 'admin') }}</td>
3030
<td>modificationDate</td>
3131
{% if isImportPreview is not defined or isNew is not defined %}
3232
<td>{{ object1.getModificationDate()|date('Y-m-d H:i:s') }}</td>
3333
{% endif %}
3434
<td>{{ object2.getModificationDate()|date('Y-m-d H:i:s') }}</td>
3535
</tr>
3636
<tr class="system">
37-
<td>Path</td>
37+
<td>{{ 'Path'|trans([], 'admin') }}</td>
3838
<td>path</td>
3939
{% if isImportPreview is not defined or isNew is not defined %}
4040
<td> {{ object1.getRealFullPath() }} </td>
@@ -43,7 +43,7 @@
4343
<td class="{{ modifiedPathClass }}">{{ object2.getRealFullPath() }}</td>
4444
</tr>
4545
<tr class="system">
46-
<td>Published</td>
46+
<td>{{ 'Published'|trans([], 'admin') }}</td>
4747
<td>published</td>
4848
{% if isImportPreview is not defined or isNew is not defined %}
4949
<td> {{ object1.getPublished() }} </td>
@@ -53,14 +53,14 @@
5353
</tr>
5454
{% if versionNote1 or versionNote2 %}
5555
<tr class="system">
56-
<td>Version Note</td>
56+
<td>{{ 'Version Note'|trans([], 'admin') }}</td>
5757
<td>&nbsp;</td>
5858
<td>{{ versionNote1|nl2br }}</td>
5959
<td>{{ versionNote2|nl2br }}</td>
6060
</tr>
6161
{% endif %}
6262
<tr class="system">
63-
<td>Id</td>
63+
<td>{{ 'Id'|trans([], 'admin') }}</td>
6464
<td>id</td>
6565
{% if isImportPreview is not defined or isNew is not defined %}
6666
<td> {{ object1.getId() }} </td>

templates/admin/data_object/data_object/preview_version.html.twig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212

1313
<table class="preview" border="0" cellpadding="0" cellspacing="0">
1414
<tr>
15-
<th>Name</th>
16-
<th>Key</th>
17-
<th>Value</th>
15+
<th>{{ 'Name'|trans([], 'admin') }}</th>
16+
<th>{{ 'Key'|trans([], 'admin') }}</th>
17+
<th>{{ 'Value'|trans([], 'admin') }}</th>
1818
</tr>
1919
<tr class="system">
20-
<td>Date</td>
20+
<td>{{ 'Date'|trans([], 'admin') }}</td>
2121
<td>modificationDate</td>
2222
<td>{{ object.getModificationDate()|date('Y-m-d H:i:s') }}</td>
2323
</tr>
2424
<tr class="system">
25-
<td>Path</td>
25+
<td>{{ 'Path'|trans([], 'admin') }}</td>
2626
<td>path</td>
2727
<td>{{ object.getRealFullPath() }}</td>
2828
</tr>
2929
<tr class="system">
30-
<td>Published</td>
30+
<td>{{ 'Published'|trans([], 'admin') }}</td>
3131
<td>published</td>
3232
<td>{{ object.getPublished() ? 'true' : 'false' }}</td>
3333
</tr>
3434
{% if versionNote %}
3535
<tr class="system">
36-
<td>Version Note</td>
36+
<td>{{ 'Version Note'|trans([], 'admin') }}</td>
3737
<td>&nbsp;</td>
3838
<td>{{ versionNote|nl2br }}</td>
3939
</tr>

0 commit comments

Comments
 (0)