From 4adc6a4285a763cac0f4a35c95f6ba42857f3d86 Mon Sep 17 00:00:00 2001 From: He Ping Date: Tue, 23 Jan 2024 22:58:37 +0800 Subject: [PATCH] luci-app-upup: Improve translation Signed-off-by: He Ping (cherry picked from commit 2bdf7c83e3c71f9ad4dfaec259c7fcce87e7d807) --- .../htdocs/luci-static/resources/view/upnp/upnp.js | 4 ++-- applications/luci-app-upnp/po/templates/upnp.pot | 8 ++++++++ applications/luci-app-upnp/po/zh_Hans/upnp.po | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) 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 f3e0adf3ef..73fab9dbad 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 模式" -- 2.30.2