Update translations for controllers and services

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-29 19:19:10 -03:00
commit cbf3d7cceb
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
22 changed files with 564 additions and 195 deletions

View file

@ -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;
}