Change Seed to Recovery Phrase, and more. (#4201)
* Seed -> Recovery Phrase ; Passphrase -> Password ; Password -> Spending Password * More Spending Password
This commit is contained in:
parent
2cda8520e5
commit
aee30ec151
16 changed files with 68 additions and 68 deletions
|
|
@ -44,10 +44,10 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
|
||||
self.seedOptions = [{
|
||||
id: 'new',
|
||||
label: gettext('New Random Seed'),
|
||||
label: gettext('New Random Recovery Phrase'),
|
||||
}, {
|
||||
id: 'set',
|
||||
label: gettext('Specify Seed...'),
|
||||
label: gettext('Specify Recovery Phrase...'),
|
||||
}];
|
||||
$scope.seedSource = self.seedOptions[0];
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
}
|
||||
|
||||
if (setSeed && !opts.mnemonic && !opts.extendedPrivateKey) {
|
||||
this.error = gettext('Please enter the wallet seed');
|
||||
this.error = gettext('Please enter the wallet recovery phrase');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
try {
|
||||
str2 = sjcl.decrypt(self.password, str);
|
||||
} catch (e) {
|
||||
err = gettext('Could not decrypt file, check your password');
|
||||
err = gettext('Could not decrypt file, check your spending password');
|
||||
$log.warn(e);
|
||||
};
|
||||
|
||||
|
|
@ -190,14 +190,14 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
this.error = null;
|
||||
|
||||
if (!words) {
|
||||
this.error = gettext('Please enter the seed words');
|
||||
this.error = gettext('Please enter the recovery phrase');
|
||||
} else if (words.indexOf('xprv') == 0 || words.indexOf('tprv') == 0) {
|
||||
return _importExtendedPrivateKey(words, opts);
|
||||
} else {
|
||||
var wordList = words.split(/[\u3000\s]+/);
|
||||
|
||||
if ((wordList.length % 3) != 0)
|
||||
this.error = gettext('Wrong number of seed words:') + wordList.length;
|
||||
this.error = gettext('Wrong number of recovery words:') + wordList.length;
|
||||
}
|
||||
|
||||
if (this.error) {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
var updateSeedSourceSelect = function() {
|
||||
self.seedOptions = [{
|
||||
id: 'new',
|
||||
label: gettext('New Random Seed'),
|
||||
label: gettext('New Random Recovery Phrase'),
|
||||
}, {
|
||||
id: 'set',
|
||||
label: gettext('Specify Seed...'),
|
||||
label: gettext('Specify Recovery Phrase...'),
|
||||
}];
|
||||
$scope.seedSource = self.seedOptions[0];
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
}
|
||||
|
||||
if (setSeed && !opts.mnemonic && !opts.extendedPrivateKey) {
|
||||
this.error = gettext('Please enter the wallet seed');
|
||||
this.error = gettext('Please enter the wallet recovery phrase');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ angular.module('copayApp.controllers').controller('passwordController',
|
|||
document.getElementById("passwordInput").focus();
|
||||
|
||||
this.close = function(cb) {
|
||||
return cb('No password given');
|
||||
return cb('No spending password given');
|
||||
};
|
||||
|
||||
this.set = function(isSetup, cb) {
|
||||
|
|
@ -30,7 +30,7 @@ angular.module('copayApp.controllers').controller('passwordController',
|
|||
}
|
||||
if (isSetup && pass1 != $scope.password) {
|
||||
self.loading = false;
|
||||
self.error = gettext('Passwords do not match');
|
||||
self.error = gettext('Spending Passwords do not match');
|
||||
self.isVerification = false;
|
||||
$scope.password = null;
|
||||
pass1 = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue