From: He Ping Date: Tue, 23 Jan 2024 14:58:37 +0000 (+0800) Subject: luci-app-upup: Improve translation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2bdf7c83e3c71f9ad4dfaec259c7fcce87e7d807;p=project%2Fluci.git luci-app-upup: Improve translation Signed-off-by: He Ping --- diff --git a/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js b/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js index e0a326d4fc..86415f8a91 100644 --- a/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js +++ b/applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js @@ -200,8 +200,8 @@ return view.extend({ o.placeholder = '0-65535' o = s.option(form.ListValue, 'action', _('Action')) - o.value('allow') - o.value('deny') + o.value('allow', _('Allow')); + o.value('deny', _('Deny')); return m.render().then(L.bind(function(m, nodes) { poll.add(L.bind(function() { diff --git a/applications/luci-app-upnp/po/templates/upnp.pot b/applications/luci-app-upnp/po/templates/upnp.pot index 1728a18d1a..b72809678b 100644 --- a/applications/luci-app-upnp/po/templates/upnp.pot +++ b/applications/luci-app-upnp/po/templates/upnp.pot @@ -36,6 +36,10 @@ msgstr "" msgid "Announced serial number" msgstr "" +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:203 +msgid "Allow" +msgstr "" + #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:160 msgid "Clean rules interval" msgstr "" @@ -77,6 +81,10 @@ msgstr "" msgid "Downlink" msgstr "" +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:204 +msgid "Deny" +msgstr "" + #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:130 msgid "Enable IGDv1 mode" msgstr "" diff --git a/applications/luci-app-upnp/po/zh_Hans/upnp.po b/applications/luci-app-upnp/po/zh_Hans/upnp.po index 6ca4d203cc..90b4a65b8c 100644 --- a/applications/luci-app-upnp/po/zh_Hans/upnp.po +++ b/applications/luci-app-upnp/po/zh_Hans/upnp.po @@ -52,6 +52,10 @@ msgstr "通告的设备型号" msgid "Announced serial number" msgstr "通告的设备序列号" +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:203 +msgid "Allow" +msgstr "允许" + #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:160 msgid "Clean rules interval" msgstr "定时清除规则" @@ -93,6 +97,10 @@ msgstr "设备 UUID" msgid "Downlink" msgstr "下行速率" +#: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:204 +msgid "Deny" +msgstr "拒绝" + #: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js:130 msgid "Enable IGDv1 mode" msgstr "启用 IGDv1 模式"