Commit 7da599a4 authored by Christoph Pascher's avatar Christoph Pascher
Browse files

adding localized dates to view

parent d900e4da
......@@ -223,6 +223,9 @@
<trans-unit id="model.election.field.title">
<source>Title</source>
</trans-unit>
<trans-unit id="model.election.date_format">
<source>Y-m-d</source>
</trans-unit>
<!-- MODEL ELECTOR -->
......
......@@ -27,10 +27,10 @@
<f:link.action controller="FeElection" action="show" arguments="{election:election}">{election.title}</f:link.action>
</td>
<td>
{election.title}
<f:format.date format="{f:translate(key: 'LLL:EXT:election/Resources/Private/Language/locallang.xlf:model.election.date_format')}">{election.startDate}</f:format.date>
</td>
<td>
{election.title}
<f:format.date format="{f:translate(key: 'LLL:EXT:election/Resources/Private/Language/locallang.xlf:model.election.date_format')}">{election.endDate}</f:format.date>
</td>
</tr>
</f:else>
......@@ -63,10 +63,10 @@
<f:link.action controller="FeElection" action="show" arguments="{election:election}">{election.title}</f:link.action>
</td>
<td>
{election.title}
<f:format.date format="{f:translate(key: 'LLL:EXT:election/Resources/Private/Language/locallang.xlf:model.election.date_format')}">{election.startDate}</f:format.date>
</td>
<td>
{election.title}
<f:format.date format="{f:translate(key: 'LLL:EXT:election/Resources/Private/Language/locallang.xlf:model.election.date_format')}">{election.endDate}</f:format.date>
</td>
</tr>
</f:then>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment