From f6f1adae7a987a144f6ecc46748bc883eb79e4f2 Mon Sep 17 00:00:00 2001 From: Ivan Velev Date: Mon, 7 Feb 2022 17:46:27 -0800 Subject: [PATCH] vue ui i18n: made All-time localized --- pywb/templates/frame_insert.html | 1 + pywb/templates/query.html | 1 + pywb/vueui/src/model.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pywb/templates/frame_insert.html b/pywb/templates/frame_insert.html index 9df5d4ec..fb7de0f5 100644 --- a/pywb/templates/frame_insert.html +++ b/pywb/templates/frame_insert.html @@ -44,6 +44,7 @@ html, body oct_short: "{{ _Q('Oct') }}", nov_short: "{{ _Q('Nov') }}", dec_short: "{{ _Q('Dec') }}", + "All-time": "{{ _Q('All-time') }}", "Loading...": "{{ _Q('Loading...') }}", "Current Capture": "{{ _Q('Current Capture') }}", "capture": "{{ _Q('capture') }}", diff --git a/pywb/templates/query.html b/pywb/templates/query.html index 40921c49..e9dee261 100644 --- a/pywb/templates/query.html +++ b/pywb/templates/query.html @@ -44,6 +44,7 @@ oct_short: "{{ _Q('Oct') }}", nov_short: "{{ _Q('Nov') }}", dec_short: "{{ _Q('Dec') }}", + "All-time": "{{ _Q('All-time') }}", "Loading...": "{{ _Q('Loading...') }}", "Current Capture": "{{ _Q('Current Capture') }}", "capture": "{{ _Q('capture') }}", diff --git a/pywb/vueui/src/model.js b/pywb/vueui/src/model.js index b0286a3d..f69bbb4a 100644 --- a/pywb/vueui/src/model.js +++ b/pywb/vueui/src/model.js @@ -483,7 +483,7 @@ PywbPeriod.prototype.getFullReadableId = function(hasDayCardinalSuffix) { PywbPeriod.prototype.getReadableId = function(hasDayCardinalSuffix) { switch (this.type) { case PywbPeriod.Type.all: - return "All-time"; + return PywbI18N.instance._("All-time"); case PywbPeriod.Type.year: return this.id; case PywbPeriod.Type.month: