Update translations for controllers and services
This commit is contained in:
parent
5437c9bf9e
commit
cbf3d7cceb
22 changed files with 564 additions and 195 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('createController',
|
||||
function($scope, $rootScope, $location, $timeout, $log, lodash, go, profileService, configService, isMobile, isCordova) {
|
||||
function($scope, $rootScope, $location, $timeout, $log, lodash, go, profileService, configService, isMobile, isCordova, gettext) {
|
||||
|
||||
var self = this;
|
||||
var defaults = configService.getDefaults();
|
||||
|
|
@ -43,7 +43,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
|
||||
this.create = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
this.error = 'Please enter the required fields';
|
||||
this.error = gettext('Please enter the required fields');
|
||||
return;
|
||||
}
|
||||
var opts = {
|
||||
|
|
@ -61,7 +61,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
self.loading = false;
|
||||
if (err) {
|
||||
$log.debug(err);
|
||||
self.error = 'Could not create wallet: ' + err;
|
||||
self.error = gettext('Could not create wallet: ') + err;
|
||||
}
|
||||
else {
|
||||
go.walletHome();
|
||||
|
|
@ -77,7 +77,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
this.hideWalletName = true;
|
||||
}
|
||||
else {
|
||||
this.hideWalletName = false;
|
||||
this.hideWalletName = false;
|
||||
}
|
||||
$timeout(function() {
|
||||
$rootScope.$digest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue