added translation attribute to controllers files.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-09-16 17:30:30 -03:00
commit 4a91729121
8 changed files with 327 additions and 37 deletions

View file

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