summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/view
diff options
context:
space:
mode:
authorkuoruan <kuoruan@gmail.com>2017-07-20 13:09:16 +0800
committerHsing-Wang Liao <kuoruan@gmail.com>2017-07-23 10:42:49 +0800
commit744584946081f44d03610682f390321e0ca7c33b (patch)
treea9dd12cf4882a6e04ca3a8b1fd92b00849ca94ee /applications/luci-app-mwan3/luasrc/view
parent2224714217105b1482dab63842409bb62154230d (diff)
luci-app-mwan3: Add more translate strings
Signed-off-by: Hsing-wang Liao <kuoruan@gmail.com>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/view')
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/advanced_diagnostics.htm6
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/advanced_troubleshooting.htm4
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm12
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm4
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm18
5 files changed, 22 insertions, 22 deletions
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/advanced_diagnostics.htm b/applications/luci-app-mwan3/luasrc/view/mwan/advanced_diagnostics.htm
index 6f350ccf4d..e4a14adade 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/advanced_diagnostics.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/advanced_diagnostics.htm
@@ -33,14 +33,14 @@
{
output.innerHTML =
'<img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="padding: 20px; vertical-align: middle;" /> ' +
- "Waiting for MWAN to " + task + "..."
+ String.format("<%:Waiting for MWAN to %s...%>", task)
;
}
else
{
output.innerHTML =
'<img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="padding: 20px; vertical-align: middle;" /> ' +
- "Waiting for diagnostic results..."
+ "<%:Waiting for diagnostic results...%>"
;
}
@@ -56,7 +56,7 @@
}
else
{
- output.innerHTML = '<pre id="diag_output_css"><strong>No diagnostic results returned</strong></pre>';
+ output.innerHTML = '<pre id="diag_output_css"><strong><%:No diagnostic results returned%></strong></pre>';
}
}
);
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/advanced_troubleshooting.htm b/applications/luci-app-mwan3/luasrc/view/mwan/advanced_troubleshooting.htm
index 21f516b7c2..4174ef4b21 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/advanced_troubleshooting.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/advanced_troubleshooting.htm
@@ -37,7 +37,7 @@
}
else
{
- tshoot.innerHTML = '<strong>Error collecting troubleshooting information</strong>';
+ tshoot.innerHTML = '<strong><%:Error collecting troubleshooting information%></strong>';
}
}
);
@@ -46,7 +46,7 @@
<div id="troubleshoot">
<fieldset class="cbi-section">
<legend><%:Troubleshooting Data%></legend>
- <div id="troubleshoot_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
+ <div id="troubleshoot_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
</fieldset>
</div>
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm b/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
index 84b1245021..7cef0630ee 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/openwrt_overview_status.htm
@@ -13,19 +13,19 @@
switch (mArray.wans[i].status)
{
case 'online':
- stat = 'Online (tracking active)';
+ stat = '<%:Online (tracking active)%>';
cssc = 'wanon';
break;
case 'notMonitored':
- stat = 'Online (tracking off)';
+ stat = '<%:Online (tracking off)%>';
cssc = 'wanon';
break;
case 'offline':
- stat = 'Offline';
+ stat = '<%:Offline%>';
cssc = 'wanoff';
break;
case 'notEnabled':
- stat = 'Disabled';
+ stat = '<%:Disabled%>';
cssc = 'wanoff';
break;
}
@@ -38,7 +38,7 @@
}
else
{
- status.innerHTML = '<strong>No MWAN interfaces found</strong>';
+ status.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
}
}
);
@@ -46,7 +46,7 @@
<fieldset id="interface_field" class="cbi-section">
<legend><%:MWAN Interface Live Status%></legend>
- <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
+ <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
</fieldset>
<style type="text/css">
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm
index bbb617b289..6a800c3f98 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_detailed.htm
@@ -17,7 +17,7 @@
}
else
{
- status.innerHTML = '<strong>No detailed status information available</strong>';
+ status.innerHTML = '<strong><%:No detailed status information available%></strong>';
}
}
);
@@ -26,7 +26,7 @@
<div id="mwan_detail_status">
<fieldset class="cbi-section">
<legend><%:MWAN Detailed Status%></legend>
- <div id="mwan_detail_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
+ <div id="mwan_detail_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
</fieldset>
</div>
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm
index f4c8b1224b..2929a6df60 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_interface.htm
@@ -21,19 +21,19 @@
switch (mArray.wans[i].status)
{
case 'online':
- status = 'Online (tracking active)';
+ status = '<%:Online (tracking active)%>';
css = 'wanon';
break;
case 'notMonitored':
- status = 'Online (tracking off)';
+ status = '<%:Online (tracking off)%>';
css = 'wanon';
break;
case 'offline':
- status = 'Offline';
+ status = '<%:Offline%>';
css = 'wanoff';
break;
case 'notEnabled':
- status = 'Disabled';
+ status = '<%:Disabled%>';
css = 'wanoff';
break;
}
@@ -46,18 +46,18 @@
}
else
{
- statusDiv.innerHTML = '<strong>No MWAN interfaces found</strong>';
+ statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
}
var logs = document.getElementById('mwan_statuslog_text');
if (mArray.mwanlog)
{
- var mwanLog = 'Last 50 MWAN systemlog entries. Newest entries sorted at the top :';
+ var mwanLog = '<%:Last 50 MWAN systemlog entries. Newest entries sorted at the top :%>';
logs.innerHTML = String.format('<pre>%s<br /><br />%s</pre>', mwanLog, mArray.mwanlog[0]);
}
else
{
- logs.innerHTML = '<strong>No MWAN systemlog history found</strong>';
+ logs.innerHTML = '<strong><%:No MWAN systemlog history found%></strong>';
}
}
);
@@ -66,11 +66,11 @@
<div id="mwan_interface_status">
<fieldset id="interface_field" class="cbi-section">
<legend><%:MWAN Interface Live Status%></legend>
- <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
+ <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
</fieldset>
<fieldset class="cbi-section">
<legend><%:MWAN Interface Systemlog%></legend>
- <div id="mwan_statuslog_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
+ <div id="mwan_statuslog_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
</fieldset>
</div>