Skip to content

Commit

Permalink
Namecoin: Rebrand Qt Main Window
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Nov 23, 2018
1 parent 357ddb7 commit 7f5f80f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions electrum_nmc/gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def backup_wallet(self):
shutil.copy2(path, new_path)
self.show_message(_("A copy of your wallet file was created in")+" '%s'" % str(new_path), title=_("Wallet backup created"))
except BaseException as reason:
self.show_critical(_("Electrum was unable to copy your wallet file to the specified location.") + "\n" + str(reason), title=_("Unable to create backup"))
self.show_critical(_("Electrum-NMC was unable to copy your wallet file to the specified location.") + "\n" + str(reason), title=_("Unable to create backup"))

def update_recently_visited(self, filename):
recent = self.config.get('recently_open', [])
Expand Down Expand Up @@ -567,7 +567,7 @@ def add_toggle_action(view_menu, tab):
tools_menu = menubar.addMenu(_("&Tools"))

# Settings / Preferences are all reserved keywords in macOS using this as work around
tools_menu.addAction(_("Electrum preferences") if sys.platform == 'darwin' else _("Preferences"), self.settings_dialog)
tools_menu.addAction(_("Electrum-NMC preferences") if sys.platform == 'darwin' else _("Preferences"), self.settings_dialog)
tools_menu.addAction(_("&Network"), lambda: self.gui_object.show_network_dialog(self))
tools_menu.addAction(_("&Plugins"), self.plugins_dialog)
tools_menu.addSeparator()
Expand Down Expand Up @@ -876,7 +876,7 @@ def create_receive_tab(self):
_('Expiration date of your request.'),
_('This information is seen by the recipient if you send them a signed payment request.'),
_('Expired requests have to be deleted manually from your list, in order to free the corresponding Namecoin addresses.'),
_('The namecoin address never expires and will always be part of this electrum wallet.'),
_('The namecoin address never expires and will always be part of this electrum-nmc wallet.'),
])
grid.addWidget(HelpLabel(_('Request expires'), msg), 3, 0)
grid.addWidget(self.expires_combo, 3, 1)
Expand Down Expand Up @@ -1211,8 +1211,8 @@ def setAmount(self, byte_size):

def feerounding_onclick():
text = (self.feerounding_text + '\n\n' +
_('To somewhat protect your privacy, Electrum tries to create change with similar precision to other outputs.') + ' ' +
_('At most 100 satoshis might be lost due to this rounding.') + ' ' +
_('To somewhat protect your privacy, Electrum-NMC tries to create change with similar precision to other outputs.') + ' ' +
_('At most 100 swartz might be lost due to this rounding.') + ' ' +
_("You can disable this setting in '{}'.").format(_('Preferences')) + '\n' +
_('Also, dust is not kept as change, but added to the fee.') + '\n' +
_('Also, when batching RBF transactions, BIP 125 imposes a lower bound on the fee.'))
Expand Down Expand Up @@ -1978,7 +1978,7 @@ def update_console(self):
'plugins': self.gui_object.plugins,
'window': self,
'config': self.config,
'electrum': electrum,
'electrum': electrum_nmc,
'daemon': self.gui_object.daemon,
'util': util,
'bitcoin': bitcoin,
Expand Down Expand Up @@ -2225,7 +2225,7 @@ def show_private_key(self, address, password):
"private key, and verifying with the corresponding public key. The "
"address you have entered does not have a unique public key, so these "
"operations cannot be performed.") + '\n\n' + \
_('The operation is undefined. Not just in Electrum, but in general.')
_('The operation is undefined. Not just in Electrum-NMC, but in general.')

@protected
def do_sign(self, address, message, signature, password):
Expand Down Expand Up @@ -2390,7 +2390,7 @@ def tx_from_text(self, txt):
tx = tx_from_str(txt)
return Transaction(tx)
except BaseException as e:
self.show_critical(_("Electrum was unable to parse your transaction") + ":\n" + str(e))
self.show_critical(_("Electrum-NMC was unable to parse your transaction") + ":\n" + str(e))
return

def read_tx_from_qrcode(self):
Expand Down Expand Up @@ -2425,7 +2425,7 @@ def read_tx_from_file(self):
with open(fileName, "r") as f:
file_content = f.read()
except (ValueError, IOError, os.error) as reason:
self.show_critical(_("Electrum was unable to open your transaction file") + "\n" + str(reason), title=_("Unable to read file or no transaction found"))
self.show_critical(_("Electrum-NMC was unable to open your transaction file") + "\n" + str(reason), title=_("Unable to read file or no transaction found"))
return
return self.tx_from_text(file_content)

Expand Down Expand Up @@ -2537,7 +2537,7 @@ def on_dialog_closed(*args):
self.do_export_privkeys(filename, private_keys, csv_button.isChecked())
except (IOError, os.error) as reason:
txt = "\n".join([
_("Electrum was unable to produce a private key-export."),
_("Electrum-NMC was unable to produce a private key-export."),
str(reason)
])
self.show_critical(txt, title=_("Unable to create csv"))
Expand Down Expand Up @@ -3105,7 +3105,7 @@ def on_fiat_address(checked):

run_hook('close_settings_dialog')
if self.need_restart:
self.show_warning(_('Please restart Electrum to activate the new GUI settings'), title=_('Success'))
self.show_warning(_('Please restart Electrum-NMC to activate the new GUI settings'), title=_('Success'))


def closeEvent(self, event):
Expand All @@ -3132,7 +3132,7 @@ def clean_up(self):
self.gui_object.close_window(self)

def plugins_dialog(self):
self.pluginsdialog = d = WindowModalDialog(self, _('Electrum Plugins'))
self.pluginsdialog = d = WindowModalDialog(self, _('Electrum-NMC Plugins'))

plugins = self.gui_object.plugins

Expand Down

0 comments on commit 7f5f80f

Please sign in to comment.