Add l10n to templates

This commit is contained in:
Dirk Koritnik 2020-11-18 14:29:07 +01:00
parent c436d5a38d
commit dd472dbf6a
2 changed files with 25 additions and 25 deletions

View file

@ -3,23 +3,23 @@
<h2>{month.dateTimeInstance -> f:format.date(format: '%B %Y')}</h2> <h2>{month.dateTimeInstance -> f:format.date(format: '%B %Y')}</h2>
<f:link.action action="month" controller="Frontend\Calendar" arguments="{month: month.previousMonth}"> <f:link.action class="calendar browse month previous" action="month" controller="Frontend\Calendar" arguments="{month: month.previousMonth}">
Prev Month {f:translate(key: 'browse.month.previous', extensionName: 'calendar')}
</f:link.action> </f:link.action>
<f:link.action action="month" controller="Frontend\Calendar" arguments="{month: month.nextMonth}"> <f:link.action class="calendar browse month next" action="month" controller="Frontend\Calendar" arguments="{month: month.nextMonth}">
Next Month {f:translate(key: 'browse.month.next', extensionName: 'calendar')}
</f:link.action> </f:link.action>
<table> <table class="calender monthly">
<tr> <tr>
<th>KW</th> <th>{f:translate(key: 'calendar_week.shorthand', extensionName: 'calendar')}</th>
<th>Mo</th> <th>{f:translate(key: 'weekday.monday.shorthand', extensionName: 'calendar')}</th>
<th>Di</th> <th>{f:translate(key: 'weekday.tuesday.shorthand', extensionName: 'calendar')}</th>
<th>Mi</th> <th>{f:translate(key: 'weekday.wednesday.shorthand', extensionName: 'calendar')}</th>
<th>Do</th> <th>{f:translate(key: 'weekday.thursday.shorthand', extensionName: 'calendar')}</th>
<th>Fr</th> <th>{f:translate(key: 'weekday.friday.shorthand', extensionName: 'calendar')}</th>
<th>Sa</th> <th>{f:translate(key: 'weekday.saturday.shorthand', extensionName: 'calendar')}</th>
<th>So</th> <th>{f:translate(key: 'weekday.sunday.shorthand', extensionName: 'calendar')}</th>
</tr> </tr>
<f:for each="{month.weeks}" as="week"> <f:for each="{month.weeks}" as="week">
<tr class="{f:if(condition: week.active, then: 'active', else: 'inactive')}"> <tr class="{f:if(condition: week.active, then: 'active', else: 'inactive')}">

View file

@ -3,22 +3,22 @@
<h2>{week.dateTimeInstance -> f:format.date(format: '%V %Y')}</h2> <h2>{week.dateTimeInstance -> f:format.date(format: '%V %Y')}</h2>
<f:link.action action="week" controller="Frontend\Calendar" arguments="{week: week.previousWeek}"> <f:link.action class="calendar browse week previous" action="week" controller="Frontend\Calendar" arguments="{week: week.previousWeek}">
Prev Week {f:translate(key: 'browse.week.previous', extensionName: 'calendar')}
</f:link.action> </f:link.action>
<f:link.action action="week" controller="Frontend\Calendar" arguments="{week: week.nextWeek}"> <f:link.action class="calendar browse month next" action="week" controller="Frontend\Calendar" arguments="{week: week.nextWeek}">
Next Week {f:translate(key: 'browse.month.next', extensionName: 'calendar')}
</f:link.action> </f:link.action>
<table> <table class="calendar week">
<tr> <tr>
<th>Mo</th> <th>{f:translate(key: 'weekday.monday.shorthand', extensionName: 'calendar')}</th>
<th>Di</th> <th>{f:translate(key: 'weekday.tuesday.shorthand', extensionName: 'calendar')}</th>
<th>Mi</th> <th>{f:translate(key: 'weekday.wednesday.shorthand', extensionName: 'calendar')}</th>
<th>Do</th> <th>{f:translate(key: 'weekday.thursday.shorthand', extensionName: 'calendar')}</th>
<th>Fr</th> <th>{f:translate(key: 'weekday.friday.shorthand', extensionName: 'calendar')}</th>
<th>Sa</th> <th>{f:translate(key: 'weekday.saturday.shorthand', extensionName: 'calendar')}</th>
<th>So</th> <th>{f:translate(key: 'weekday.sunday.shorthand', extensionName: 'calendar')}</th>
</tr> </tr>
<tr> <tr>
<f:for each="{week.days}" as="day"> <f:for each="{week.days}" as="day">