Merge pull request #3050 from cmgustavo/translation/updates-fee-levels
Translation/updates fee levels
This commit is contained in:
commit
e3dd3787a3
5 changed files with 36 additions and 14 deletions
|
|
@ -10,12 +10,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
return (parseFloat(number.toPrecision(12)));
|
||||
};
|
||||
|
||||
|
||||
self.goHome = function() {
|
||||
go.walletHome();
|
||||
};
|
||||
|
||||
|
||||
self.menu = [{
|
||||
'title': gettext('Home'),
|
||||
'icon': 'icon-home',
|
||||
|
|
@ -66,6 +64,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
isoCode: 'ja',
|
||||
}];
|
||||
|
||||
self.feeOpts = feeService.feeOpts;
|
||||
|
||||
self.setOngoingProcess = function(processName, isOn) {
|
||||
$log.debug('onGoingProcess', processName, isOn);
|
||||
self[processName] = isOn;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
root.feeOpts = {
|
||||
priority: gettextCatalog.getString('Priority'),
|
||||
normal: gettextCatalog.getString('Normal'),
|
||||
economy: gettextCatalog.getString('Economy')
|
||||
};
|
||||
|
||||
root.getCurrentFeeValue = function(cb) {
|
||||
var fc = profileService.focusedClient;
|
||||
var config = configService.getSync().wallet.settings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue