Added strings to translate. Updates spanish

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-30 13:03:30 -03:00
commit ecee13d96f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
13 changed files with 206 additions and 71 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('importController',
function($scope, $rootScope, $location, $timeout, $log, profileService, notification, go, isMobile, isCordova, sjcl) {
function($scope, $rootScope, $location, $timeout, $log, profileService, notification, go, isMobile, isCordova, sjcl, gettext) {
var self = this;
@ -17,15 +17,20 @@ angular.module('copayApp.controllers').controller('importController',
});
var _import = function(str, opts) {
var str2;
var str2, err;
try {
str2 = sjcl.decrypt(self.password, str);
} catch (e) {
self.error = gettext('Could not decrypt file, check your password');
err = gettext('Could not decrypt file, check your password');
$log.warn(e);
return;
};
if (err) {
self.error = err;
$rootScope.$apply();
return;
}
self.loading = true;
$timeout(function() {