luci-app-mosdns: updated Simplified Chinese translation

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-08-25 22:23:57 +08:00
parent fdf5ff519a
commit 9c42ea4036
2 changed files with 11 additions and 8 deletions

View File

@ -43,7 +43,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/whitelist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/whitelist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('White Lists') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -70,7 +70,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/blocklist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/blocklist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Block Lists') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -97,7 +97,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/greylist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/greylist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Grey Lists') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -124,7 +124,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/ddnslist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/ddnslist.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('DDNS Lists') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -151,7 +151,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/hosts.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/hosts.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Hosts') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -178,7 +178,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/redirect.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/redirect.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Redirect') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -205,7 +205,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/local-ptr.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/local-ptr.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Block PTR') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
@ -232,7 +232,7 @@ return view.extend({
} }
return fs.write('/etc/mosdns/rule/streaming.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n') return fs.write('/etc/mosdns/rule/streaming.txt', formvalue.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) { .then(function (i) {
ui.addNotification(null, E('p', _('Rules have been saved.')), 'info'); ui.addNotification(null, E('p', _('Streaming Media') + '&#160;' + _('Rules have been saved.')), 'info');
}) })
.catch(function (e) { .catch(function (e) {
ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));

View File

@ -371,6 +371,9 @@ msgstr "规则列表"
msgid "Rule Settings" msgid "Rule Settings"
msgstr "自定义规则列表" msgstr "自定义规则列表"
msgid "Rules have been saved."
msgstr "规则已保存。"
msgid "Unable to save contents: %s" msgid "Unable to save contents: %s"
msgstr "无法保存内容:%s" msgstr "无法保存内容:%s"