mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Add available strings in comment.
This commit is contained in:
parent
95f853abbd
commit
1ff9a9e239
3 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
app.get('#/tools/firewall/upnp/:action', function (c) {
|
||||
c.confirm(
|
||||
y18n.t('firewall'),
|
||||
// confirm_upnp_enable and confirm_upnp_disable
|
||||
y18n.t('confirm_upnp_' + c.params['action'].toLowerCase()),
|
||||
function(){
|
||||
params = {'action' : c.params['action']};
|
||||
|
@ -129,6 +130,7 @@
|
|||
app.get('#/tools/firewall/port/:port/:protocol/:connection/:action', function (c) {
|
||||
c.confirm(
|
||||
y18n.t('firewall'),
|
||||
// confirm_firewall_open and confirm_firewall_close
|
||||
y18n.t( 'confirm_firewall_' + c.params['action'].toLowerCase(), [ c.params['port'], y18n.t(c.params['protocol']), y18n.t(c.params['connection'])]),
|
||||
function(){
|
||||
c.togglePort(
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
app.get('#/services/:service/:action', function (c) {
|
||||
c.confirm(
|
||||
"Service",
|
||||
// confirm_service_start, confirm_service_stop, confirm_service_enable and confirm_service_disable
|
||||
y18n.t('confirm_service_' + c.params['action'].toLowerCase(), [c.params['service']]),
|
||||
function(){
|
||||
var method = null, endurl = c.params['service'];
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
else {
|
||||
c.confirm(
|
||||
y18n.t('tools'),
|
||||
// confirm_update_apps and confirm_update_packages
|
||||
y18n.t('confirm_update_' + c.params['type'].toLowerCase()),
|
||||
function(){
|
||||
endurl = '';
|
||||
|
|
Loading…
Add table
Reference in a new issue