From c00ab387008bea8e187400a92d3ad3c35d9e09e0 Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 21 Mar 2017 16:27:31 +0100 Subject: [PATCH] [fix] Split confirm_update sentence for better translations. --- src/js/yunohost/controllers/tools.js | 2 +- src/locales/en.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index b6bf64c3..9b4219cb 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -74,7 +74,7 @@ else { c.confirm( y18n.t('tools'), - y18n.t('confirm_update_type', [y18n.t('system_'+c.params['type']).toLowerCase()]), + y18n.t('confirm_update_' + c.params['type'].toLowerCase()), function(){ endurl = ''; if (c.params['type'] == 'packages') {endurl = 'ignore_apps';} diff --git a/src/locales/en.json b/src/locales/en.json index 8eb3626e..1235872e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -70,6 +70,8 @@ "confirm_service_action": "Are you sure you want to %s %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 ?", + "confirm_update_packages": "Are you sure you want update every packages ?", "confirm_upnp_action": "Are you sure you want to %s UPnP ?", "connection": "Connection", "copy": "Copy",