Translate default wallet name

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-17 10:53:27 -03:00
commit eedcc018b5
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 9 additions and 9 deletions

View file

@ -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 = {

View file

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