Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
7da599a4
Commit
7da599a4
authored
Feb 11, 2019
by
Christoph Pascher
Browse files
adding localized dates to view
parent
d900e4da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Resources/Private/Language/locallang.xlf
View file @
7da599a4
...
...
@@ -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 -->
...
...
Resources/Private/Templates/FeDashboard/Index.html
View file @
7da599a4
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment