1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

vue ui i18n: localized "{count} capture(s) in/on {month/date}"

This commit is contained in:
Ivan Velev 2022-02-07 19:00:16 -08:00
parent 47ada39b16
commit 99b6f20a60
4 changed files with 33 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -50,6 +50,10 @@ html, body
"show calendar":"{{ _Q('show calendar') }}",
"hide calendar":"{{ _Q('hide calendar') }}",
"View capture on {date}":"{{ _Q('View capture on {date}') }}",
"{count} capture on {date}":"{{ _Q('{count} capture on {date}') }}",
"{count} captures on {date}":"{{ _Q('{count} captures on {date}') }}",
"{count} capture in {month}":"{{ _Q('{count} capture in {month}') }}",
"{count} captures in {month}":"{{ _Q('{count} captures in {month}') }}",
"Loading...": "{{ _Q('Loading...') }}",
"Current Capture": "{{ _Q('Current Capture') }}",
"capture": "{{ _Q('capture') }}",

View File

@ -50,6 +50,10 @@
"show calendar":"{{ _Q('show calendar') }}",
"hide calendar":"{{ _Q('hide calendar') }}",
"View capture on {date}":"{{ _Q('View capture on {date}') }}",
"{count} capture on {date}":"{{ _Q('{count} capture on {date}') }}",
"{count} captures on {date}":"{{ _Q('{count} captures on {date}') }}",
"{count} capture in {month}":"{{ _Q('{count} capture in {month}') }}",
"{count} captures in {month}":"{{ _Q('{count} captures in {month}') }}",
"Loading...": "{{ _Q('Loading...') }}",
"Current Capture": "{{ _Q('Current Capture') }}",
"capture": "{{ _Q('capture') }}",

View File

@ -9,9 +9,10 @@
{{ $root._('View capture on {date}', {date: tooltipPeriod.snapshotPeriod.snapshot.getTimeDateFormatted()}) }}
</div>
<div v-else-if="tooltipPeriod.snapshotCount">
{{ tooltipPeriod.snapshotCount }} captures
<span v-if="isTooltipPeriodDayOrHour">on</span><span v-else>in</span>
{{ tooltipPeriod.getFullReadableId() }}
{{ $root._(
`{count} capture${tooltipPeriod.snapshotCount > 1 && 's'} ${isTooltipPeriodDayOrHour ? 'on':'in'} {${isTooltipPeriodDayOrHour ? 'date':'month'}\}`,
{ count: tooltipPeriod.snapshotCount, date: tooltipPeriod.getFullReadableId(), month: tooltipPeriod.getFullReadableId()}
)}}
</div>
</template>
</div>