Update translations for controllers and services
This commit is contained in:
parent
5437c9bf9e
commit
cbf3d7cceb
22 changed files with 564 additions and 195 deletions
|
|
@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
try {
|
||||
str2 = sjcl.decrypt(self.password, str);
|
||||
} catch (e) {
|
||||
self.error = 'Could not decrypt file, check your password';
|
||||
self.error = gettext('Could not decrypt file, check your password');
|
||||
$log.warn(e);
|
||||
return;
|
||||
};
|
||||
|
|
@ -40,7 +40,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
else {
|
||||
$rootScope.$emit('Local/WalletImported', walletId);
|
||||
go.walletHome();
|
||||
notification.success('Success', 'Your wallet has been imported correctly');
|
||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
||||
}
|
||||
});
|
||||
}, 100);
|
||||
|
|
@ -57,7 +57,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
|
||||
this.import = function(form) {
|
||||
if (form.$invalid) {
|
||||
this.error = 'There is an error in the form';
|
||||
this.error = gettext('There is an error in the form');
|
||||
$scope.$apply();
|
||||
return;
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
var password = form.password.$modelValue;
|
||||
|
||||
if (!backupFile && !backupText) {
|
||||
this.error = 'Please, select your backup file';
|
||||
this.error = gettext('Please, select your backup file');
|
||||
$scope.$apply();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue