mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Translate status page
This commit is contained in:
parent
914e34d6d2
commit
656b889bc4
2 changed files with 327 additions and 80 deletions
|
@ -72,12 +72,12 @@
|
|||
{
|
||||
if (mArray.openmptcprouter.remote_from_lease == false)
|
||||
{
|
||||
var title = String.format("%s (%s)",'You', mArray.openmptcprouter.remote_addr);
|
||||
var title = String.format("%s (%s)",'<%:You%>', mArray.openmptcprouter.remote_addr);
|
||||
var statusMessageClass = "warning";
|
||||
var statusIcon = "<%=resource%>/openmptcprouter/images/statusWarning.png";
|
||||
var statusMessage = _('Your IP was not leased by this router');
|
||||
var statusMessage = '<%:Your IP was not leased by this router%>';
|
||||
} else {
|
||||
var title = String.format('<br /><strong>%s (%s)</strong>', mArray.openmptcprouter.remote_hostname ? mArray.openmptcprouter.remote_hostname : _('You'), mArray.openmptcprouter.remote_addr)
|
||||
var title = String.format('<br /><strong>%s (%s)</strong>', mArray.openmptcprouter.remote_hostname ? mArray.openmptcprouter.remote_hostname : _('<%:You%>'), mArray.openmptcprouter.remote_addr)
|
||||
var statusMessageClass = "";
|
||||
var statusIcon = "<%=resource%>/openmptcprouter/images/statusOK.png";
|
||||
var statusMessage = "";
|
||||
|
@ -116,24 +116,24 @@
|
|||
content += "Version " + mArray.openmptcprouter.version;
|
||||
if (mArray.openmptcprouter.latest_version_omr != mArray.openmptcprouter.version && mArray.openmptcprouter.latest_version_omr != "")
|
||||
{
|
||||
content += "<br><i>(" + _('Latest available version') + " " + mArray.openmptcprouter.latest_version_omr + ")</i>";
|
||||
content += "<br><i>(" + '<%:Latest available version%>' + " " + mArray.openmptcprouter.latest_version_omr + ")</i>";
|
||||
}
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.loadavg)
|
||||
{
|
||||
content += _('Load:') + " " + mArray.openmptcprouter.loadavg;
|
||||
content += '<%:Load:%>' + " " + mArray.openmptcprouter.loadavg;
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.core_temp)
|
||||
{
|
||||
content += _('Core temp:') + " " + (mArray.openmptcprouter.core_temp / 1000).toFixed(1) + " °";
|
||||
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 1000).toFixed(1) + " °";
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.uptime)
|
||||
{
|
||||
var date = new Date(null);
|
||||
content += _('Uptime:') + " " + String.format('%t', mArray.openmptcprouter.uptime);
|
||||
content += '<%:Uptime:%>' + " " + String.format('%t', mArray.openmptcprouter.uptime);
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.dhcpd)
|
||||
|
@ -141,8 +141,8 @@
|
|||
for ( dhcpd in mArray.openmptcprouter.dhcpd )
|
||||
{
|
||||
var dhcp = mArray.openmptcprouter.dhcpd[dhcpd];
|
||||
content += String.format('<span style="text-transform:capitalize;">%s</span> %s %s<br />', dhcp.interface, _('address:') ,dhcp.router);
|
||||
content += String.format('<span style="text-transform:capitalize;">%s</span> %s %s - %s<br />', dhcp.interface, _('range:'), dhcp.range_start, dhcp.range_end);
|
||||
content += String.format('<span style="text-transform:capitalize;">%s</span> %s %s<br />', dhcp.interface, '<%:address:%>' ,dhcp.router);
|
||||
content += String.format('<span style="text-transform:capitalize;">%s</span> %s %s - %s<br />', dhcp.interface, '<%:range:%>', dhcp.range_start, dhcp.range_end);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,10 +150,10 @@
|
|||
{
|
||||
if (mArray.openmptcprouter.shadowsocks_service == false)
|
||||
{
|
||||
statusMessage += _('ShadowSocks is not running');
|
||||
statusMessage += '<%:ShadowSocks is not running%>';
|
||||
if (mArray.openmptcprouter.shadowsocks_service_key == false && mArray.openmptcprouter.shadowsocks_service_method !== "none")
|
||||
{
|
||||
statusMessage += ' <i>(' + _('empty key') + ')</i>';
|
||||
statusMessage += ' <i>(' + '<%:empty key%>' + ')</i>';
|
||||
}
|
||||
statusMessage += '<br/>';
|
||||
}
|
||||
|
@ -162,25 +162,25 @@
|
|||
{
|
||||
if (mArray.openmptcprouter.v2ray_service == false)
|
||||
{
|
||||
statusMessage += _('V2Ray is not running');
|
||||
statusMessage += '<%:V2Ray is not running%>';
|
||||
statusMessage += '<br/>';
|
||||
}
|
||||
}
|
||||
if (mArray.openmptcprouter.fsro == true)
|
||||
{
|
||||
statusMessage += _('Filesystem is readonly') + '<br/>';
|
||||
statusMessage += '<%:Filesystem is readonly%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.multi_vpn == true)
|
||||
{
|
||||
statusMessage += _('More than one default VPN is enabled') + '<br/>';
|
||||
statusMessage += '<%:More than one default VPN is enabled%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.tun_service == false && mArray.openmptcprouter.service_addr != "")
|
||||
{
|
||||
statusMessage += _('VPN is not running') + '<br/>';
|
||||
statusMessage += '<%:VPN is not running%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.dns == false)
|
||||
{
|
||||
statusMessage += _('DNS issue: can\'t resolve hostname') + '<br/>';
|
||||
statusMessage += '<%:DNS issue: can\'t resolve hostname%>' + '<br/>';
|
||||
}
|
||||
|
||||
if(statusMessage !== "")
|
||||
|
@ -191,20 +191,20 @@
|
|||
{
|
||||
if (mArray.openmptcprouter.v2ray_enabled == false && mArray.openmptcprouter.shadowsocks_enabled == false)
|
||||
{
|
||||
statusMessage += _('Proxy is DISABLED') + '<br/>';
|
||||
statusMessage += '<%:Proxy is DISABLED%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.tun_state == "DOWN")
|
||||
{
|
||||
statusMessage += _('VPN tunnel DOWN') + '<br/>';
|
||||
statusMessage += '<%:VPN tunnel DOWN%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.ipv6 == "enabled")
|
||||
{
|
||||
if (mArray.openmptcprouter.tun6_state == "DOWN")
|
||||
{
|
||||
statusMessage += _('IPv6 tunnel DOWN') + '<br/>';
|
||||
statusMessage += '<%:IPv6 tunnel DOWN%>' + '<br/>';
|
||||
} else if (mArray.openmptcprouter.wan_addr6 == '')
|
||||
{
|
||||
statusMessage += _('No IPv6 access') + '<br/>';
|
||||
statusMessage += '<%:No IPv6 access%>' + '<br/>';
|
||||
}
|
||||
}
|
||||
if (statusMessage !== "")
|
||||
|
@ -240,16 +240,16 @@
|
|||
} else if (mArray.openmptcprouter.external_check == false) {
|
||||
var title = String.format("%s ?", mArray.openmptcprouter.vps_hostname);
|
||||
} else {
|
||||
var title = _('No output');
|
||||
statusMessage += _('No output') + '<br/>';
|
||||
var title = '<%:No output%>';
|
||||
statusMessage += '<%:No output%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.wan_addr == "" && mArray.openmptcprouter.ss_addr == "" && mArray.openmptcprouter.external_check == true)
|
||||
{
|
||||
statusMessage += _('No server IP address, No WAN IP address') + '<br/>';
|
||||
statusMessage += '<%:No server IP address, No WAN IP address%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.service_addr !== "" && mArray.openmptcprouter.wan_addr !== "" && mArray.openmptcprouter.vps_status == "DOWN")
|
||||
{
|
||||
statusMessage += _('Can\'t access and use server part') + '<br/>';
|
||||
statusMessage += '<%:Can\'t access and use server part%>' + '<br/>';
|
||||
}
|
||||
if (statusMessage !== "")
|
||||
{
|
||||
|
@ -258,21 +258,21 @@
|
|||
}
|
||||
if (mArray.openmptcprouter.service_addr == "")
|
||||
{
|
||||
statusMessage += _('No server defined') + '<br/>';
|
||||
statusMessage += '<%:No server defined%>' + '<br/>';
|
||||
} else {
|
||||
if (mArray.openmptcprouter.vps_status == "DOWN")
|
||||
{
|
||||
statusMessage += _('Can\'t ping server') + '<br/>';
|
||||
statusMessage += '<%:Can\'t ping server%>' + '<br/>';
|
||||
} else if (mArray.openmptcprouter.shadowsocks_enabled == true && mArray.openmptcprouter.ss_addr == "" && mArray.openmptcprouter.external_check == true)
|
||||
{
|
||||
statusMessage += _('Can\'t get public IP address from ShadowSocks') + '<br/>';
|
||||
statusMessage += '<%:Can\'t get public IP address from ShadowSocks%>' + '<br/>';
|
||||
} else if (mArray.openmptcprouter.wan_addr == "" && mArray.openmptcprouter.external_check == true)
|
||||
{
|
||||
statusMessage += _('No WAN IP address detected in less than 1 second') + '<br/>';
|
||||
statusMessage += '<%:No WAN IP address detected in less than 1 second%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.vps_admin == false)
|
||||
{
|
||||
statusMessage += _('Can\'t contact Server Admin Script');
|
||||
statusMessage += '<%:Can\'t contact Server Admin Script%>';
|
||||
if (mArray.openmptcprouter.vps_admin_error_msg !== "")
|
||||
{
|
||||
statusMessage += ' <i>(' + mArray.openmptcprouter.vps_admin_error_msg + ')</i>';
|
||||
|
@ -281,11 +281,11 @@
|
|||
}
|
||||
if (mArray.openmptcprouter.vps_mptcp == "0")
|
||||
{
|
||||
statusMessage += _('MPTCP is not enabled on the server') + '<br/>';
|
||||
statusMessage += '<%:MPTCP is not enabled on the server%>' + '<br/>';
|
||||
}
|
||||
if (mArray.openmptcprouter.vps_time_accurate == false)
|
||||
{
|
||||
statusMessage += _('Big time difference between the server and the router') + '<br/>';
|
||||
statusMessage += '<%:Big time difference between the server and the router%>' + '<br/>';
|
||||
}
|
||||
}
|
||||
if (statusMessage !== "" && statusMessageClass !== "error")
|
||||
|
@ -295,52 +295,52 @@
|
|||
}
|
||||
if (mArray.openmptcprouter.vps_omr_version)
|
||||
{
|
||||
content += _('Version') + " " + mArray.openmptcprouter.vps_omr_version;
|
||||
content += '<%:Version%>' + " " + mArray.openmptcprouter.vps_omr_version;
|
||||
if (mArray.openmptcprouter.vps_kernel)
|
||||
{
|
||||
content += " " + mArray.openmptcprouter.vps_kernel;
|
||||
}
|
||||
if (mArray.openmptcprouter.latest_version_vps !== mArray.openmptcprouter.vps_omr_version && mArray.openmptcprouter.latest_version_vps !== "")
|
||||
{
|
||||
content += "<br><i>(" + _('Latest available version') + " " + mArray.openmptcprouter.latest_version_vps + ")</i>";
|
||||
content += "<br><i>(" + '<%:Latest available version%>' + " " + mArray.openmptcprouter.latest_version_vps + ")</i>";
|
||||
}
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.vps_loadavg)
|
||||
{
|
||||
content += _('Load:') + " " + mArray.openmptcprouter.vps_loadavg;
|
||||
content += '<%:Load:%>' + " " + mArray.openmptcprouter.vps_loadavg;
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.vps_uptime)
|
||||
{
|
||||
var date = new Date(null);
|
||||
content += _('Uptime:') + " " + String.format('%t', mArray.openmptcprouter.vps_uptime);
|
||||
content += '<%:Uptime:%>' + " " + String.format('%t', mArray.openmptcprouter.vps_uptime);
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.server_mptcp == "disabled")
|
||||
{
|
||||
statusMessage += _('MPTCP may not be enabled on the server') + '<br/>';
|
||||
statusMessage += '<%:MPTCP may not be enabled on the server%>' + '<br/>';
|
||||
statusMessageClass = "warning";
|
||||
statusIcon = "<%=resource%>/openmptcprouter/images/statusWarning.png";
|
||||
}
|
||||
if (mArray.openmptcprouter.wan_addr6)
|
||||
{
|
||||
content += _('IPv6:') + " " + mArray.openmptcprouter.wan_addr6;
|
||||
content += '<%:IPv6:%>' + " " + mArray.openmptcprouter.wan_addr6;
|
||||
content += '<br />';
|
||||
}
|
||||
if (mArray.openmptcprouter.proxy_traffic && mArray.openmptcprouter.proxy_traffic != 0)
|
||||
{
|
||||
content += _('Proxy traffic:') + " " + formatBytes(mArray.openmptcprouter.proxy_traffic);
|
||||
content += '<%:Proxy traffic:%>' + " " + formatBytes(mArray.openmptcprouter.proxy_traffic);
|
||||
content += '<br />';
|
||||
}
|
||||
if (mArray.openmptcprouter.vpn_traffic && mArray.openmptcprouter.vpn_traffic != 0)
|
||||
{
|
||||
content += _('VPN traffic:') + " " + formatBytes(mArray.openmptcprouter.vpn_traffic);
|
||||
content += '<%:VPN traffic:%>' + " " + formatBytes(mArray.openmptcprouter.vpn_traffic);
|
||||
content += '<br />';
|
||||
}
|
||||
if (mArray.openmptcprouter.total_traffic && mArray.openmptcprouter.total_traffic != 0)
|
||||
{
|
||||
content += _('Total traffic:') + " " + formatBytes(mArray.openmptcprouter.total_traffic);
|
||||
content += '<%:Total traffic:%>' + " " + formatBytes(mArray.openmptcprouter.total_traffic);
|
||||
content += '<br />';
|
||||
}
|
||||
content += '<br />';
|
||||
|
@ -436,35 +436,35 @@
|
|||
var content = "";
|
||||
if(ipaddr !== '')
|
||||
{
|
||||
content += String.format('%s <strong>%s</strong><br />',_('ip address:'), ipaddr);
|
||||
content += String.format('%s <strong>%s</strong><br />','<%:ip address:%>', ipaddr);
|
||||
}
|
||||
if(wanip !== '')
|
||||
{
|
||||
content += String.format('%s <strong>%s</strong><br />',_('wan address:'), wanip);
|
||||
content += String.format('%s <strong>%s</strong><br />','<%:wan address:%>', wanip);
|
||||
}
|
||||
if(whois !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('whois:'), whois);
|
||||
content += String.format('%s %s<br />','<%:whois:%>', whois);
|
||||
}
|
||||
if(latency !== '')
|
||||
{
|
||||
content += String.format('%s %s ms<br />',_('latency:'), latency);
|
||||
content += String.format('%s %s ms<br />','<%:latency:%>', latency);
|
||||
}
|
||||
if(mtu !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('mtu:'), mtu);
|
||||
content += String.format('%s %s<br />','<%:mtu:%>', mtu);
|
||||
}
|
||||
if (operator !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('operator:'), operator);
|
||||
content += String.format('%s %s<br />','<%:operator:%>', operator);
|
||||
}
|
||||
if (phonenumber !== '' && anonymize !== 'true')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('phone number:'), phonenumber);
|
||||
content += String.format('%s %s<br />','<%:phone number:%>', phonenumber);
|
||||
}
|
||||
if (donglestate !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('state:'), donglestate);
|
||||
content += String.format('%s %s<br />','<%:state:%>', donglestate);
|
||||
}
|
||||
|
||||
if(signal !== '')
|
||||
|
@ -486,64 +486,64 @@
|
|||
}
|
||||
if(ipaddr == '')
|
||||
{
|
||||
statusMessage += _('No IP defined') + '<br />';
|
||||
statusMessage += '<%:No IP defined%>' + '<br />';
|
||||
}
|
||||
if(gateway == '')
|
||||
{
|
||||
statusMessage += _('No gateway defined') + '<br />';
|
||||
statusMessage += '<%:No gateway defined%>' + '<br />';
|
||||
} else if(gw_ping == 'DOWN')
|
||||
{
|
||||
statusMessage += _('Gateway DOWN') + '<br />';
|
||||
statusMessage += '<%:Gateway DOWN%>' + '<br />';
|
||||
} else if(multipath_available == 'ERROR')
|
||||
{
|
||||
statusMessage += _('Multipath seems to be blocked on the connection') + '<br />';
|
||||
statusMessage += '<%:Multipath seems to be blocked on the connection%>' + '<br />';
|
||||
}
|
||||
if(server_ping == 'DOWN' && mArray.openmptcprouter.service_addr !== "")
|
||||
{
|
||||
statusMessage += _('No Server ping response after 1 second') + '<br />';
|
||||
statusMessage += '<%:No Server ping response after 1 second%>' + '<br />';
|
||||
}
|
||||
if (stat == 'Offline' && ipaddr != '' && ipaddr == mArray.wans[i].gateway)
|
||||
{
|
||||
statusMessage += _('Wan IP and gateway are identical') + '<br />';
|
||||
statusMessage += '<%:Wan IP and gateway are identical%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(multipath == 'master')
|
||||
{
|
||||
if (master > 1)
|
||||
{
|
||||
statusMessage += _('Multipath master already defined') + '<br />';
|
||||
statusMessage += '<%:Multipath master already defined%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(multipath_state !== 'on' && multipath_state !== '')
|
||||
{
|
||||
statusMessage += _('Multipath current state is ') + multipath_state + '<br />';
|
||||
statusMessage += '<%:Multipath current state is %>' + multipath_state + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
} else {
|
||||
if(multipath !== multipath_state && multipath_state !== '')
|
||||
{
|
||||
statusMessage += _('Multipath current state is ') + multipath_state + '<br />';
|
||||
statusMessage += '<%:Multipath current state is %>' + multipath_state + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
}
|
||||
if(duplicateif)
|
||||
{
|
||||
statusMessage += _('Network interface duplicated') + '<br />';
|
||||
statusMessage += '<%:Network interface duplicated%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(ipv6_discover == 'DETECTED')
|
||||
{
|
||||
statusMessage += _('IPv6 route received') + '<br />'
|
||||
statusMessage += '<%:IPv6 route received%>' + '<br />'
|
||||
}
|
||||
if (statusMessage !== "" && statusMessageClass !== "error")
|
||||
{
|
||||
statusMessageClass = "warning";
|
||||
statusIcon = "<%=resource%>/openmptcprouter/images/statusWarning.png";
|
||||
}
|
||||
content += String.format('multipath: %s<br />',multipath);
|
||||
content += String.format('<%:multipath:%> %s<br />',multipath);
|
||||
if(mArray.wans[i].qos && mArray.wans[i].download > 0 && mArray.wans[i].upload > 0)
|
||||
{
|
||||
content += String.format('%s %s/%s kbps (%s)',_('traffic control:'), mArray.wans[i].download, mArray.wans[i].upload, mArray.wans[i].qos)
|
||||
content += String.format('%s %s/%s kbps (%s)','<%:traffic control:%>', mArray.wans[i].download, mArray.wans[i].upload, mArray.wans[i].qos)
|
||||
}
|
||||
temp += getNetworkNodeTemplate(equipmentIcon, statusIcon, title, statusMessageClass,statusMessage,content);
|
||||
|
||||
|
@ -627,79 +627,79 @@
|
|||
var content = "";
|
||||
if(ipaddr !== '')
|
||||
{
|
||||
content += String.format('%s <strong>%s</strong><br />',_('ip address:'), ipaddr);
|
||||
content += String.format('%s <strong>%s</strong><br />','<%:ip address:%>', ipaddr);
|
||||
}
|
||||
if(wanip !== '')
|
||||
{
|
||||
content += String.format('%s <strong>%s</strong><br />',_('wan address:'), wanip);
|
||||
content += String.format('%s <strong>%s</strong><br />','<%:wan address:%>', wanip);
|
||||
}
|
||||
if(whois !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('whois:'), whois);
|
||||
content += String.format('%s %s<br />','<%:whois:%>', whois);
|
||||
}
|
||||
if(latency !== '')
|
||||
{
|
||||
content += String.format('%s %s ms<br />',_('latency:'), latency);
|
||||
content += String.format('%s %s ms<br />','<%:latency:%>', latency);
|
||||
}
|
||||
if(mtu !== '')
|
||||
{
|
||||
content += String.format('%s %s<br />',_('mtu:'), mtu);
|
||||
content += String.format('%s %s<br />','<%:mtu:%>', mtu);
|
||||
}
|
||||
if(ipaddr == '')
|
||||
{
|
||||
statusMessage += _('No IP defined') + '<br />'
|
||||
statusMessage += '<%:No IP defined%>' + '<br />'
|
||||
}
|
||||
if(gateway == '')
|
||||
{
|
||||
statusMessage += _('No gateway defined') + '<br />'
|
||||
statusMessage += '<%:No gateway defined%>' + '<br />'
|
||||
} else if(gw_ping == 'DOWN')
|
||||
{
|
||||
statusMessage += _('Gateway DOWN') + '<br />'
|
||||
statusMessage += '<%:Gateway DOWN%>' + '<br />'
|
||||
} else if(multipath_available == 'ERROR')
|
||||
{
|
||||
statusMessage += _('Multipath seems to be blocked on the connection') + '<br />'
|
||||
statusMessage += '<%:Multipath seems to be blocked on the connection%>' + '<br />'
|
||||
}
|
||||
if(server_ping == 'DOWN')
|
||||
{
|
||||
statusMessage += _('No Server ping response after 1 second') + '<br />'
|
||||
statusMessage += '<%:No Server ping response after 1 second%>' + '<br />'
|
||||
}
|
||||
if (stat == 'Offline' && ipaddr != '' && ipaddr == mArray.tunnels[i].gateway)
|
||||
{
|
||||
statusMessage += _('Wan IP and gateway are identical') + '<br />';
|
||||
statusMessage += '<%:Wan IP and gateway are identical%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(multipath == 'master')
|
||||
{
|
||||
if (master > 1)
|
||||
{
|
||||
statusMessage += _('Multipath master already defined') + '<br />';
|
||||
statusMessage += '<%:Multipath master already defined%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(multipath_state !== 'on' && multipath_state !== '')
|
||||
{
|
||||
statusMessage += _('Multipath current state is ') + multipath_state + '<br />';
|
||||
statusMessage += '<%:Multipath current state is %>' + multipath_state + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
} else {
|
||||
if(multipath !== multipath_state && multipath_state !== '')
|
||||
{
|
||||
statusMessage += _('Multipath current state is ') + multipath_state + '<br />';
|
||||
statusMessage += '<%:Multipath current state is %>' + multipath_state + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
}
|
||||
if(duplicateif)
|
||||
{
|
||||
statusMessage += _('Network interface duplicated') + '<br />';
|
||||
statusMessage += '<%:Network interface duplicated%>' + '<br />';
|
||||
statusMessageClass = "error";
|
||||
}
|
||||
if(ipv6_discover == 'DETECTED')
|
||||
{
|
||||
statusMessage += _('IPv6 route received') + '<br />'
|
||||
statusMessage += '<%:IPv6 route received%>' + '<br />'
|
||||
}
|
||||
content += String.format('multipath: %s<br />',multipath);
|
||||
content += String.format('<%:multipath:%> %s<br />',multipath);
|
||||
if(mArray.tunnels[i].qos && mArray.tunnels[i].download > 0 && mArray.tunnels[i].upload > 0)
|
||||
{
|
||||
content += String.format('%s %s/%s kbps (%s)',_('traffic control:'), mArray.tunnels[i].download, mArray.tunnels[i].upload, mArray.tunnels[i].qos)
|
||||
content += String.format('%s %s/%s kbps (%s)','<%:traffic control:%>', mArray.tunnels[i].download, mArray.tunnels[i].upload, mArray.tunnels[i].qos)
|
||||
}
|
||||
temp += getNetworkNodeTemplate(equipmentIcon, statusIcon, title, statusMessageClass,statusMessage,content);
|
||||
|
||||
|
@ -709,7 +709,7 @@
|
|||
temp += '</tr></table>';
|
||||
}
|
||||
if (mArray === null) {
|
||||
temp += _('No data');
|
||||
temp += '<%:No data%>';
|
||||
}
|
||||
temp += '</li>';
|
||||
// Close tree
|
||||
|
|
|
@ -72,6 +72,10 @@ msgstr ""
|
|||
msgid "Beta"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:288
|
||||
msgid "Big time difference between the server and the router"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:463
|
||||
msgid "Bridge"
|
||||
msgstr ""
|
||||
|
@ -89,6 +93,22 @@ msgstr ""
|
|||
msgid "CHAP"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:252
|
||||
msgid "Can\\'t access and use server part"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:275
|
||||
msgid "Can\\'t contact Server Admin Script"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:268
|
||||
msgid "Can\\'t get public IP address from ShadowSocks"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:265
|
||||
msgid "Can\\'t ping server"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:467
|
||||
msgid ""
|
||||
"Choose MacVLAN if you want to create a virtual interface based on a physical "
|
||||
|
@ -105,11 +125,19 @@ msgstr ""
|
|||
msgid "Common server settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:130
|
||||
msgid "Core temp:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:373
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:498
|
||||
msgid "DHCP"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:183
|
||||
msgid "DNS issue: can\\'t resolve hostname"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/settings.htm:266
|
||||
msgid "Debug"
|
||||
msgstr ""
|
||||
|
@ -231,6 +259,10 @@ msgstr ""
|
|||
msgid "Encryption method is used for Shadowsocks, V2Ray, Glorytun and OpenVPN."
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:171
|
||||
msgid "Filesystem is readonly"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:150
|
||||
msgid "Force retrieve all keys from server."
|
||||
msgstr ""
|
||||
|
@ -243,6 +275,11 @@ msgstr ""
|
|||
msgid "GPRS only"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:496
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:657
|
||||
msgid "Gateway DOWN"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:253
|
||||
msgid "Glorytun TCP is used by default for UDP and ICMP"
|
||||
msgstr ""
|
||||
|
@ -306,10 +343,23 @@ msgstr ""
|
|||
msgid "IPv6 Prefix"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:536
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:697
|
||||
msgid "IPv6 route received"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:156
|
||||
msgid "IPv6 settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:204
|
||||
msgid "IPv6 tunnel DOWN"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:328
|
||||
msgid "IPv6:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:428
|
||||
msgid "Interfaces settings"
|
||||
msgstr ""
|
||||
|
@ -351,6 +401,16 @@ msgstr ""
|
|||
msgid "Last available backup on server:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:119
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:305
|
||||
msgid "Latest available version"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:125
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:311
|
||||
msgid "Load:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:277
|
||||
msgid "MLVPN can replace Glorytun with connections with same latency"
|
||||
msgstr ""
|
||||
|
@ -360,6 +420,14 @@ msgstr ""
|
|||
msgid "MLVPN password"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:284
|
||||
msgid "MPTCP is not enabled on the server"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:322
|
||||
msgid "MPTCP may not be enabled on the server"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:721
|
||||
msgid "MPTCP over VPN"
|
||||
msgstr ""
|
||||
|
@ -396,10 +464,31 @@ msgstr ""
|
|||
msgid "ModemManager"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:175
|
||||
msgid "More than one default VPN is enabled"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:694
|
||||
msgid "Multipath TCP"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:519
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:525
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:680
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:686
|
||||
msgid "Multipath current state is"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:514
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:675
|
||||
msgid "Multipath master already defined"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:499
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:660
|
||||
msgid "Multipath seems to be blocked on the connection"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:500
|
||||
msgid "NCM"
|
||||
msgstr ""
|
||||
|
@ -408,6 +497,11 @@ msgstr ""
|
|||
msgid "NONE"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:531
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:692
|
||||
msgid "Network interface duplicated"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:792
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:794
|
||||
msgid "Network overview"
|
||||
|
@ -417,6 +511,24 @@ msgstr ""
|
|||
msgid "Networks settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:489
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:650
|
||||
msgid "No IP defined"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:207
|
||||
msgid "No IPv6 access"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:503
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:664
|
||||
msgid "No Server ping response after 1 second"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:271
|
||||
msgid "No WAN IP address detected in less than 1 second"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/backup.htm:24
|
||||
msgid "No available backup on server."
|
||||
msgstr ""
|
||||
|
@ -425,6 +537,28 @@ msgstr ""
|
|||
msgid "No change"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:712
|
||||
msgid "No data"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:493
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:654
|
||||
msgid "No gateway defined"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:243
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:244
|
||||
msgid "No output"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:248
|
||||
msgid "No server IP address, No WAN IP address"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:261
|
||||
msgid "No server defined"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:223
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
@ -520,10 +654,18 @@ msgstr ""
|
|||
msgid "Protocol"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:194
|
||||
msgid "Proxy is DISABLED"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:179
|
||||
msgid "Proxy settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:333
|
||||
msgid "Proxy traffic:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:502
|
||||
msgid "QMI"
|
||||
msgstr ""
|
||||
|
@ -630,6 +772,10 @@ msgstr ""
|
|||
msgid "Settings Wizard"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:153
|
||||
msgid "ShadowSocks is not running"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:202
|
||||
msgid "ShadowSocks is used for TCP."
|
||||
msgstr ""
|
||||
|
@ -682,6 +828,10 @@ msgid ""
|
|||
"retransmissions remain unacknowledged."
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:343
|
||||
msgid "Total traffic:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:458
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
@ -719,11 +869,20 @@ msgstr ""
|
|||
msgid "Upload speed (Kb/s)"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:136
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:317
|
||||
msgid "Uptime:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:746
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:762
|
||||
msgid "Used by Glorytun UDP and SQM/QoS if enabled. 0 to use default value."
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:165
|
||||
msgid "V2Ray is not running"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:212
|
||||
msgid "V2Ray is used for TCP and UDP."
|
||||
msgstr ""
|
||||
|
@ -736,14 +895,35 @@ msgstr ""
|
|||
msgid "V2Ray user id"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:179
|
||||
msgid "VPN is not running"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:244
|
||||
msgid "VPN settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:338
|
||||
msgid "VPN traffic:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:198
|
||||
msgid "VPN tunnel DOWN"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/settings.htm:41
|
||||
msgid "VPS settings"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:298
|
||||
msgid "Version"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:507
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:668
|
||||
msgid "Wan IP and gateway are identical"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/settings.htm:191
|
||||
msgid ""
|
||||
"When enable check are done on external sites to get each WAN IP and the IP "
|
||||
|
@ -754,6 +934,11 @@ msgstr ""
|
|||
msgid "Wizard"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:75
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:80
|
||||
msgid "You"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:726
|
||||
msgid "You can enable MPTCP over VPN if your provider filter Multipath TCP."
|
||||
msgstr ""
|
||||
|
@ -784,10 +969,72 @@ msgstr ""
|
|||
msgid "You should disable SQM for LTE or any interfaces with variable speed."
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:78
|
||||
msgid "Your IP was not leased by this router"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:144
|
||||
msgid "address:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:660
|
||||
msgid "auto"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:156
|
||||
msgid "empty key"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:439
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:630
|
||||
msgid "ip address:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:451
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:642
|
||||
msgid "latency:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:455
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:646
|
||||
msgid "mtu:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:543
|
||||
msgid "multipath:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:459
|
||||
msgid "operator:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm:227
|
||||
msgid "other"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:463
|
||||
msgid "phone number:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:145
|
||||
msgid "range:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:467
|
||||
msgid "state:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:546
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:702
|
||||
msgid "traffic control:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:443
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:634
|
||||
msgid "wan address:"
|
||||
msgstr ""
|
||||
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:447
|
||||
#: luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm:638
|
||||
msgid "whois:"
|
||||
msgstr ""
|
||||
|
|
Loading…
Reference in a new issue