From 18b151247bcb2f5a955a1df8e26d2cd2fa062eb0 Mon Sep 17 00:00:00 2001 From: Huangbin Zhan Date: Wed, 24 Jun 2020 15:22:24 +0800 Subject: luci-app-acme: convert to client side rendering Signed-off-by: Huangbin Zhan --- applications/luci-app-acme/po/zh_Hans/acme.po | 84 +++++++++++++++++---------- 1 file changed, 52 insertions(+), 32 deletions(-) (limited to 'applications/luci-app-acme/po/zh_Hans') diff --git a/applications/luci-app-acme/po/zh_Hans/acme.po b/applications/luci-app-acme/po/zh_Hans/acme.po index a384d8856e..9b796c7365 100644 --- a/applications/luci-app-acme/po/zh_Hans/acme.po +++ b/applications/luci-app-acme/po/zh_Hans/acme.po @@ -10,7 +10,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 4.2-dev\n" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:18 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:17 msgid "ACME certificates" msgstr "ACME 证书" @@ -18,58 +18,66 @@ msgstr "ACME 证书" msgid "ACME certs" msgstr "ACME 证书" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:27 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:26 msgid "ACME global config" msgstr "ACME 全局配置" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:35 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:34 msgid "Account email" msgstr "电子邮件帐户" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:43 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:42 msgid "Certificate config" msgstr "证书配置" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:107 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:106 msgid "Challenge Alias" msgstr "质询别名" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:94 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:93 msgid "DNS API" msgstr "DNS API" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:101 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:100 msgid "DNS API credentials" msgstr "DNS API 凭证" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:112 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:111 msgid "Domain Alias" msgstr "域名别名" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:88 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:87 msgid "Domain names" msgstr "域名" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:89 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:88 msgid "" "Domain names to include in the certificate. The first name will be the " "subject name, subsequent names will be alt names. Note that all domain names " "must point at the router in the global DNS." msgstr "证书中要包含的域名。第一个名字将是主题名,后面的名字将是主题备用名称。请注意,所有域名都必须在路由中指向全局 DNS。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:36 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:59 +msgid "ECC 256 bits" +msgstr "" + +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:60 +msgid "ECC 384 bits" +msgstr "" + +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:35 msgid "Email address to associate with account key." msgstr "与帐户密钥关联的电子邮件地址。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:40 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:39 msgid "Enable debug logging" msgstr "启用调试日志记录" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:47 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:46 msgid "Enabled" msgstr "已启用" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:51 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:50 msgid "" "Get certificate from the Letsencrypt staging server (use for testing; the " "certificate won't be valid)." @@ -79,19 +87,31 @@ msgstr "从 Letsencrypt 临时服务器获取证书(用于测试;证书无效) msgid "Grant UCI access for luci-app-acme" msgstr "授予 UCI 访问 luci-app-acme 的权限" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:55 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:54 msgid "Key size" msgstr "密钥长度" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:56 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:55 msgid "Key size (and type) for the generated certificate." msgstr "生成的证书的密钥长度(和类型)。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:30 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:56 +msgid "RSA 2048 bits" +msgstr "" + +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:57 +msgid "RSA 3072 bits" +msgstr "" + +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:58 +msgid "RSA 4096 bits" +msgstr "" + +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:29 msgid "State directory" msgstr "状态文件夹" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:108 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:107 msgid "" "The challenge alias to use for ALL domains. See https://github.com/acmesh-" "official/acme.sh/wiki/DNS-alias-mode for the details of this process. LUCI " @@ -100,7 +120,7 @@ msgstr "" "用于所有域名的质询别名(challenge alias)。有关此过程的详细信息,请参阅 https://github.com/" "acmesh-official/acme.sh/wiki/DNS-alias-mode。LUCI 每个证书只支持一个质询别名。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:102 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:101 msgid "" "The credentials for the DNS API mode selected above. See https://github.com/" "acmesh-official/acme.sh/wiki/dnsapi for the format of credentials required " @@ -110,7 +130,7 @@ msgstr "" "上面选择的 DNS API 模式的凭据。请参阅 https://github.com/acmesh-official/acme.sh/wiki/" "dnsapi 以了解每个 API 所需的凭据格式。在此处以 KEY=VAL shell 变量格式添加多个条目,以提供多个凭据变量。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:113 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:112 msgid "" "The domain alias to use for ALL domains. See https://github.com/acmesh-" "official/acme.sh/wiki/DNS-alias-mode for the details of this process. LUCI " @@ -119,7 +139,7 @@ msgstr "" "用于所有域名的别名(domain alias)。有关此过程的详细信息,请参阅 https://github.com/acmesh-official/" "acme.sh/wiki/DNS-alias-mode。LUCI 每个证书只支持一个质询别名。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:19 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:18 msgid "" "This configures ACME (Letsencrypt) automatic certificate installation. " "Simply fill out this to have the router configured with Letsencrypt-issued " @@ -131,7 +151,7 @@ msgstr "" "这将配置 ACME (Letsencrypt) 自动证书安装。只需填写此内容即可为路由器配置由 Letsencrypt 颁发的 Web 界面证书。请注意," "证书中的域名必须已经配置为指向路由器的公网 IP 地址。配置完成后,颁发证书可能需要一段时间。从日志中查看签署进度和错误。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:95 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:94 msgid "" "To use DNS mode to issue certificates, set this to the name of a DNS API " "supported by acme.sh. See https://github.com/acmesh-official/acme.sh/wiki/" @@ -144,41 +164,41 @@ msgstr "" "https://github.com/acmesh-official/acme.sh/wiki/dnsapi。在 DNS " "模式下,域名不必解析为路由器IP。DNS 模式也是唯一支持通配符证书的模式。使用此模式需要安装 acme-dnsapi 包。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:75 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:74 msgid "" "Update the nginx config with this certificate once issued (only select this " -"for one certificate).Nginx must support ssl, if not it won't start as it " +"for one certificate). Nginx must support ssl, if not it won't start as it " "needs to be compiled with ssl support to use cert options" msgstr "" "颁发此证书后,用该证书更新 nginx 配置(只能有一个证书配置选中该选项)。Nginx 必须支持 " "ssl,如果无法启动,则必须使用ssl支持进行编译才能使用证书选项" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:67 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:66 msgid "" "Update the uhttpd config with this certificate once issued (only select this " -"for one certificate).Is also available luci-app-uhttpd to configure uhttpd " +"for one certificate). Is also available luci-app-uhttpd to configure uhttpd " "form the LuCI interface." msgstr "" "签发此证书后,使用此证书更新 uhttpd 配置(只能有一个证书配置选中该选项)。也可通过 LuCI 界面的 luci-app-uhttpd 来配置 " "uhttpd。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:74 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:73 msgid "Use for nginx" msgstr "用于 Nginx" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:66 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:65 msgid "Use for uhttpd" msgstr "用于 uhttpd" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:50 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:49 msgid "Use staging server" msgstr "使用临时服务器" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:82 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:81 msgid "Webroot directory" msgstr "Webroot 文件夹" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:83 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:82 msgid "" "Webserver root directory. Set this to the webserver document root to run " "Acme in webroot mode. The web server must be accessible from the internet on " @@ -186,7 +206,7 @@ msgid "" msgstr "" "Webserver 根目录。设置为 Web 服务器文档根目录,在 webroot 模式下运行 Acme。Web 服务器必须允许从互联网上使用80端口访问。" -#: applications/luci-app-acme/luasrc/model/cbi/acme.lua:31 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:30 msgid "Where certs and other state files are kept." msgstr "存放证书和其他状态文件的位置。" -- cgit v1.2.3