@@ -26,7 +26,7 @@
{{range $i,$d := $service.Delay}}
+ data-tooltip="{{dayBefore $i}}, {{tr "AverageLatency"}}:{{float32f $d}}ms">
{{end}}
|
diff --git a/resource/template/theme-hotaru/viewpassword.html b/resource/template/theme-hotaru/viewpassword.html
index cc2b1fb..73b1b75 100644
--- a/resource/template/theme-hotaru/viewpassword.html
+++ b/resource/template/theme-hotaru/viewpassword.html
@@ -9,14 +9,14 @@
diff --git a/resource/template/theme-mdui/home.html b/resource/template/theme-mdui/home.html
index 01cfc8a..de63302 100644
--- a/resource/template/theme-mdui/home.html
+++ b/resource/template/theme-mdui/home.html
@@ -68,13 +68,13 @@
swap_vert
- 上行
+ {{tr "UpNetTransfer"}}
@#formatNetByteSize(server.State.NetOutSpeed)#@
- 下行
+ {{tr "DownNetTransfer"}}
@#formatNetByteSize(server.State.NetInSpeed)#@
@@ -83,13 +83,13 @@
swap_horiz
- 总上行
+ {{tr "TotalUpNetTransfer"}}
@#formatByteSize(server.State.NetOutTransfer)#@
- 总下行
+ {{tr "TotalDownNetTransfer"}}
@#formatByteSize(server.State.NetInTransfer)#@
@@ -107,14 +107,14 @@
ID |
- Name |
- Up |
- Down |
- Total Up |
- Total Down |
+ {{tr "Name"}} |
+ {{tr "UpNetTransfer"}} |
+ {{tr "DownNetTransfer"}} |
+ {{tr "TotalUpNetTransfer"}} |
+ {{tr "TotalDownNetTransfer"}} |
CPU |
RAM |
- Online |
+ {{tr "Uptime"}} |
@@ -178,7 +178,7 @@
secondToDate(s) {
var d = Math.floor(s / 3600 / 24);
if (d > 0) {
- return d + "天"
+ return d + "{{tr "Day"}}"
}
var h = Math.floor(s / 3600 % 24);
var m = Math.floor(s / 60 % 60);
@@ -229,7 +229,7 @@
const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
ws.onopen = function (evt) {
mdui.snackbar({
- message: '实时通道建立',
+ message: '{{tr "RealtimeChannelEstablished"}}',
timeout: 2000,
position: 'top',
onClosed: function(){
@@ -281,7 +281,7 @@
}
ws.onclose = function () {
mdui.snackbar({
- message: '实时通道断开',
+ message: '{{tr "RealtimeChannelDisconnect"}}',
timeout: 2000,
position: 'top',
});
diff --git a/resource/template/theme-mdui/menu.html b/resource/template/theme-mdui/menu.html
index 7d0be88..ccbc461 100644
--- a/resource/template/theme-mdui/menu.html
+++ b/resource/template/theme-mdui/menu.html
@@ -4,25 +4,25 @@
diff --git a/resource/template/theme-mdui/service.html b/resource/template/theme-mdui/service.html
index 6732e5f..7044f93 100644
--- a/resource/template/theme-mdui/service.html
+++ b/resource/template/theme-mdui/service.html
@@ -26,10 +26,10 @@
- Name |
- SLA |
- Details of Last 30 Days |
- Now |
+ {{tr "Name"}} |
+ {{tr "Availability"}} |
+ {{tr "30DaysOnline"}} |
+ {{tr "Status"}} |
@@ -41,13 +41,13 @@
{{range $i,$d := $service.Delay}}
{{$percent := (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}
{{if eq $percent 0.0}}
- favorite_border
+ favorite_border
{{else if ge $percent 95.0}}
- favorite
+ favorite
{{else if ge $percent 80.0}}
- favorite
+ favorite
{{else}}
- favorite
+ favorite
{{end}}
{{end}}
@@ -74,20 +74,20 @@
{{if .CycleTransferStats}}
- Network Traffic Statistics
+ {{tr "CycleTransferStats"}}
ID |
- Rule |
- Sever |
- Date From |
- Date To |
+ {{tr "Rules"}} |
+ {{tr "Server"}} |
+ {{tr "From"}} |
+ {{tr "To"}} |
MAX |
MIN |
- Check Next |
- Usage |
+ {{tr "NextCheck"}} |
+ {{tr "CurrentUsage"}} |
diff --git a/resource/template/theme-mdui/viewpassword.html b/resource/template/theme-mdui/viewpassword.html
index 19a84f7..c8084ef 100644
--- a/resource/template/theme-mdui/viewpassword.html
+++ b/resource/template/theme-mdui/viewpassword.html
@@ -18,18 +18,18 @@
- 验证查看密码
+ {{tr "VerifyPassword"}}
-
+
@@ -52,7 +52,7 @@
window.location.href = res.url;
} else {
mdui.snackbar({
- message: '密码错误',
+ message: '{{tr "WrongPassword"}}',
position: 'top',
timeout: 2000,
});
|