1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-24 06:59:52 +01:00

vue ui i18n: finalized all instances of "{count} capture(s)"

This commit is contained in:
Ivan Velev 2022-02-07 22:57:55 -08:00
parent 3f753d1392
commit 265f4f28e6
6 changed files with 39 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -94,7 +94,7 @@
<h3>{{getLongMonthName(month.id)}} <span v-if="month.snapshotCount">({{ month.snapshotCount }})</span></h3> <h3>{{getLongMonthName(month.id)}} <span v-if="month.snapshotCount">({{ month.snapshotCount }})</span></h3>
<div v-if="month.snapshotCount"> <div v-if="month.snapshotCount">
<span v-for="(day) in ['S', 'M', 'T', 'W', 'H', 'F', 'S']" class="day" :style="dayStyle">{{day}}</span><br/> <span v-for="(day) in ['S', 'M', 'T', 'W', 'H', 'F', 'S']" class="day" :style="dayStyle">{{day}}</span><br/>
<span v-for="(day,i) in days"><br v-if="i && i % 7===0"/><span class="day" :class="{empty: !day || !day.snapshotCount, 'contains-current-snapshot':dayContainsCurrentSnapshot(day)}" :style="dayStyle" @click="gotoDay(day, $event)"><template v-if="day"><span class="size" v-if="day.snapshotCount" :style="getDayCountCircleStyle(day.snapshotCount)"> </span><span class="day-id">{{day.id}}</span><span v-if="day.snapshotCount" class="count">{{day.snapshotCount}} capture<span v-if="day.snapshotCount!==1">s</span></span></template><template v-else v-html="'&nbsp;'"></template></span></span> <span v-for="(day,i) in days"><br v-if="i && i % 7===0"/><span class="day" :class="{empty: !day || !day.snapshotCount, 'contains-current-snapshot':dayContainsCurrentSnapshot(day)}" :style="dayStyle" @click="gotoDay(day, $event)"><template v-if="day"><span class="size" v-if="day.snapshotCount" :style="getDayCountCircleStyle(day.snapshotCount)"> </span><span class="day-id">{{day.id}}</span><span v-if="day.snapshotCount" class="count">{{ $root._(day.snapshotCount !== 1 ? '{count} captures':'{count} capture', {count: day.snapshotCount}) }}</span></template><template v-else v-html="'&nbsp;'"></template></span></span>
</div> </div>
<div v-else class="empty">no captures</div> <div v-else class="empty">no captures</div>
</div> </div>

View File

@ -23,7 +23,7 @@
<template> <template>
<div class="full-view"> <div class="full-view">
<h2>{{year.id}} ({{year.snapshotCount}} captures)</h2> <h2>{{year.id}} ({{ $root._(year.snapshotCount !== 1 ? '{count} captures':'{count} capture', {count: year.snapshotCount}) }})</h2>
<div class="months"> <div class="months">
<CalendarMonth <CalendarMonth
v-for="month in year.children" v-for="month in year.children"

View File

@ -11,7 +11,7 @@
<div v-else-if="tooltipPeriod.snapshotCount"> <div v-else-if="tooltipPeriod.snapshotCount">
{{ $root._( {{ $root._(
isTooltipPeriodDayOrHour ? '{capture_text} on {date}':'{capture_text} in {month}', isTooltipPeriodDayOrHour ? '{capture_text} on {date}':'{capture_text} in {month}',
{ capture_text: $root._(`{count} capture${tooltipPeriod.snapshotCount !== 1 ?'s':''}`, {count: tooltipPeriod.snapshotCount}), [isTooltipPeriodDayOrHour ? 'date':'month']: tooltipPeriod.getFullReadableId() } ) { capture_text: $root._(tooltipPeriod.snapshotCount !== 1 ? '{count} captures' : '{count} capture', {count: tooltipPeriod.snapshotCount}), [isTooltipPeriodDayOrHour ? 'date':'month']: tooltipPeriod.getFullReadableId() } )
}} }}
</div> </div>
</template> </template>

View File

@ -15,7 +15,7 @@
</template> </template>
<span class="item"> <span class="item">
<span class="current">{{period.getReadableId(true)}}</span> <span class="current">{{period.getReadableId(true)}}</span>
<span class="count">({{ $root._(`{count} capture${period.snapshotCount !== 1 ? 's':''}`, {count: period.snapshotCount}) }})</span> <span class="count">({{ $root._(period.snapshotCount !== 1 ? '{count} captures':'{count} capture', {count: period.snapshotCount}) }})</span>
</span> </span>
</div> </div>
</template> </template>

View File

@ -2,7 +2,7 @@
<div class="timeline-linear"> <div class="timeline-linear">
<div class="title"> <div class="title">
<div>{{ period.getFullReadableId() }}</div> <div>{{ period.getFullReadableId() }}</div>
<div>{{ $root._(`{count} capture${period.snapshotCount !== 1 ? 's':''}`, {count: period.snapshotCount}) }}</div> <div>{{ $root._(period.snapshotCount !== 1 ? '{count} captures':'{count} capture', {count: period.snapshotCount}) }}</div>
</div> </div>
<div class="list"> <div class="list">