Translate default wallet name
This commit is contained in:
parent
68a9184230
commit
eedcc018b5
4 changed files with 9 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ angular.module('copayApp.controllers').controller('preferencesLanguageController
|
|||
|
||||
this.availableLanguages = uxLanguage.getLanguages();
|
||||
|
||||
console.log('[preferencesLanguage.js.7]', this.availableLanguages); //TODO
|
||||
this.save = function(newLang) {
|
||||
|
||||
var opts = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('profileService', function profileServiceFactory($rootScope, $location, $timeout, $filter, $log, lodash, storageService, bwcService, configService, notificationService, isChromeApp, isCordova, gettext, nodeWebkit, bwsError, uxLanguage, ledger, bitcore) {
|
||||
.factory('profileService', function profileServiceFactory($rootScope, $location, $timeout, $filter, $log, lodash, storageService, bwcService, configService, notificationService, isChromeApp, isCordova, gettext, gettextCatalog, nodeWebkit, bwsError, uxLanguage, ledger, bitcore) {
|
||||
|
||||
var root = {};
|
||||
|
||||
|
|
@ -218,7 +218,9 @@ angular.module('copayApp.services')
|
|||
root._seedWallet({}, function(err, walletClient) {
|
||||
if (err) return cb(err);
|
||||
|
||||
walletClient.createWallet('Personal Wallet', 'me', 1, 1, {
|
||||
var walletName = gettextCatalog.getString('Personal Wallet');
|
||||
var me = gettextCatalog.getString('me');
|
||||
walletClient.createWallet(walletName, me, 1, 1, {
|
||||
network: 'livenet'
|
||||
}, function(err) {
|
||||
if (err) return bwsError.cb(err, gettext('Error creating wallet'), cb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue