new translations to clarify working time periods (#1802)

This commit is contained in:
Kevin Papst
2020-07-04 19:44:44 +02:00
committed by GitHub
parent 682681afa5
commit ea39d5c74d
3 changed files with 36 additions and 4 deletions

View File

@@ -41,25 +41,25 @@
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<h5 class="description-header">{{ data.day|duration }}</h5>
<span class="description-text">{{ 'stats.durationToday'|trans }}</span>
<span class="description-text">{{ 'stats.workingTimeToday'|trans({'%day%': 'now'|date_short}) }}</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<h5 class="description-header">{{ data.week|duration }}</h5>
<span class="description-text">{{ 'stats.durationWeek'|trans }}</span>
<span class="description-text">{{ 'stats.workingTimeWeek'|trans({'%week%': data.begin|date_format('W')}) }}</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<h5 class="description-header">{{ data.month|duration }}</h5>
<span class="description-text">{{ 'stats.durationMonth'|trans }}</span>
<span class="description-text">{{ 'stats.workingTimeMonth'|trans({'%month%': data.begin|month_name|trans, '%year%': data.begin|date_format('Y')}) }}</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<h5 class="description-header">{{ data.year|duration }}</h5>
<span class="description-text">{{ 'stats.durationYear'|trans }}</span>
<span class="description-text">{{ 'stats.workingTimeYear'|trans({'%year%': data.begin|date_format('Y')}) }}</span>
</div>
</div>
</div>

View File

@@ -740,6 +740,22 @@
<!--
Statistics data for Dashboard & Users profile
-->
<trans-unit id="stats.workingTimeToday">
<source>stats.workingTimeToday</source>
<target>Heute, %day%</target>
</trans-unit>
<trans-unit id="stats.workingTimeWeek">
<source>stats.workingTimeWeek</source>
<target>Kalenderwoche %week%</target>
</trans-unit>
<trans-unit id="stats.workingTimeMonth">
<source>stats.workingTimeMonth</source>
<target>%month% %year%</target>
</trans-unit>
<trans-unit id="stats.workingTimeYear">
<source>stats.workingTimeYear</source>
<target>Gesamtes Jahr %year%</target>
</trans-unit>
<trans-unit id="stats.durationToday">
<source>stats.durationToday</source>
<target>Arbeitszeit heute</target>

View File

@@ -740,6 +740,22 @@
<!--
Statistics data for Dashboard & Users profile
-->
<trans-unit id="stats.workingTimeToday">
<source>stats.workingTimeToday</source>
<target>Today, %day%</target>
</trans-unit>
<trans-unit id="stats.workingTimeWeek">
<source>stats.workingTimeWeek</source>
<target>Calendar week %week%</target>
</trans-unit>
<trans-unit id="stats.workingTimeMonth">
<source>stats.workingTimeMonth</source>
<target>%month% %year%</target>
</trans-unit>
<trans-unit id="stats.workingTimeYear">
<source>stats.workingTimeYear</source>
<target>Full year %year%</target>
</trans-unit>
<trans-unit id="stats.durationToday">
<source>stats.durationToday</source>
<target>Working hours today</target>