Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
update labels BCH -> B??
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Lundeberg committed Dec 21, 2018
1 parent fded58b commit 0e29547
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gui/qt/amountedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def _base_unit(self):
p = self.decimal_point()
assert p in [2, 5, 8]
if p == 8:
return 'BCH'
return 'B??'
if p == 5:
return 'mBCH'
return 'mB??'
if p == 2:
return 'cash'
raise Exception('Unknown base unit')
Expand Down
14 changes: 7 additions & 7 deletions gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,9 @@ def base_unit(self):
if self.decimal_point == 2:
return 'cash'
if self.decimal_point == 5:
return 'mBCH'
return 'mB??'
if self.decimal_point == 8:
return 'BCH'
return 'B??'
raise Exception('Unknown base unit')

def connect_fields(self, window, btc_e, fiat_e, fee_e):
Expand Down Expand Up @@ -1095,7 +1095,7 @@ def create_send_tab(self):
grid.addWidget(self.message_e, 2, 1, 1, -1)

msg_opreturn = ( _('OP_RETURN data (optional).') + '\n\n'
+ _('Posts a PERMANENT note to the BCH blockchain as part of this transaction.')
+ _('Posts a PERMANENT note to the B?? blockchain as part of this transaction.')
+ '\n\n' + _('If you specify OP_RETURN text, you may leave the \'Pay to\' field blank.') )
self.opreturn_label = HelpLabel(_('OP_RETURN'), msg_opreturn)
grid.addWidget(self.opreturn_label, 3, 0)
Expand Down Expand Up @@ -2871,9 +2871,9 @@ def on_alias_edit():
SSL_id_e.setReadOnly(True)
id_widgets.append((SSL_id_label, SSL_id_e))

units = ['BCH', 'mBCH', 'cash']
units = ['B??', 'mB??', 'cash']
msg = _('Base unit of your wallet.')\
+ '\n1 BCH = 1,000 mBCH = 1,000,000 cash.\n' \
+ '\n1 B?? = 1,000 mB?? = 1,000,000 cash.\n' \
+ _(' These settings affects the fields in the Send tab')+' '
unit_label = HelpLabel(_('Base unit') + ':', msg)
unit_combo = QComboBox()
Expand All @@ -2885,9 +2885,9 @@ def on_unit(x, nz):
return
edits = self.amount_e, self.fee_e, self.receive_amount_e
amounts = [edit.get_amount() for edit in edits]
if unit_result == 'BCH':
if unit_result == 'B??':
self.decimal_point = 8
elif unit_result == 'mBCH':
elif unit_result == 'mB??':
self.decimal_point = 5
elif unit_result == 'cash':
self.decimal_point = 2
Expand Down
2 changes: 1 addition & 1 deletion lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def inv_dict(d):
return {v: k for k, v in d.items()}


base_units = {'BCH':8, 'mBCH':5, 'cash':2}
base_units = {'B??':8, 'mB??':5, 'cash':2}
fee_levels = [_('Within 25 blocks'), _('Within 10 blocks'), _('Within 5 blocks'), _('Within 2 blocks'), _('In the next block')]

def normalize_version(v):
Expand Down

0 comments on commit 0e29547

Please sign in to comment.