mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
vue ui i18n: separate localized {capture_text} on/in day/month and {count} capture(s) text
This commit is contained in:
parent
94d7829403
commit
f780900a9f
File diff suppressed because one or more lines are too long
@ -50,10 +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}') }}",
|
||||
"{count} capture":"{{ _Q('{count} capture') }}",
|
||||
"{count} captures":"{{ _Q('{count} captures') }}",
|
||||
"{capture_text} on {date}":"{{ _Q('{capture_text} on {date}') }}",
|
||||
"{capture_text} in {month}":"{{ _Q('{capture_text} in {month}') }}",
|
||||
"Loading...": "{{ _Q('Loading...') }}",
|
||||
"Current Capture": "{{ _Q('Current Capture') }}",
|
||||
"capture": "{{ _Q('capture') }}",
|
||||
|
@ -50,10 +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}') }}",
|
||||
"{count} capture":"{{ _Q('{count} capture') }}",
|
||||
"{count} captures":"{{ _Q('{count} captures') }}",
|
||||
"{capture_text} on {date}":"{{ _Q('{capture_text} on {date}') }}",
|
||||
"{capture_text} in {month}":"{{ _Q('{capture_text} in {month}') }}",
|
||||
"Loading...": "{{ _Q('Loading...') }}",
|
||||
"Current Capture": "{{ _Q('Current Capture') }}",
|
||||
"capture": "{{ _Q('capture') }}",
|
||||
|
@ -10,9 +10,9 @@
|
||||
</div>
|
||||
<div v-else-if="tooltipPeriod.snapshotCount">
|
||||
{{ $root._(
|
||||
`{count} capture${tooltipPeriod.snapshotCount > 1 && 's'} ${isTooltipPeriodDayOrHour ? 'on':'in'} {${isTooltipPeriodDayOrHour ? 'date':'month'}\}`,
|
||||
{ count: tooltipPeriod.snapshotCount, date: tooltipPeriod.getFullReadableId(), month: tooltipPeriod.getFullReadableId()}
|
||||
)}}
|
||||
`{capture_text} {${isTooltipPeriodDayOrHour ? 'date':'month'}\}`,
|
||||
{ capture_text: $root._(`{count} capture${tooltipPeriod.snapshotCount !== 1 ?'s':''}`, {count: tooltipPeriod.snapshotCount}), [isTooltipPeriodDayOrHour ? 'date':'month']: tooltipPeriod.getFullReadableId() } )
|
||||
}}
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@
|
||||
</template>
|
||||
<span class="item">
|
||||
<span class="current">{{period.getReadableId(true)}}</span>
|
||||
<span class="count">({{period.snapshotCount}} capture<span v-if="period.snapshotCount !== 1">s</span>)</span>
|
||||
<span class="count">({{ $root._(`{count} capture${period.snapshotCount !== 1 ? 's':''}`, {count: period.snapshotCount}) }})</span>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user