diff --git a/src/cutecoin/core/money/quantitative.py b/src/cutecoin/core/money/quantitative.py index c299725903ee3ac5ce0974841c6c353cd0e9a5ae..29d4a58bdf9bbb766b24d13678bff44ecca549f2 100644 --- a/src/cutecoin/core/money/quantitative.py +++ b/src/cutecoin/core/money/quantitative.py @@ -3,7 +3,7 @@ import asyncio class Quantitative(): _NAME_STR_ = QT_TRANSLATE_NOOP('Quantitative', 'Units') - _REF_STR_ = QT_TRANSLATE_NOOP('Quantitative', "{0} {1}") + _REF_STR_ = QT_TRANSLATE_NOOP('Quantitative', "{0} {1}{2}") _UNITS_STR_ = QT_TRANSLATE_NOOP('Quantitative', "{0}") def __init__(self, amount, community, app): diff --git a/src/cutecoin/gui/community_tile.py b/src/cutecoin/gui/community_tile.py index 228fd38f3176f603a82d67159926e3668119f9de..f6c3df18f7769a908f2b29eb1687822975c7cb12 100644 --- a/src/cutecoin/gui/community_tile.py +++ b/src/cutecoin/gui/community_tile.py @@ -34,10 +34,12 @@ class CommunityTile(QFrame): members_pubkeys = yield from self.community.members_pubkeys() amount = yield from self.app.current_account.amount(self.community) localized_amount = yield from self.app.current_account.current_ref(amount, - self.community, self.app).localized(units=True) + self.community, self.app).localized(units=True, + international_system=self.app.preferences['international_system_of_units']) if current_block['monetaryMass']: localized_monetary_mass = yield from self.app.current_account.current_ref(current_block['monetaryMass'], - self.community, self.app).localized(units=True) + self.community, self.app).localized(units=True, + international_system=self.app.preferences['international_system_of_units']) else: localized_monetary_mass = "" status = self.tr("Member") if self.app.current_account.pubkey in members_pubkeys \ diff --git a/src/cutecoin/gui/transactions_tab.py b/src/cutecoin/gui/transactions_tab.py index e64532561771a8401cf7703d45275388634c53ec..e474e944e86b011044231b705a62c8d307086fee 100644 --- a/src/cutecoin/gui/transactions_tab.py +++ b/src/cutecoin/gui/transactions_tab.py @@ -119,7 +119,8 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget): def refresh_balance(self): amount = yield from self.app.current_account.amount(self.community) localized_amount = yield from self.app.current_account.current_ref(amount, self.community, - self.app).localized(units=True) + self.app).localized(units=True, + international_system=self.app.preferences['international_system_of_units']) # set infos in label self.label_balance.setText(