From 363b8909a1fdd8ee1173c14c664d7b59623f0637 Mon Sep 17 00:00:00 2001 From: Kris <“x@hi.sy”> Date: Fri, 29 Apr 2022 15:59:39 +0200 Subject: [PATCH] Update all theme texts --- resource/l10n/zh-CN.toml | 42 +++++++++++++++++++ resource/template/theme-daynight/home.html | 28 ++++++------- resource/template/theme-daynight/service.html | 20 ++++----- .../template/theme-daynight/viewpassword.html | 8 ++-- resource/template/theme-hotaru/home.html | 40 +++++++++--------- resource/template/theme-hotaru/service.html | 10 ++--- .../template/theme-hotaru/viewpassword.html | 4 +- resource/template/theme-mdui/home.html | 26 ++++++------ resource/template/theme-mdui/menu.html | 22 +++++----- resource/template/theme-mdui/service.html | 30 ++++++------- .../template/theme-mdui/viewpassword.html | 8 ++-- 11 files changed, 140 insertions(+), 98 deletions(-) diff --git a/resource/l10n/zh-CN.toml b/resource/l10n/zh-CN.toml index ac242f4..89fd671 100644 --- a/resource/l10n/zh-CN.toml +++ b/resource/l10n/zh-CN.toml @@ -417,3 +417,45 @@ other = "当前用量" [VerifyPassword] other = "验证查看密码" + +[LightMode] +other = "白昼模式" + +[DarkMode] +other = "暗黑模式" + +[GridLayout] +other = "网格视图" + +[ListLayout] +other = "列表视图" + +[EnterPassword] +other = "输入密码" + +[StatusTips] +other = """ +状态更新和事件报告可能会延迟最多30秒 +这取决于技术原因。请向下滚动查看过去的活动报告 +""" + +[Location] +other = "地区" + +[Running] +other = "运行中" + +[UpNetTransfer] +other = "上行" + +[DownNetTransfer] +other = "下行" + +[TotalUpNetTransfer] +other = "总上行" + +[TotalDownNetTransfer] +other = "总下行" + +[WrongPassword] +other = "密码错误" diff --git a/resource/template/theme-daynight/home.html b/resource/template/theme-daynight/home.html index f0a7680..cb786f7 100644 --- a/resource/template/theme-daynight/home.html +++ b/resource/template/theme-daynight/home.html @@ -37,12 +37,12 @@ @@ -111,7 +111,7 @@
  • -

    硬盘

    +

    {{tr "DiskUsed"}}

    @@ -239,7 +239,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); @@ -261,8 +261,8 @@ Swal.fire({ position: 'top', icon: 'success', - title: '实时通道建立', - text: '可以实时获取最新监控数据啦', + title: '{{tr "RealtimeChannelEstablished"}}', + text: '{{tr "GetTheLatestMonitoringDataInRealTime"}}', showConfirmButton: false, timer: 2000 }); @@ -288,8 +288,8 @@ Swal.fire({ position: 'top', icon: 'error', - title: '实时通道断开', - text: '无法实时获取最新监控数据咯', + title: '{{tr "RealtimeChannelDisconnect"}}', + text: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}', showConfirmButton: false, timer: 2000 }); diff --git a/resource/template/theme-daynight/service.html b/resource/template/theme-daynight/service.html index 157566a..3661f5d 100644 --- a/resource/template/theme-daynight/service.html +++ b/resource/template/theme-daynight/service.html @@ -41,12 +41,12 @@
    @@ -55,8 +55,8 @@
    -

    服务状态

    -

    最近30天在线率

    +

    {{tr "Status"}}

    +

    {{tr "30DaysOnline"}}

    {{range $service := .Services}} @@ -86,10 +86,10 @@ diff --git a/resource/template/theme-daynight/viewpassword.html b/resource/template/theme-daynight/viewpassword.html index edc7c69..47f6870 100644 --- a/resource/template/theme-daynight/viewpassword.html +++ b/resource/template/theme-daynight/viewpassword.html @@ -17,13 +17,13 @@
    -

    登 录

    +

    {{tr "Login"}}

    -

    验证查看密码

    - +

    {{tr "VerifyPassword"}}

    + - +