From ea334e254ed117b2aae4e057f49868f762824ffb Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 6 May 2021 11:22:02 +0200 Subject: [PATCH] luci-app-mwan3: add i18n to status page Signed-off-by: Florian Eckert (cherry picked from commit 2b0fbcb0c88fb073745ec99974c12f363b771ac2) --- .../luasrc/view/mwan/overview_status_interface.htm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm index 9a4d85a706..ee746a00bb 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm @@ -33,7 +33,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface case 'online': state = '<%:Online%>'; time = String.format( - '
Uptime: %s
', + '
<%:Uptime%>: %s
', secondsToString(status.interfaces[iface].online) ); css = 'success'; @@ -41,7 +41,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface case 'offline': state = '<%:Offline%>'; time = String.format( - '
Downtime: %s
', + '
<%:Downtime%>: %s
', secondsToString(status.interfaces[iface].offline) ); css = 'danger'; @@ -50,7 +50,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface state = '<%:No Tracking%>'; if ((status.interfaces[iface].uptime) > 0) { time = String.format( - '
Uptime: %s
', + '
<%:Uptime%>: %s
', secondsToString(status.interfaces[iface].uptime) ); css = 'success'; @@ -71,11 +71,11 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface css ); statusview += String.format( - '
Interface: %s
', + '
<%:Interface%>: %s
', iface ); statusview += String.format( - '
Status: %s
', + '
<%:Status%>: %s
', state ); if (time) -- 2.30.2