diff --git a/src/js/yunohost/controllers/services.js b/src/js/yunohost/controllers/services.js index e6583aaf..537bd478 100644 --- a/src/js/yunohost/controllers/services.js +++ b/src/js/yunohost/controllers/services.js @@ -59,7 +59,7 @@ app.get('#/services/:service/:action', function (c) { c.confirm( "Service", - y18n.t('confirm_service_action', [y18n.t(c.params['action']), c.params['service']]), + y18n.t('confirm_service_' + c.params['action'].toLowerCase(), [c.params['service']]), function(){ var method = null, endurl = c.params['service']; diff --git a/src/locales/en.json b/src/locales/en.json index 1235872e..8a59d99c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -68,6 +68,10 @@ "confirm_postinstall": "You are about to launch the post-installation process on the domain %s. It may take a few minutes, *do not interrupt the operation*.", "confirm_restore": "Are you sure you want to restore %s ?", "confirm_service_action": "Are you sure you want to %s %s ?", + "confirm_service_start": "Are you sure you want to start %s ?", + "confirm_service_stop": "Are you sure you want to stop %s ?", + "confirm_service_enable": "Are you sure you want to enable %s ?", + "confirm_service_disable": "Are you sure you want to disable %s ?", "confirm_uninstall": "Are you sure you want to uninstall %s ?", "confirm_update_type": "Are you sure you want update every %s ?", "confirm_update_apps": "Are you sure you want update every applications ?",