From 1ff9a9e239c920151828bb9d447957a39129b574 Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 21 Mar 2017 17:06:45 +0100 Subject: [PATCH] [enh] Add available strings in comment. --- src/js/yunohost/controllers/firewall.js | 2 ++ src/js/yunohost/controllers/services.js | 1 + src/js/yunohost/controllers/tools.js | 1 + 3 files changed, 4 insertions(+) diff --git a/src/js/yunohost/controllers/firewall.js b/src/js/yunohost/controllers/firewall.js index dfb2300d..01b90159 100644 --- a/src/js/yunohost/controllers/firewall.js +++ b/src/js/yunohost/controllers/firewall.js @@ -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( diff --git a/src/js/yunohost/controllers/services.js b/src/js/yunohost/controllers/services.js index 537bd478..2a03c744 100644 --- a/src/js/yunohost/controllers/services.js +++ b/src/js/yunohost/controllers/services.js @@ -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']; diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index 9b4219cb..81d6f6d4 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -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 = '';