Skip to content
Snippets Groups Projects
Commit 061399cf authored by inso's avatar inso
Browse files

Merge branch 'dev' of https://github.com/ucoin-io/sakia into dev

parents d9651a07 b4ad6703
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class QuantitativeZSum(BaseReferential): ...@@ -47,7 +47,7 @@ class QuantitativeZSum(BaseReferential):
@property @property
def diff_units(self): def diff_units(self):
return self.units return QCoreApplication.translate("Quantitative", Quantitative._UNITS_STR_).format(self.community.short_currency)
async def value(self): async def value(self):
""" """
......
...@@ -46,7 +46,7 @@ class RelativeZSum(BaseReferential): ...@@ -46,7 +46,7 @@ class RelativeZSum(BaseReferential):
@property @property
def diff_units(self): def diff_units(self):
return Relative.units return QCoreApplication.translate("Relative", Relative._UNITS_STR_).format(self.community.short_currency)
async def value(self): async def value(self):
""" """
...@@ -104,7 +104,7 @@ class RelativeZSum(BaseReferential): ...@@ -104,7 +104,7 @@ class RelativeZSum(BaseReferential):
localized_value = QLocale().toString(float(value), 'f', self.app.preferences['digits_after_comma']) localized_value = QLocale().toString(float(value), 'f', self.app.preferences['digits_after_comma'])
if units or international_system: if units or international_system:
return QCoreApplication.translate("RelativeZSum", RelativeZSum._REF_STR_)\ return QCoreApplication.translate("Relative", Relative._REF_STR_)\
.format(localized_value, prefix, self.community.short_currency if units else "") .format(localized_value, prefix, self.community.short_currency if units else "")
else: else:
return localized_value return localized_value
...@@ -72,7 +72,7 @@ class CommunityTile(QFrame): ...@@ -72,7 +72,7 @@ class CommunityTile(QFrame):
international_system=self.app.preferences['international_system_of_units']) international_system=self.app.preferences['international_system_of_units'])
if current_block['monetaryMass']: if current_block['monetaryMass']:
localized_monetary_mass = await self.app.current_account.current_ref(current_block['monetaryMass'], localized_monetary_mass = await self.app.current_account.current_ref(current_block['monetaryMass'],
self.community, self.app).localized(units=True, self.community, self.app).diff_localized(units=True,
international_system=self.app.preferences['international_system_of_units']) international_system=self.app.preferences['international_system_of_units'])
else: else:
localized_monetary_mass = "" localized_monetary_mass = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment