luci-app-mosdns: updated Simplified Chinese translation
Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
parent
fdf5ff519a
commit
9c42ea4036
@ -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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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') + ' ' + _('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)));
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user