Skip to content

Commit

Permalink
chore(po): avoid duplicate translation
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 committed Feb 27, 2024
1 parent 74e0840 commit ee8ee1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion htdocs/luci-static/resources/view/homeproxy/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ return view.extend({
var ipv6_support = this.map.lookupOption('ipv6_support', section_id)[0].formvalue(section_id);

if (dns_servers.length > 2)
return _('You can only have 2 servers set at maximum.');
return _('You can only have two servers set at maximum.');

for (var i of dns_servers)
if (!stubValidator.apply((ipv6_support === '1') ? 'ipaddr' : 'ip4addr', i))
Expand Down
5 changes: 1 addition & 4 deletions po/templates/homeproxy.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2316,15 +2316,12 @@ msgstr ""
msgid "Xudp (Xray-core)"
msgstr ""

#: htdocs/luci-static/resources/view/homeproxy/client.js:201
msgid "You can only have 2 servers set at maximum."
msgstr ""

#: htdocs/luci-static/resources/view/homeproxy/client.js:159
msgid "You can only have one server set. It MUST support TCP query."
msgstr ""

#: htdocs/luci-static/resources/view/homeproxy/client.js:186
#: htdocs/luci-static/resources/view/homeproxy/client.js:201
msgid "You can only have two servers set at maximum."
msgstr ""

Expand Down
7 changes: 2 additions & 5 deletions po/zh_Hans/homeproxy.po
Original file line number Diff line number Diff line change
Expand Up @@ -2375,17 +2375,14 @@ msgstr "信风公共 DNS(114.114.114.114)"
msgid "Xudp (Xray-core)"
msgstr "Xudp (Xray-core)"

#: htdocs/luci-static/resources/view/homeproxy/client.js:201
msgid "You can only have 2 servers set at maximum."
msgstr "您最多只能设置两个服务器。"

#: htdocs/luci-static/resources/view/homeproxy/client.js:159
msgid "You can only have one server set. It MUST support TCP query."
msgstr "您只能设置一个服务器。它必须支持 TCP 查询。"

#: htdocs/luci-static/resources/view/homeproxy/client.js:186
#: htdocs/luci-static/resources/view/homeproxy/client.js:201
msgid "You can only have two servers set at maximum."
msgstr ""
msgstr "您最多只能设置两个服务器。"

#: htdocs/luci-static/resources/homeproxy.js:228
msgid "Your %s was successfully uploaded. Size: %sB."
Expand Down

0 comments on commit ee8ee1a

Please sign in to comment.