Update translations for controllers and services

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-29 19:19:10 -03:00
commit cbf3d7cceb
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
22 changed files with 564 additions and 195 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout) {
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, gettext) {
var root = {};
root.notify = function(txp, cb) {
@ -10,17 +10,17 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
var status = txp.status;
if (status == 'broadcasted') {
msg = 'Transaction broadcasted';
msg = gettext('Transaction broadcasted');
} else {
var action = lodash.find(txp.actions, {
copayerId: fc.credentials.copayerId
});
if (!action) {
msg = 'Transaction proposal created';
msg = gettext('Transaction proposal created');
} else if (action.type == 'accept') {
msg = 'Transaction proposal signed';
msg = gettext('Transaction proposal signed');
} else if (action.type == 'reject') {
msg = 'Transaction was rejected';
msg = gettext('Transaction was rejected');
}
}