From 37c9fc17c0a582b42258899240c4d4322d52747a Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 10 Apr 2016 10:19:13 +0200 Subject: Change '\n' with
in messages for new lines Add contributor --- lib/isodumper.py | 44 ++++++++++++++++++++++---------------------- 1 file 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.
\ + You are free to unplug it now, a log isodumper.log
\ + of the operation will be saved in your homedir/.isodumper/ when
\ 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
\ + will make the device or the backup unusable.
\ 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
\ +----------------
\ +This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive,
an operation devious & potentially hazardous when done by hand. As a bonus, it can also back up the entire previous
contents of the flash drive onto the hard disc, and restore the flash drive to its previous state subsequently.
It gives also a feature for formatting the USB device.
\ +
\ +IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.
For normal users, the root password is solicited; this is necessary for the program's operation.
The flash drive can be inserted beforehand or once the program is started. In the latter case, a dialogue will say
that there is no flash drive inserted, and allow a 'retry' to find it once it is.
(You may have to close any automatically opened File Manager window).
\ +
\ +The fields of the main window are as follows:
\ +- Device to work on: the device of the USB flash drive, a drop-down list to choose from.
\ +- Write Image: to choose the source ISO image *.iso (or flash drive backup file *.img) to write out.
\ +- Write to device: This button launches the operation - with a prior warning dialogue.
The operation is shown in the progress bar beneath.
\ +- Backup to: define the name and placement of the backup image file. The current flash
drive will be backed up to a disc file. Note that the entire flash drive is preserved, regardless of its actual contents;
ensure that you have the necessary free disc space (the same size as the USB device).
This backup file can be used later to restore the flash drive by selecting it as the source *.img file to write out.
\ +- Backup the device: launch the backup operation.
\ +- Format the device: create an unique partition on the entire volume in the specified format in FAT,
NTFS or ext. You can specify a volume name and the format in a new dialog box.
")) 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
This will destroy all data on the target device,
\ + are you sure you want to proceed?
\ If you say ok here, please do not unplug\ 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
Papoteur
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
No target devices were found.
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); -- cgit v1.2.1