From aa3870a83195c9cce1a88139bc8a52cabb1b2693 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 29 Jul 2015 13:07:35 -0300 Subject: [PATCH] Updates fee levels strings for translate --- public/views/preferences.html | 2 +- public/views/preferencesFee.html | 2 +- src/js/services/feeService.js | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/public/views/preferences.html b/public/views/preferences.html index c8753e221..6f3c7db24 100644 --- a/public/views/preferences.html +++ b/public/views/preferences.html @@ -81,7 +81,7 @@ Bitcoin Network Fee Policy - {{index.currentFeeLevel}} + {{index.currentFeeLevel|translate}}
  • diff --git a/public/views/preferencesFee.html b/public/views/preferencesFee.html index b0c740745..a1c2c4c84 100644 --- a/public/views/preferencesFee.html +++ b/public/views/preferencesFee.html @@ -7,7 +7,7 @@ diff --git a/src/js/services/feeService.js b/src/js/services/feeService.js index d37df45a7..c76c76223 100644 --- a/src/js/services/feeService.js +++ b/src/js/services/feeService.js @@ -1,8 +1,15 @@ 'use strict'; -angular.module('copayApp.services').factory('feeService', function($log, profileService, configService) { +angular.module('copayApp.services').factory('feeService', function($log, profileService, configService, gettextCatalog) { var root = {}; + // Constant fee options to translate + var feeOpts = [ + gettextCatalog.getString('priority'), + gettextCatalog.getString('normal'), + gettextCatalog.getString('economy') + ]; + root.getCurrentFeeValue = function(cb) { var fc = profileService.focusedClient; var config = configService.getSync().wallet.settings;