From 41b8e6a4fba2c856e7c16f379f41478503357e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 8 Jan 2018 03:01:02 +0100 Subject: [PATCH] Replaced 'VM' with 'Qube' Renamed 'VM' to 'Qube' in the user interface for Qube Manager. --- qubesmanager/qube_manager.py | 80 ++++++++++++++++++------------------ ui/qubemanager.ui | 75 ++++++++++++++++++--------------- 2 files changed, 83 insertions(+), 72 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index fe73b84..cfa0127 100755 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -184,9 +184,9 @@ class VmShutdownMonitor(QtCore.QObject): and vm_start_time < self.shutdown_started: if self.timeout_reached(): reply = QtGui.QMessageBox.question( - None, self.tr("VM Shutdown"), + None, self.tr("Qube Shutdown"), self.tr( - "The VM '{0}' hasn't shutdown within the last " + "The Qube '{0}' hasn't shutdown within the last " "{1} seconds, do you want to kill it?
").format( vm.name, self.shutdown_time / 1000), self.tr("Kill it!"), @@ -602,20 +602,20 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if dependent_vms > 0: QtGui.QMessageBox.warning( None, self.tr("Warning!"), - self.tr("This Template VM cannot be removed, " - "because there is at least one AppVM that is based " + self.tr("This Template Qube cannot be removed, " + "because there is at least one Qube that is based " "on it.
If you want to remove this " - "Template VM and all the AppVMs based on it, you " - "should first remove each individual AppVM that " + "Template Qube and all the Qubes based on it, you " + "should first remove each individual Qube that " "uses this template.")) return (requested_name, ok) = QtGui.QInputDialog.getText( - None, self.tr("VM Removal Confirmation"), - self.tr("Are you sure you want to remove the VM '{0}'?
" - "All data on this VM's private storage will be lost!" - "

Type the name of the VM ({1}) below to " - "confirm:").format(vm.name, vm.name)) + None, self.tr("Qube Removal Confirmation"), + self.tr("Are you sure you want to remove the Qube '{0}'" + "?
All data on this Qube's private storage will be " + "lost!

Type the name of the Qube ({1}) below " + "to confirm:").format(vm.name, vm.name)) if not ok: # user clicked cancel @@ -625,7 +625,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): # name did not match QtGui.QMessageBox.warning( None, - self.tr("VM removal confirmation failed"), + self.tr("Qube removal confirmation failed"), self.tr( "Entered name did not match! Not removing " "{0}.").format(vm.name)) @@ -640,7 +640,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): thread.start() progress = QtGui.QProgressDialog( - self.tr("Removing VM: {0}...").format(vm.name), "", 0, 0) + self.tr( + "Removing Qube: {0}...").format(vm.name), "", 0, 0) progress.setCancelButton(None) progress.setModal(True) progress.show() @@ -654,7 +655,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if t_monitor.success: pass else: - QtGui.QMessageBox.warning(None, self.tr("Error removing VM!"), + QtGui.QMessageBox.warning(None, self.tr("Error removing Qube!"), self.tr("ERROR: {0}").format( t_monitor.error_msg)) @@ -680,8 +681,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): name_number += 1 (clone_name, ok) = QtGui.QInputDialog.getText( - self, self.tr('Qubes clone VM'), - self.tr('Enter name for VM {} clone:').format(vm.name), + self, self.tr('Qubes clone Qube'), + self.tr('Enter name for Qube {} clone:').format(vm.name), text=(name_format % name_number)) if not ok or clone_name == "": return @@ -694,7 +695,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): thread.start() progress = QtGui.QProgressDialog( - self.tr("Cloning VM {0} to {1}...").format( + self.tr("Cloning Qube {0} to {1}...").format( vm.name, clone_name), "", 0, 0) progress.setCancelButton(None) progress.setModal(True) @@ -709,7 +710,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if not t_monitor.success: QtGui.QMessageBox.warning( None, - self.tr("Error while cloning VM"), + self.tr("Error while cloning Qube"), self.tr("Exception while cloning:
{0}").format( t_monitor.error_msg)) @@ -735,8 +736,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): try: vm.unpause() except Exception as ex: - QtGui.QMessageBox.warning(None, self.tr("Error unpausing VM!"), - self.tr("ERROR: {0}").format(ex)) + QtGui.QMessageBox.warning( + None, self.tr("Error unpausing Qube!"), + self.tr("ERROR: {0}").format(ex)) return self.start_vm(vm) @@ -758,7 +760,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if not t_monitor.success: self.set_error( vm.qid, - self.tr("Error starting VM: %s") % t_monitor.error_msg) + self.tr("Error starting Qube: %s") % t_monitor.error_msg) self.update_table() @@ -789,7 +791,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): except Exception as ex: QtGui.QMessageBox.warning( None, - self.tr("Error pausing VM!"), + self.tr("Error pausing Qube!"), self.tr("ERROR: {0}").format(ex)) return @@ -800,10 +802,10 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): assert vm.is_running() reply = QtGui.QMessageBox.question( - None, self.tr("VM Shutdown Confirmation"), - self.tr("Are you sure you want to power down the VM" + None, self.tr("Qube Shutdown Confirmation"), + self.tr("Are you sure you want to power down the Qube" " '{0}'?
This will shutdown all the " - "running applications within this VM.").format( + "running applications within this Qube.").format( vm.name), QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel) self.qt_app.processEvents() @@ -820,7 +822,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): except Exception as ex: QtGui.QMessageBox.warning( None, - self.tr("Error shutting down VM!"), + self.tr("Error shutting down Qube!"), self.tr("ERROR: {0}").format(ex)) return @@ -838,10 +840,10 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): assert vm.is_running() reply = QtGui.QMessageBox.question( - None, self.tr("VM Restart Confirmation"), - self.tr("Are you sure you want to restart the VM '{0}'?
" - "This will shutdown all the running applications " - "within this VM.").format(vm.name), + None, self.tr("Qube Restart Confirmation"), + self.tr("Are you sure you want to restart the Qube '{0}'?" + "
This will shutdown all the running " + "applications within this Qube.").format(vm.name), QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel) self.qt_app.processEvents() @@ -858,10 +860,10 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): assert vm.is_running() or vm.is_paused() reply = QtGui.QMessageBox.question( - None, self.tr("VM Kill Confirmation"), - self.tr("Are you sure you want to kill the VM '{0}'?
" + None, self.tr("Qube Kill Confirmation"), + self.tr("Are you sure you want to kill the Qube '{0}'?
" "This will end (not shutdown!) all the " - "running applications within this VM.").format( + "running applications within this Qube.").format( vm.name), QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel) @@ -873,7 +875,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): vm.force_shutdown() except Exception as ex: QtGui.QMessageBox.critical( - None, self.tr("Error while killing VM!"), + None, self.tr("Error while killing Qube!"), self.tr( "An exception ocurred while killing {0}.
" "ERROR: {1}").format(vm.name, ex)) @@ -909,10 +911,10 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if not vm.is_running(): reply = QtGui.QMessageBox.question( - None, self.tr("VM Update Confirmation"), + None, self.tr("Qube Update Confirmation"), self.tr( - "{0}
The VM has to be running to be updated.
" - "Do you want to start it?
").format(vm.name), + "{0}
The Qube has to be running to be updated." + "
Do you want to start it?
").format(vm.name), QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel) if reply != QtGui.QMessageBox.Yes: return @@ -943,7 +945,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if not t_monitor.success: QtGui.QMessageBox.warning( None, - self.tr("Error VM update!"), + self.tr("Error on Qube update!"), self.tr("ERROR: {0}").format(t_monitor.error_msg)) self.update_table() @@ -1204,7 +1206,7 @@ def main(): qt_app = QtGui.QApplication(sys.argv) qt_app.setOrganizationName("The Qubes Project") qt_app.setOrganizationDomain("http://qubes-os.org") - qt_app.setApplicationName("Qubes VM Manager") + qt_app.setApplicationName("Qube Manager") qt_app.setWindowIcon(QtGui.QIcon.fromTheme("qubes-manager")) sys.excepthook = handle_exception diff --git a/ui/qubemanager.ui b/ui/qubemanager.ui index 7107bf3..150dafb 100644 --- a/ui/qubemanager.ui +++ b/ui/qubemanager.ui @@ -20,7 +20,7 @@ Qt::DefaultContextMenu - Qubes VM Manager + Qube Manager @@ -284,7 +284,7 @@ - V&M + &Qube @@ -380,10 +380,10 @@ :/createvm.png:/createvm.png - Create &New VM + Create &New Qube - Create a new VM + Create a new Qube @@ -395,10 +395,10 @@ :/removevm.png:/removevm.png - &Delete VM + &Delete Qube - Remove an existing VM (must be stopped first) + Remove an existing Qube (must be stopped first) @@ -410,10 +410,10 @@ :/resumevm.png:/resumevm.png - Start/Resume V&M + Start/Resu&me Qube - Start/Resume selected VM + Start/Resume selected Qube @@ -425,10 +425,10 @@ :/pausevm.png:/pausevm.png - &Pause VM + &Pause Qube - Pause selected VM + Pause selected Qube @@ -440,10 +440,10 @@ :/shutdownvm.png:/shutdownvm.png - &Shutdown VM + &Shutdown Qube - Shutdown selected VM + Shutdown selected Qube @@ -455,10 +455,10 @@ :/restartvm.png:/restartvm.png - Restar&t VM + Restar&t Qube - Restart selected VM + Restart selected Qube @@ -473,7 +473,7 @@ Add/remove app s&hortcuts - Add/remove app shortcuts for this VM + Add/remove app shortcuts for this Qube @@ -485,10 +485,10 @@ :/updateable.png:/updateable.png - &Update VM + &Update Qube - Update VM system + Update Qube system @@ -497,10 +497,10 @@ :/firewall.png:/firewall.png - Edit VM &firewall rules + Edit Qube &firewall rules - Edit VM firewall rules + Edit Qube firewall rules @@ -556,10 +556,10 @@ :/settings.png:/settings.png - VM s&ettings + Qube s&ettings - VM Settings + Qube Settings @@ -568,7 +568,10 @@ :/restore.png:/restore.png - &Restore VMs from backup + &Restore Qubes from backup + + + Restore Qubes from backup @@ -577,7 +580,10 @@ :/backup.png:/backup.png - &Backup VMs + &Backup Qubes + + + Backup Qubes @@ -618,10 +624,10 @@ :/killvm.png:/killvm.png - &Kill VM + &Kill Qube - Kill selected VM + Kill selected Qube @@ -633,7 +639,7 @@ Set keyboard la&yout - Set keyboard layout per VM + Set keyboard layout per Qube @@ -647,7 +653,7 @@ T&ype - VM Type + Qube Type @@ -724,10 +730,10 @@ :/run-command.png:/run-command.png - &Run command in VM + &Run command in Qube - Run command in the specified VM + Run command in the specified Qube @@ -739,7 +745,10 @@ :/templatevm.png:/templatevm.png - &Clone VM + &Clone Qube + + + Clone Qube @@ -753,7 +762,7 @@ Inte&rnal - Is an internal VM + Is an internal Qube @@ -765,10 +774,10 @@ :/resumevm.png:/resumevm.png - Start VM for Window Tools installation + Start Qube for Window Tools installation - Start VM for Window Tools installation + Start Qube for Window Tools installation