summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wireguard/htdocs
diff options
context:
space:
mode:
authorPaul Dee <systemcrash@users.noreply.github.com>2021-11-02 16:12:33 +0100
committerPaul Dee <systemcrash@users.noreply.github.com>2021-11-02 16:26:23 +0100
commiteff38ed7247bb9d80117093baa3678d0f28a32a8 (patch)
tree74a2a32ef0343f682e766c600ce0ed42aff1482f /applications/luci-app-wireguard/htdocs
parente7f98f3cd154a69a0872481821ffa5cb215a2fd5 (diff)
luci-app-wireguard: fix i18n of "ago"
Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
Diffstat (limited to 'applications/luci-app-wireguard/htdocs')
-rw-r--r--applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js b/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
index 8614db018e..25d5df9ffb 100644
--- a/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
+++ b/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js
@@ -18,11 +18,11 @@ function timestampToStr(timestamp) {
var seconds = (now.getTime() / 1000) - timestamp;
var ago = '';
if (seconds < 60) {
- ago = parseInt(seconds) + _('s ago');
+ ago = _('%ds ago').format(parseInt(seconds));
} else if (seconds < 3600) {
- ago = parseInt(seconds / 60) + _('m ago');
+ ago = _('%dm ago').format(parseInt(seconds / 60));
} else if (seconds < 86401) {
- ago = parseInt(seconds / 3600) + _('h ago');
+ ago = _('%dh ago').format(parseInt(seconds / 3600));
} else {
ago = _('over a day ago');
}