From 5008572d16b4166cd8e1f4f1306ffccd2f82f3a5 Mon Sep 17 00:00:00 2001 From: Mikael Mello Date: Mon, 19 Nov 2018 09:19:34 -0200 Subject: [PATCH] Apply i18n to some strings and fix an indentation error --- .../ngax/scripts/directives/notificationArea.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/directives/notificationArea.js b/Duplicati/Server/webroot/ngax/scripts/directives/notificationArea.js index 6967ae1bd..58135092f 100644 --- a/Duplicati/Server/webroot/ngax/scripts/directives/notificationArea.js +++ b/Duplicati/Server/webroot/ngax/scripts/directives/notificationArea.js @@ -5,7 +5,6 @@ backupApp.directive('notificationArea', function() { controller: function($scope, $location, $timeout, NotificationService, ServerStatus, AppService, AppUtils, DialogService) { $scope.Notifications = NotificationService.watch($scope); $scope.state = ServerStatus.watch($scope); - $scope.doDismiss = function(id) { AppService.delete('/notification/' + id).then( function() { }, // Don't care, the message will be removed @@ -39,11 +38,11 @@ backupApp.directive('notificationArea', function() { if (resp.status == 404) { if ((parseInt(backupid) + '') != backupid) - DialogService.dialog('Error', 'The backup was temporary and does not exist anymore, so the log data is lost'); + DialogService.dialog(gettextCatalog.getString('Error'), gettextCatalog.getString('The backup was temporary and does not exist anymore, so the log data is lost')); else - DialogService.dialog('Error', 'The backup is missing, has it been deleted?'); + DialogService.dialog(gettextCatalog.getString('Error'), gettextCatalog.getString('The backup is missing, has it been deleted?')); } else { - AppUtils.connectionError('Failed to find backup: ', resp); + AppUtils.connectionError(gettextCatalog.getString('Failed to find backup: '), resp); } } @@ -51,8 +50,8 @@ backupApp.directive('notificationArea', function() { }; $scope.doRepair = function(backupid) { - AppService.post('/backup/' + backupid + '/repair'); - $location.path('/'); + AppService.post('/backup/' + backupid + '/repair'); + $location.path('/'); }; $scope.doInstallUpdate = function(id) {