aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-04-10 10:19:13 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-04-10 10:19:13 +0200
commit37c9fc17c0a582b42258899240c4d4322d52747a (patch)
treeebe69baabd82a515c8b5a105881129ffdbf18b0b
parent2e3efaed434a6319a4f93dc52cb7ec08b401b8ae (diff)
downloadisodumper-37c9fc17c0a582b42258899240c4d4322d52747a.tar
isodumper-37c9fc17c0a582b42258899240c4d4322d52747a.tar.gz
isodumper-37c9fc17c0a582b42258899240c4d4322d52747a.tar.bz2
isodumper-37c9fc17c0a582b42258899240c4d4322d52747a.tar.xz
isodumper-37c9fc17c0a582b42258899240c4d4322d52747a.zip
Change '\n' with <BR /> in messages for new lines
Add contributor
-rw-r--r--lib/isodumper.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index b6a7d0b..0229a20 100644
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -492,9 +492,9 @@ class IsoDumper(object):
def success(self):
self.operation=False
self.final_unsensitive()
- info = Info(_("Success"),True,_("The operation completed successfully.\n\
- You are free to unplug it now, a log isodumper.log\n\
- of the operation will be saved in your homedir/.isodumper/ when\n\
+ info = Info(_("Success"),True,_("The operation completed successfully.<BR />\
+ You are free to unplug it now, a log isodumper.log<BR />\
+ of the operation will be saved in your homedir/.isodumper/ when<BR />\
you close the application."))
if self.ask_OK(info) :
return
@@ -504,8 +504,8 @@ class IsoDumper(object):
if self.operation==False: # no writing , backup nor format running
self.close()
else: # writing , backup or format running
- info = Info(_("Warning"),True,_("Writing is in progress. Exiting during writing \n\
- will make the device or the backup unusable.\n\
+ info = Info(_("Warning"),True,_("Writing is in progress. Exiting during writing <BR />\
+ will make the device or the backup unusable.<BR />\
Are you sure you want to quit during writing?"))
if self.ask_YesOrNo(info) :
return True
@@ -567,19 +567,19 @@ class IsoDumper(object):
# self.chooser.set_tooltip_text(self.img_name)
def help_dialog(self):
- info = Info(_("IsoDumper"),True,_("Mageia IsoDumper\n\
-----------------\n\
-This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive, \nan operation devious & potentially hazardous when done by hand. As a bonus, it can also back up the entire previous\ncontents of the flash drive onto the hard disc, and restore the flash drive to its previous state subsequently.\n It gives also a feature for formatting the USB device.\n\
-\n\
-IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.\nFor normal users, the root password is solicited; this is necessary for the program's operation. \nThe flash drive can be inserted beforehand or once the program is started. In the latter case, a dialogue will say \nthat there is no flash drive inserted, and allow a 'retry' to find it once it is. \n(You may have to close any automatically opened File Manager window).\n\
-\n\
-The fields of the main window are as follows:\n\
-- Device to work on: the device of the USB flash drive, a drop-down list to choose from.\n\
-- Write Image: to choose the source ISO image *.iso (or flash drive backup file *.img) to write out.\n\
-- Write to device: This button launches the operation - with a prior warning dialogue. \nThe operation is shown in the progress bar beneath.\n\
-- Backup to: define the name and placement of the backup image file. The current flash \ndrive will be backed up to a disc file. Note that the entire flash drive is preserved, regardless of its actual contents;\n ensure that you have the necessary free disc space (the same size as the USB device). \nThis backup file can be used later to restore the flash drive by selecting it as the source *.img file to write out.\n\
-- Backup the device: launch the backup operation.\n\
-- Format the device: create an unique partition on the entire volume in the specified format in FAT, \nNTFS or ext. You can specify a volume name and the format in a new dialog box.\n"))
+ info = Info(_("IsoDumper"),True,_("Mageia IsoDumper<BR />\
+----------------<BR />\
+This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive, <BR />an operation devious & potentially hazardous when done by hand. As a bonus, it can also back up the entire previous<BR />contents of the flash drive onto the hard disc, and restore the flash drive to its previous state subsequently.<BR /> It gives also a feature for formatting the USB device.<BR />\
+<BR />\
+IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.<BR />For normal users, the root password is solicited; this is necessary for the program's operation. <BR />The flash drive can be inserted beforehand or once the program is started. In the latter case, a dialogue will say <BR />that there is no flash drive inserted, and allow a 'retry' to find it once it is. <BR />(You may have to close any automatically opened File Manager window).<BR />\
+<BR />\
+The fields of the main window are as follows:<BR />\
+- Device to work on: the device of the USB flash drive, a drop-down list to choose from.<BR />\
+- Write Image: to choose the source ISO image *.iso (or flash drive backup file *.img) to write out.<BR />\
+- Write to device: This button launches the operation - with a prior warning dialogue. <BR />The operation is shown in the progress bar beneath.<BR />\
+- Backup to: define the name and placement of the backup image file. The current flash <BR />drive will be backed up to a disc file. Note that the entire flash drive is preserved, regardless of its actual contents;<BR /> ensure that you have the necessary free disc space (the same size as the USB device). <BR />This backup file can be used later to restore the flash drive by selecting it as the source *.img file to write out.<BR />\
+- Backup the device: launch the backup operation.<BR />\
+- Format the device: create an unique partition on the entire volume in the specified format in FAT, <BR />NTFS or ext. You can specify a volume name and the format in a new dialog box.<BR />"))
if self.ask_OK(info) :
return
@@ -601,8 +601,8 @@ The fields of the main window are as follows:\n\
self.operation=False
self.ChooseImage = _("Choose an image")
- self.warning = _("Warning\nThis will destroy all data on the target device,\n\
- are you sure you want to proceed?\n\
+ self.warning = _("Warning<BR />This will destroy all data on the target device,<BR />\
+ are you sure you want to proceed?<BR />\
If you say ok here, please <b>do not unplug</b>\
the device during the following operation.")
"""
@@ -773,7 +773,7 @@ The fields of the main window are as follows:\n\
yui.YUI.widgetFactory;
mgafactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
dlg = mgafactory.createAboutDialog("About Isodumper", self.RELEASE, "GPLv2",
- "Oliver Grawert\nPapoteur", "A tool for writing ISO images to a device", "")
+ "Oliver Grawert<BR />Papoteur<BR />Pictures : Thimotée Giet", "A tool for writing ISO images to a device", "")
dlg.show();
def nodevDialog(self):
@@ -781,7 +781,7 @@ The fields of the main window are as follows:\n\
mgafactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
dlg = mgafactory.createDialogBox(yui.YMGAMessageBox.B_TWO)
dlg.setTitle("IsoDumper")
- dlg.setText(_("Warning\nNo target devices were found.\nYou need to plug in a USB Key to which the image can be written."))
+ dlg.setText(_("Warning<BR />No target devices were found.<BR />You need to plug in a USB Key to which the image can be written."))
dlg.setButtonLabel(_("&Refresh"), yui.YMGAMessageBox.B_ONE)
dlg.setButtonLabel(_("Cancel"), yui.YMGAMessageBox.B_TWO)
dlg.setMinSize(50, 8);