added translation attribute to controllers files.
This commit is contained in:
parent
205cd39599
commit
4a91729121
8 changed files with 327 additions and 37 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('VersionController',
|
||||
function($scope, $rootScope, $http, notification) {
|
||||
function($scope, $rootScope, $http, $filter, notification) {
|
||||
|
||||
var w = $rootScope.wallet;
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ angular.module('copayApp.controllers').controller('VersionController',
|
|||
};
|
||||
var latestVersion = data[0].name.replace('v', '').split('.').map(toInt);
|
||||
var currentVersion = copay.version.split('.').map(toInt);
|
||||
var title = 'Copay ' + data[0].name + ' available.';
|
||||
var title = 'Copay ' + data[0].name + $filter('translate')(' available.');
|
||||
var content;
|
||||
if (currentVersion[0] < latestVersion[0]) {
|
||||
content = 'It\'s important that you update your wallet at https://copay.io';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue