aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG32
-rw-r--r--Makefile32
-rw-r--r--README.md15
-rwxr-xr-xisodumper2
-rw-r--r--isodumper.spec64
-rwxr-xr-xlib/isodumper.py954
-rwxr-xr-xlib/raw_format.py52
-rw-r--r--mpan/categories.conf.d/isodumper.conf12
-rw-r--r--po/isodumper.pot351
-rw-r--r--po/ms.po350
-rw-r--r--share/applications/isodumper.desktop8
-rw-r--r--share/applications/isodumper.desktop.in4
-rw-r--r--share/isodumper/isodumper.glade1723
-rwxr-xr-xtools/po-update.sh5
14 files changed, 1181 insertions, 2423 deletions
diff --git a/CHANGELOG b/CHANGELOG
index ae25fa2..f6eda90 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,26 @@
The initial state comes from https://launchpad.net/usb-imagewriter
The modifications are:
+IsoDumper 0.51
+------------
+ - exclude void media
+ - Better managing grayed or enabled widgets
+ - Deal with device selection
+ - Better managing names in file picker buttons
+ - Reduce the size of dialog windows
+ - Clean code
+ - Add new design
+ - Change Maindialog to PopupDialog, to have a smaller window, nicer.
+ - Add comments
+ - Update some strings for better language
+ - Correction for closing application, without segfault.
+ - Format the messages
+
+IsoDumper 0.50
+------------
+ - yui release
+
+------------
IsoDumper 0.47
------------
- Update some translations
@@ -36,6 +56,18 @@ IsoDumper 0.42
------------
- suppress UEFI feature.
- update some translations.
+ - update language sv.
+
+IsoDumper 0.43
+------------
+ - security update in raw_format.py against injection #16910.
+ - added some new translations on Catalan, Hungarian, Slovak and Croatian.
+ - update all translations.
+
+IsoDumper 0.42
+------------
+ - suppress UEFI feature.
+ - update some translations.
IsoDumper 0.41
------------
diff --git a/Makefile b/Makefile
index 2975e35..a36d6d3 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,15 @@ ICONSDIR=$(PREFIX)/share/icons
PIXMAPSDIR=$(PREFIX)/share/pixmaps
LOCALEDIR=$(PREFIX)
DOCDIR=$(PREFIX)/share/doc/isodumper
-PYTHON=/usr/bin/env python
+PYTHON=/usr/bin/env python3
+SYSCONFDIR=/etc
DIRS = polkit
POFILES = po
+PACKAGE = isodumper
+VERSION = 0.51
+GITPATH = git://git.mageia.org/software/isodumper
+
all: dirs pofiles
dirs:
@@ -56,8 +61,8 @@ install:
mkdir -p $(DESTDIR)$(BINDIR)
install -m 755 polkit/isodumper $(DESTDIR)$(BINDIR)
- # for policy file isodumper on /usr/share/polkit-1/actions/
- # to have authentication with polkit (use for mageia policy)
+ # for policy file isodumper on /usr/share/polkit-1/actions/
+ # to have authentication with polkit (use for mageia policy)
mkdir -p $(DESTDIR)$(POLKITPOLICYDIR)
install -m 644 polkit/org.mageia.isodumper.policy $(DESTDIR)$(POLKITPOLICYDIR)
@@ -66,14 +71,25 @@ install:
install -m 755 lib/isodumper.py $(DESTDIR)$(LIBDIR)/isodumper
install -m 755 lib/raw_format.py $(DESTDIR)$(LIBDIR)/isodumper
- # for DATADIR isodumper.py header.png
+ # for manatools mpan file in /etc/manatools/mpan/categories.conf.d/
+ mkdir -p $(DESTDIR)$(SYSCONFDIR)/manatools/mpan/categories.conf.d
+ install -m 644 mpan/categories.conf.d/isodumper.conf $(DESTDIR)$(SYSCONFDIR)/manatools/mpan/categories.conf.d
+
+ # for DATADIR isodumper.py header.png and header.svg
mkdir -p $(DESTDIR)$(DATADIR)/isodumper
- install -m 644 share/isodumper/isodumper.glade $(DESTDIR)$(DATADIR)/isodumper
install -m 644 share/isodumper/header.png $(DESTDIR)$(DATADIR)/isodumper
+ install -m 644 share/isodumper/header.svg $(DESTDIR)$(DATADIR)/isodumper
- # for isodumper desktop menu entry
+ # for isodumper-qt desktop menu entry
mkdir -p $(DESTDIR)$(DATADIR)/applications
- install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications
+ install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+ sed -i -e "s|Name=IsoDumper|Name=IsoDumper (Qt)|" $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+ sed -i -e "s|Exec=isodumper|Exec=isodumper --qt|" $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+
+ # for isodumper-gtk desktop menu entry
+ install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
+ sed -i -e "s|Name=IsoDumper|Name=IsoDumper (GTK)|" $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
+ sed -i -e "s|Exec=isodumper|Exec=isodumper --gtk|" $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
# for isodumper doc
mkdir -p $(DESTDIR)$(DOCDIR)
@@ -97,6 +113,7 @@ install:
mkdir -p $(DESTDIR)$(ICONSDIR)/hicolor/scalable/apps
install -m 644 isodumper.svg $(DESTDIR)$(ICONSDIR)/hicolor/scalable/apps/isodumper.svg
+
# for isodumper.mo translations
for locale in share/locale/*; \
do \
@@ -107,7 +124,6 @@ install:
tar:
tar cvJf isodumper.tar.xz *
-
README.txt: README.md
pandoc -f markdown -t plain README.md -o README.txt
diff --git a/README.md b/README.md
index 341b7cb..3466e40 100644
--- a/README.md
+++ b/README.md
@@ -8,16 +8,13 @@ We added also a formatting feature and a backup of USB device content.
Requirements
-------------
-- coreutils
-- pango
- polkit
-- procps (or procps-ng)
-- pygtk2.0-libglade
-- python
-- python-dbus
-- python-parted
-- udisks
-- xterm
+- python3
+- python3-dbus
+- python3-parted
+- udisks2
+- libyui and declanation of ncurses, gtk or Qt
+- libyui-mga
License
diff --git a/isodumper b/isodumper
index fb1bdcc..7857fef 100755
--- a/isodumper
+++ b/isodumper
@@ -13,4 +13,4 @@ TERM=xterm
DIR=/usr/lib/isodumper
-$DIR/isodumper.py $1
+python3 $DIR/isodumper.py $1
diff --git a/isodumper.spec b/isodumper.spec
deleted file mode 100644
index fe905fc..0000000
--- a/isodumper.spec
+++ /dev/null
@@ -1,64 +0,0 @@
-Name: isodumper
-Version: 0.47
-Release: %mkrel 1
-Summary: Tool for writing ISO images on a USB stick
-Summary(fr_FR): Outil pour écrire des images ISO sur une clé USB
-License: GPLv2+ and LGPLv2+
-Group: System/Configuration
-URL: http://gitweb.mageia.org/software/isodumper/about/
-Source0: http://gitweb.mageia.org/software/isodumper/snapshot/%{name}-%{version}.tar.xz
-BuildArch: noarch
-
-BuildRequires: imagemagick
-BuildRequires: intltool
-
-Requires: coreutils
-Requires: pango
-Requires: polkit
-Requires: procps-ng
-Requires: pygtk2.0-libglade
-Requires: python
-Requires: python-dbus
-Requires: python-parted
-Requires: udisks
-Requires: xterm
-
-
-%description
-A GUI tool for writing ISO images on a USB stick.
-It's a fork of usb-imagewriter.
-
-This software is written in python.
-
-%description -l fr_FR
-Un outil graphique pour écrire des images ISO sur une clé USB.
-C'est un fork de usb-imagewriter
-
-Ce logiciel est écrit en python.
-
-#--------------------------------------------------------------------
-%prep
-%setup -q
-
-%build
-%make
-
-%install
-%make_install
-
-%find_lang %{name}
-
-%files -f %{name}.lang
-%doc COPYING.GPL COPYING.LGPL CHANGELOG i18n.md README.md
-%{_bindir}/%{name}
-%{_libexecdir}/%{name}
-%{_usr}/lib/%{name}/
-%{_datadir}/%{name}/
-%{_datadir}/polkit-1/actions/*.policy
-%{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/%{name}.png
-%{_miconsdir}/%{name}.png
-%{_iconsdir}/%{name}.png
-%{_liconsdir}/%{name}.png
-%{_iconsdir}/hicolor/*/*/%{name}.png
-%{_iconsdir}/hicolor/*/*/%{name}.svg
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 8af078e..c62089b 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -1,4 +1,6 @@
-#!/usr/bin/python
+#coding:utf-8
+
+#!/usr/bin/python3
#
# Copyright (c) 2007-2009 Canonical Ltd.
#
@@ -21,17 +23,35 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-# Requires python-parted
+# Requires python3-parted
+
+# ensure we're using the latest build, if called from our build environment
+import sys
+import imp
+
+sys.path.insert(0,'../../../build/swig/python3')
+imp.reload(sys)
+###########
+# imports #
+###########
+import yui
+#import locale
+import time
+
+####################################
+# LOCALE (important for TERMINAL!) #
+####################################
+# set the locale to de/utf-8
+#locale.setlocale(locale.LC_ALL, "")
+#log = yui.YUILog.instance()
+#log.setLogFileName("debug.log")
+#log.enableDebugLogging( True )
-import gtk
-import gtk.glade
-import gobject
import os, re
import io
import gettext
from gettext import gettext as _
from subprocess import call, Popen, PIPE
-import time
import dbus
@@ -55,6 +75,18 @@ class UDisks2(object):
raise NoUDisks2()
raise
+ def node_mountpoint(self,node):
+
+ def de_mangle(raw):
+ return raw.replace('\\040', ' ').replace('\\011', '\t').replace('\\012',
+ '\n').replace('\\0134', '\\')
+
+ for line in open('/proc/mounts').readlines():
+ line = line.split()
+ if line[0] == node:
+ return de_mangle(line[1])
+ return None
+
def device(self, device_node_path):
device_node_path = os.path.realpath(device_node_path)
devname = device_node_path.split('/')[-1]
@@ -76,7 +108,7 @@ class UDisks2(object):
devs = self.bus.get_object('org.freedesktop.UDisks2',
'/org/freedesktop/UDisks2/block_devices')
xml = devs.Introspect(dbus_interface='org.freedesktop.DBus.Introspectable')
- for dev in re.finditer(r'name=[\'"](.+?)[\'"]', type(u'')(xml)):
+ for dev in re.finditer(r'name=[\'"](.+?)[\'"]', type('')(xml)):
bd = self.bus.get_object('org.freedesktop.UDisks2',
'/org/freedesktop/UDisks2/block_devices/%s2'%dev.group(1))
try:
@@ -98,10 +130,10 @@ class UDisks2(object):
re_drive = re.compile('(?P<path>.*?/drives/(?P<id>.*))')
re_block = re.compile('(?P<path>.*?/block_devices/(?P<id>.*))')
devs= [m.groupdict() for m in
- [re_drive.match(path) for path in objects.keys()]
+ [re_drive.match(path) for path in (objects.keys())]
if m]
blocks = [m.groupdict() for m in
- [re_block.match(path) for path in objects.keys()]
+ [re_block.match(path) for path in (objects.keys())]
if m]
list=[]
@@ -120,194 +152,90 @@ class UDisks2(object):
item.append(path)
item.append(size)
list.append(item)
- self.device_nb=len(list)
return list
- def unmount(self, device_node_path):
- d = self.device(device_node_path)
- d.Unmount({'force':True, 'auth.no_user_interaction':True},
- dbus_interface=self.FILESYSTEM)
-
-class IsoDumper:
- def __init__(self,user):
- APP="isodumper"
- DIR="/usr/share/locale"
- RELEASE="v0.47"
-
- gettext.bindtextdomain(APP, DIR)
- gettext.textdomain(APP)
- gtk.glade.bindtextdomain(APP, DIR)
- gtk.glade.textdomain(APP)
-
- # for the localisation of log file
- self.user = user
-
- # get glade tree
- self.gladefile = "/usr/share/isodumper/isodumper.glade"
- self.wTree = gtk.glade.XML(self.gladefile)
+ def drive_for_device(self, device):
+ drive = device.Get(self.BLOCK, 'Drive',
+ dbus_interface='org.freedesktop.DBus.Properties')
+ return self.bus.get_object('org.freedesktop.UDisks2', drive)
- # get globally needed widgets
- self.window = self.wTree.get_widget("main_dialog")
- self.devicelist = self.wTree.get_widget("device_combobox")
- self.logview = self.wTree.get_widget("detail_text")
- self.log = self.logview.get_buffer()
- # set RELEASE number on title and About
- self.window.set_title(self.window.get_title()+' '+RELEASE)
- self.wTree.get_widget("about_dialog").set_version(RELEASE)
+ def eject(self, device_node_path):
+ drive = self.drive_for_device(self.device(device_node_path))
+ drive.Eject({'auth.no_user_interaction':True},
+ dbus_interface=self.DRIVE)
- # define size of the selected device
- self.deviceSize=0
-
- # Operation running
- self.operation=False
-
- # set default file filter to *.img
- # Added for Mageia : *.iso
- self.chooser = self.wTree.get_widget("filechooserbutton")
- filt = gtk.FileFilter()
- filt.add_pattern("*.iso")
- filt.add_pattern("*.img")
- self.chooser.set_filter(filt)
-
-
- # optionnal backup of the device
- self.backup_select = self.wTree.get_widget("backup_select")
- self.backup_name = self.wTree.get_widget("backup_name")
- self.backup_button = self.wTree.get_widget("backup_button")
- self.choose = self.wTree.get_widget("choose")
- self.backup_bname = self.wTree.get_widget("bname")
-
-
- # set callbacks
- dict = { "on_main_dialog_destroy_event" : self.confirm_close,
- "on_main_dialog_delete_event" : self.confirm_close,
- "on_cancel_button_clicked" : self.confirm_close,
- "on_emergency_button_clicked" : self.restore,
- "on_confirm_cancel_button_clicked": self.restore,
- "on_filechooserbutton_file_set" : self.activate_devicelist,
- "on_device_combobox_changed" : self.device_selected,
- "on_nodev_close_clicked" : self.close,
- "on_backup_button_clicked" : self.backup_go,
- "on_backup_select_clicked" : self.backup_sel,
- "on_select_clicked" : self.backup_choosed,
- "on_about_button_clicked" : self.about,
- "on_choose_cancel_clicked" : self.backup_cancel,
- "on_format_button_clicked" : self.format_dialog,
- "on_format_cancel_clicked" : self.format_cancel,
- "on_format_go_clicked" : self.do_format,
- "on_write_button_clicked" : self.do_write,
- "on_help_close_clicked": self.help_close,
- "on_help_clicked": self.help_dialog,
- "on_update_button_clicked":self.update_list,
- }
- self.wTree.signal_autoconnect(dict)
-
- self.window.show_all()
- # make sure we have a target device
- self.u = None
- try:
- self.u = UDisks2()
- except :
- self.logger(_('UDisks2 is not available on your system'))
- self.emergency()
- self.get_devices()
+class Info(object):
+ def __init__(self,title,richtext,text):
+ self.title=title
+ self.richtext=richtext
+ self.text=text
- def update_list(self, widget):
- for i in xrange(self.device_nb):
- self.devicelist.remove_text(0)
- self.get_devices()
- self.restore(widget)
+
+class IsoDumper(object):
def get_devices(self):
- dialog = self.wTree.get_widget("nodev_dialog")
self.list=self.u.find_devices()
while len(self.list)==0:
- exit_dialog=dialog.run()
- if (exit_dialog==2) :
- dialog.destroy()
- exit(0)
- self.list = self.u.find_devices()
- for name, path, size in self.list:
- if size != 0 :
+ if self.nodevDialog():
+ self.list = self.u.find_devices()
+ else:
+ return False
+ break
+ self.devicelist.addItem("",False)
+ if len(self.list)>0:
+ for name, path, size in self.list:
+ if size != 0 :
# convert in Mbytes
- sizeM=str(int(size)/(1024*1024))
- self.devicelist.append_text(name+' ('+path.lstrip()+') '+sizeM+_('Mb'))
- self.device_nb=len(self.list)
- dialog.hide()
-
- def device_selected(self, widget):
- self.dev = self.devicelist.get_active_text()
- if self.dev != None:
+ sizeM=str(int(size)/(1024*1024))
+ self.devicelist.addItem(str(name+' ('+path.lstrip()+') '+sizeM+_('Mb')),False)
+ return True
+
+
+ def update_list(self ):
+ self.devicelist.deleteAllItems()
+ self.get_devices()
+ self.img_name = ""
+ self.ima.setLabel(self.ChooseImage)
+ self.backup_select.setLabel(self.ChooseImage)
+ self.restore()
+
+ def device_selected(self):
+ selitem = self.devicelist.selectedItem()
+ if selitem != None:
+ self.dev = selitem.label()
for name, path, size in self.list:
if self.dev.startswith(name):
self.deviceSize=size
self.device_name=name.rstrip().replace(' ', '')
+ self.logger(_('Target Device: ')+ self.dev)
+ self.formatbt.setEnabled()
+ self.ima.setEnabled()
+ self.backup_select.setEnabled()
break
- self.backup_select.set_sensitive(True)
- self.wTree.get_widget("format_button").set_sensitive(True)
- self.chooser.set_sensitive(True)
- if self.chooser.get_current_folder_uri() == None :
- self.chooser.set_current_folder_uri('file:///home/'+self.user)
- self.logger(_('Target Device: ')+ self.dev)
-
- def backup_sel(self,widget):
+
+
+ def backup_sel(self):
if self.backup_bname.get_current_folder_uri() == None :
self.backup_bname.set_current_folder_uri('file:///home/'+self.user)
self.backup_bname.set_current_name(self.device_name+".img")
self.choose.run()
- def backup_cancel(self,widget):
- self.choose.hide()
- # Unckeck the choice to backup
- self.backup_button.set_sensitive(False)
-
- def backup_choosed(self, widget):
- exit_dialog=self.backup_bname.get_filename()
- if exit_dialog != None:
- # Add .iso if not specified
- if not exit_dialog.lower().endswith('.img'):
- exit_dialog=exit_dialog+".img"
- head, tail = os.path.split(exit_dialog)
- self.backup_dest=exit_dialog
- self.backup_select.set_label(tail)
- self.backup_button.set_sensitive(True)
- self.backup_select.set_tooltip_text(exit_dialog)
- self.logger(_('Backup in: ')+ exit_dialog)
- expander = self.wTree.get_widget("detail_expander")
- expander.set_sensitive(True)
- self.choose.hide()
-
- def format_dialog(self,widget):
- self.backup_select.set_sensitive(False)
- format_button=self.wTree.get_widget("format_button")
- format_button.set_sensitive(False)
- filechooserbutton=self.wTree.get_widget("filechooserbutton")
- filechooserbutton.set_sensitive(False)
- write_button = self.wTree.get_widget("write_button")
- write_button.set_sensitive(False)
- self.devicelist.set_sensitive(False)
- dialog=self.wTree.get_widget("format")
- self.wTree.get_widget("format_device").set_text(self.dev)
- self.wTree.get_widget("format_name").set_text(self.dev.split('(')[0])
- exit_dialog=dialog.run()
- if exit_dialog==0:
- dialog.hide()
-
- def do_format(self, widget) :
+ def backup_choosed(self):
+ # Add .img if not specified
+ if not self.backup_img_name.lower().endswith('.img'):
+ self.backup_img_name=self.backup_img_name+".img"
+ head, tail = os.path.split(self.backup_img_name)
+ self.backup_dest=self.backup_img_name
+ self.backup_select.setLabel(tail)
+ self.backupbt.setEnabled()
+ #self.backup_select.set_tooltip_text(self.backup_img_name)
+ self.logger(_('Backup to: ')+ self.backup_img_name)
+
+ def do_format(self,format_type,name) :
target = self.dev.split('(')[1].split(')')[0]
- dialog = self.wTree.get_widget("confirm_dialog")
- expander = self.wTree.get_widget("detail_expander")
- expander.set_sensitive(True)
- resp = dialog.run()
- dev_name=self.wTree.get_widget("format_name").get_text()
- if resp:
- dialog.hide()
- if self.wTree.get_widget("format_fat").get_active():
- rc=self.raw_format(target, 'fat32', dev_name.upper()[:11])
- if self.wTree.get_widget("format_ntfs").get_active():
- rc=self.raw_format(target, 'ntfs', dev_name[:32])
- if self.wTree.get_widget("format_ext4").get_active():
- rc=self.raw_format(target, 'ext4', dev_name)
+ info = Info(_("Formatting confirmation"),True,self.warning)
+ if self.ask_YesOrNo(info):
+ rc=self.raw_format(target, format_type, name)
self.operation=False
if rc == 0:
message = _('The device was formatted successfully.')
@@ -316,39 +244,34 @@ class IsoDumper:
elif rc == 5:
message = _("An error occurred while creating a partition.")
self.logger(message)
- self.emergency()
+ self.emergency(message)
elif rc == 127:
message = _('Authentication error.')
self.logger(message)
- self.emergency()
+ self.emergency(message)
else:
message = _('An error occurred.')
- self.emergency()
- self.wTree.get_widget("format").hide()
- self.backup_select.set_sensitive(True)
- self.wTree.get_widget("format_button").set_sensitive(True)
- self.wTree.get_widget("filechooserbutton").set_sensitive(True)
- else:
- dialog.hide()
-
- def restore(self,widget):
- self.backup_select.set_sensitive(True)
- self.wTree.get_widget("format_button").set_sensitive(True)
- self.wTree.get_widget("filechooserbutton").set_sensitive(True)
- self.devicelist.set_sensitive(True)
- self.wTree.get_widget("emergency_dialog").hide()
- progress = self.wTree.get_widget("progressbar")
- progress.set_text("")
- progress.set_fraction(0)
- progress.set_sensitive(False)
+ self.emergency(message)
+
+ def restore(self):
+ self.backup_select.setDisabled()
+ self.backupbt.setDisabled()
+ self.formatbt.setDisabled()
+ self.ima.setDisabled()
+ self.writebt.setDisabled()
+ self.devicelist.setEnabled()
+ self.progress.setLabel("")
+ self.progress.setValue(0)
+ self.progress.setDisabled()
+ self.refreshbt.setEnabled()
def raw_format(self, usb_path, fstype, label):
self.operation=True
if os.geteuid() > 0:
launcher='pkexec'
- self.process = Popen([launcher,'/usr/bin/python', '-u', '/usr/lib/isodumper/raw_format.py','-d',usb_path,'-f',fstype, '-l', label, '-u', str(os.geteuid()), '-g', str(os.getgid())], shell=False, stdout=PIPE, preexec_fn=os.setsid)
+ self.process = Popen([launcher,'/usr/bin/python3', '-u', '/usr/lib/isodumper/raw_format.py','-d',usb_path,'-f',fstype, '-l', label, '-u', str(os.geteuid()), '-g', str(os.getgid())], shell=False, stdout=PIPE, preexec_fn=os.setsid)
else:
- self.process = Popen(['/usr/bin/python', '-u', '/usr/lib/isodumper/raw_format.py','-d',usb_path,'-f',fstype, '-l', label, '-u', str(os.geteuid()), '-g', str(os.getgid())], shell=False, stdout=PIPE, preexec_fn=os.setsid)
+ self.process = Popen(['/usr/bin/python3', '-u', '/usr/lib/isodumper/raw_format.py','-d',usb_path,'-f',fstype, '-l', label, '-u', str(os.geteuid()), '-g', str(os.getgid())], shell=False, stdout=PIPE, preexec_fn=os.setsid)
working=True
while working:
time.sleep(0.5)
@@ -361,300 +284,263 @@ class IsoDumper:
working= False
return rc
- def format_cancel(self, widget):
- dialog=self.wTree.get_widget("format")
- dialog.hide()
- self.backup_select.set_sensitive(True)
- format_button=self.wTree.get_widget("format_button")
- filechooserbutton=self.wTree.get_widget("filechooserbutton")
- format_button.set_sensitive(True)
- filechooserbutton.set_sensitive(True)
- self.devicelist.set_sensitive(True)
-
- def backup_go(self,widget):
- dest = self.backup_dest
+ def backup_go(self):
+ dest = self.backup_img_name
if os.path.exists(dest):
- dialog=self.wTree.get_widget("confirm_overwrite")
- resp=dialog.run()
- if resp !=-5: # GTK_RESPONSE_OK
- dialog.hide()
+ info = Info(_("Backup confirmation"),True,_("Do you want to overwrite the file?"))
+ if not(self.ask_YesOrNo(info)):
+ self.returncode = 1
return True
- else:
- dialog.hide()
- # check free space
st = os.statvfs(os.path.dirname(dest))
free = st.f_bavail * st.f_frsize
if free<self.deviceSize :
sizeM=str(self.deviceSize/(1024*1024))
- self.logger(_("The destination directory is too small to receive the backup (%s Mb needed)")%(sizeM))
- self.emergency()
+ message=_("The destination directory is too small to receive the backup (%s Mb needed)")%(sizeM)
+ self.logger(message)
+ self.emergency(message)
else:
self.returncode=0
source = self.dev.split('(')[1].split(')')[0]
- self.logger(_('Backup in:')+' '+dest)
- task = self.raw_write(source, dest, self.deviceSize)
- gobject.idle_add(task.next)
- while gtk.events_pending():
- gtk.main_iteration(True)
+ self.logger(_('Backup to:')+' '+dest)
+ self.raw_write(source, dest, self.deviceSize)
if self.returncode==0:
self.success()
+
- def do_write(self, widget):
+ def do_write(self):
self.returncode = 0
- write_button = self.wTree.get_widget("write_button")
- write_button.set_sensitive(False)
- combo = self.wTree.get_widget("device_combobox")
- combo.set_sensitive(False)
- format_button=self.wTree.get_widget("format_button")
- format_button.set_sensitive(False)
- backup_select=self.wTree.get_widget("backup_select")
- backup_select.set_sensitive(False)
- source = self.chooser.get_filename()
+ self.writebt.setDisabled()
+ self.devicelist.setDisabled()
+ self.formatbt.setDisabled()
+ self.backupbt.setDisabled()
+ self.backup_select.setDisabled()
+ self.progress.setEnabled()
+ source = self.img_name
target = self.dev.split('(')[1].split(')')[0]
- dialog = self.wTree.get_widget("confirm_dialog")
- self.logger(_('Target Device: ')+self.dev)
+# self.logger(_('Image: ')+source)
+# self.logger(_('Target Device: ')+self.dev)
b = os.path.getsize(source)
if b > (self.deviceSize):
- self.logger(_('The device is too small to contain the ISO file.'))
- self.emergency()
+ message = _('The device is too small to contain the ISO file.')
+ self.logger(message)
+ self.emergency(message)
else:
- resp = dialog.run()
- if resp:
+ info = Info(_("Writing confirmation"),True,self.warning)
+ if self.ask_YesOrNo(info):
if self.deviceSize> 1024*1024*1024*32 :
- message=self.wTree.get_widget("label1")
- message.set_text(_('The device is bigger than 32 Gbytes. Are you sure you want use it?'))
- resp = dialog.run()
- if resp:
+ info = Info(_("Warning"),True,_('The device is bigger than 32 Gbytes. Are you sure you want use it?'))
+ if self.ask_YesOrNo(info):
pass
else:
- self.emergency()
- dialog.hide()
+ self.emergency(message)
return
- self.chooser.set_sensitive(False)
+ self.ima.setDisabled()
+ self.writebt.setDisabled()
self.do_umount(target)
- dialog.hide()
if self.returncode != 1:
# Writing step
- #Dump mode
+ #Dump mode
self.returncode=0
b=os.path.getsize(source)
- task = self.raw_write(source, target, b)
- gobject.idle_add(task.next)
- while gtk.events_pending():
- gtk.main_iteration(True)
- task = self.check_write(target, b)
- gobject.idle_add(task.next)
- while gtk.events_pending():
- gtk.main_iteration(True)
+ self.raw_write(source, target, b)
if self.returncode == 0:
+ self.check_write(target, b)
self.success()
else:
- self.restore(widget)
+ self.restore()
else:
- dialog.hide()
- combo.set_sensitive(True)
- write_button.set_sensitive(True)
- format_button.set_sensitive(True)
- backup_select.set_sensitive(True)
+ self.restore()
def do_umount(self, target):
mounts = self.get_mounted(target)
if mounts:
self.logger(_('Unmounting all partitions of ')+target+':')
for mount in mounts:
self.logger(_('Trying to unmount ')+mount[0]+'...')
- while gtk.events_pending():
- gtk.main_iteration(True)
try:
retcode = call('umount '+mount[0], shell=True)
if retcode == 32:
message = _('Partition %s is busy')%mount[0]
self.logger(message)
- self.emergency()
+ self.emergency(message)
elif retcode< 0:
- self.logger(_('Error, umount ')+mount[0]+_(' was terminated by signal ')+str(retcode))
- self.emergency()
+ message = _('Error, umount ')+mount[0]+_(' was terminated by signal ')+str(retcode)
+ self.logger(message)
+ self.emergency(message)
elif retcode == 0:
self.logger(mount[0]+_(' successfully unmounted'))
else:
- self.logger(_('Error, umount ')+mount[0]+_(' returned ')+str(retcode))
- self.emergency()
- except OSError, e:
- self.logger(_('Execution failed: ')+str(e))
- self.emergency()
+ message = _('Error, umount ')+mount[0]+_(' returned ')+str(retcode)
+ self.logger(message)
+ self.emergency(message)
+ except OSError as e:
+ message = _('Execution failed: ')+str(e)
+ self.logger(message)
+ self.emergency(message)
def get_mounted(self, target):
try:
lines = [line.strip("\n").split(" ") for line in open ("/etc/mtab", "r").readlines()]
return [mount for mount in lines if mount[0].startswith(target)]
except:
- self.logger(_('Could not read mtab !'))
- self.emergency()
+ message = _('Could not read mtab !')
+ self.logger(message)
+ self.emergency(message)
def raw_write(self, source, target, b):
self.operation=True
-
bs=4096*128
try:
ifc=io.open(source, "rb",1)
except:
- self.logger(_('Reading error.')+ source)
- self.emergency()
+ message = _('Reading error.')+ source
+ self.logger(message)
+ self.emergency(message)
return
else:
try:
ofc= io.open(target, 'wb',0)
except:
- self.logger(_('You have not the rights for writing on the device'))
- self.emergency()
- self.close('dummy')
+ message = _("You don't have permission to write to the device") +" "+ target
+ self.logger(message)
+ self.emergency(message)
+ self.close()
else:
- progress = self.wTree.get_widget("progressbar")
- progress.set_sensitive(True)
- progress.set_text(_('Writing ')+source.split('/')[-1]+_(' to ')+target.split('/')[-1])
+ self.progress.setLabel(_('Writing ')+source.split('/')[-1]+_(' to ')+target.split('/')[-1])
self.logger(_('Executing copy from ')+source+_(' to ')+target)
- while gtk.events_pending():
- gtk.main_iteration(True)
- steps=range(0, b+1, b/100)
+ steps=list(range(0, b+1, int(b/100)))
steps.append(b)
indice=1
written=0
- ncuts=b/bs
+ ncuts=int(b/bs)
while ncuts <= 100:
- bs=bs/2
- ncuts=b/bs
- for i in xrange(0,ncuts+1):
+ bs=int(bs/2)
+ ncuts=int(b/bs)
+ for i in range(0,int(ncuts)+1):
try:
buf=ifc.read(bs)
except:
- self.logger(_("Reading error."))
- self.emergency()
+ message = _("Reading error.")
+ self.logger(message)
+ self.emergency(message)
return
try:
ofc.write(buf)
except:
- self.logger(_("Writing error."))
- self.emergency()
+ message = _("Writing error.")
+ self.logger(message)
+ self.emergency(message)
return
written+=len(buf)
if written > steps[indice]:
if indice%1==0:
self.logger(_('Wrote: ')+str(indice)+'% '+str(written)+' bytes')
- mark = self.log.create_mark("end", self.log.get_end_iter(), False)
- self.logview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0)
- progress.set_fraction(float(indice)/100)
- while gtk.events_pending():
- gtk.main_iteration(True)
+ self.progress.setValue(indice)
+ self.dialog.pollEvent()
indice +=1
try:
os.fsync(ofc)
except:
- self.logger(_("Writing error."))
- self.emergency()
+ message = _("Writing error.")
+ self.logger(message)
+ self.emergency(message)
return
- yield True
- progress.set_fraction(1.0)
+ self.progress.setValue(100)
self.logger(_('Image ')+source.split('/')[-1]+_(' successfully written to ')+target)
self.logger(_('Bytes written: ')+str(written))
try:
ofc.close()
except:
- self.logger(_("Writing error."))
- self.emergency()
+ message = _("Writing error.")
+ self.logger(message)
+ self.emergency(message)
ifc.close()
- yield False
def check_write(self, target, b):
import hashlib
- progress = self.wTree.get_widget("progressbar")
- progress.set_sensitive(True)
- progress.set_text(_('Checking ')+target.split('/')[-1])
- progress.set_fraction(0.0)
- steps=range(0, b+1, b/100)
+ self.progress.setEnabled()
+ self.progress.setLabel(_('Checking ')+target.split('/')[-1])
+ self.progress.setValue(0)
+ steps=list(range(0, b+1, int(b/100)))
steps.append(b)
indice=0
checked=0
sha1func=hashlib.sha1()
md5func=hashlib.md5()
- ncuts=b/1024
+ ncuts=int(b/1024)
try:
- with open(target, 'rb') as f:
- for x in xrange(0,ncuts):
- block = f.read(1024)
- sha1func.update(block)
- md5func.update(block)
- if checked > steps[indice]:
- progress.set_fraction(float(indice)/100)
- indice +=1
- while gtk.events_pending():
- gtk.main_iteration(True)
- yield True
- checked+=1024
- block = f.read(b-ncuts*1024)
- sha1func.update(block)
- md5func.update(block)
- sha1sumcalc=sha1func.hexdigest()
- md5sumcalc=md5func.hexdigest()
- self.logger(_('SHA1 sum: ')+sha1sumcalc)
- self.logger(_('MD5 sum: ')+md5sumcalc)
- mark = self.log.create_mark("end", self.log.get_end_iter(), False)
- self.logview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0)
- f.close()
- except:
- pass
- progress.set_fraction(1.0)
- yield False
+ with open(target, 'rb') as f:
+ for x in range(0,ncuts):
+ block = f.read(1024)
+ sha1func.update(block)
+ md5func.update(block)
+ if checked > steps[indice]:
+ self.progress.setValue(indice)
+ self.dialog.pollEvent()
+ indice +=1
+ checked+=1024
+ block = f.read(b-ncuts*1024)
+ sha1func.update(block)
+ md5func.update(block)
+ sha1sumcalc=sha1func.hexdigest()
+ md5sumcalc=md5func.hexdigest()
+ self.logger(_('SHA1 sum: ')+sha1sumcalc)
+ self.logger(_('MD5 sum: ')+md5sumcalc)
+ f.close()
+ except:
+ pass
+ self.progress.setValue(100)
def success(self):
self.operation=False
- dialog = self.wTree.get_widget("success_dialog")
self.final_unsensitive()
- resp = dialog.run()
- if resp:
- dialog.hide()
+ info = Info(_("Success"),True,_("The operation completed successfully.\n\
+ You are free to unplug it now, a logfile \n\
+(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n\
+ you close the application."))
+ if self.ask_OK(info) :
+ return
- def confirm_close(self, widget, *args):
+ def confirm_close(self, *args):
if self.operation==False: # no writing , backup nor format running
- self.close('dummy')
+ self.close()
else: # writing , backup or format running
- dialog=self.wTree.get_widget("Quit_warning")
- resp = dialog.run()
- if resp==-5 : # GTK_RESPONSE_OK
- self.close('dummy')
- else:
- dialog.hide()
+ info = Info(_("Warning"),True,_("Writing is in progress. Exiting during writing \n\
+ will make the device or the backup unusable.\n\
+ Are you sure you want to quit during writing?"))
+ if self.ask_YesOrNo(info) :
return True
+ else:
+ return False
- def emergency(self):
+ def emergency(self,message):
self.operation=False
self.returncode=1
self.final_unsensitive()
- dialog = self.wTree.get_widget("emergency_dialog")
- expander = self.wTree.get_widget("detail_expander")
- expander.set_expanded(True)
- mark = self.log.create_mark("end", self.log.get_end_iter(), False)
- self.logview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0)
- resp = dialog.run()
- if resp:
- dialog.hide()
+ info = Info(_("Error"),True,message)
+ self.ask_OK(info)
def final_unsensitive(self):
- self.chooser.set_sensitive(False)
- self.devicelist.set_sensitive(False)
- write_button = self.wTree.get_widget("write_button")
- write_button.set_sensitive(False)
- progress = self.wTree.get_widget("progressbar")
- progress.set_sensitive(False)
- self.backup_select.set_sensitive(False)
-
- def close(self, widget):
+ self.ima.setDisabled()
+ self.devicelist.setDisabled()
+ self.writebt.setDisabled()
+ self.progress.setDisabled()
+ self.backup_select.setDisabled()
+
+ def wip_unsensitive(self):
+ self.ima.setDisabled()
+ self.devicelist.setDisabled()
+ self.writebt.setDisabled()
+ self.backup_select.setDisabled()
+ self.backupbt.setDisabled()
+ self.refreshbt.setDisabled()
+
+ def close(self):
self.write_logfile()
- gtk.main_quit()
- exit(0)
+ self.dialog.destroy()
+ #exit(0)
def write_logfile(self):
- start = self.log.get_start_iter()
- end = self.log.get_end_iter()
import pwd
pw = pwd.getpwnam(self.user)
uid = pw.pw_uid
@@ -667,45 +553,311 @@ class IsoDumper:
os.mkdir(logpath)
else:
logpath='/root'
- logfile=open(logpath+'/isodumper.log',"w")
- logfile.write(self.log.get_text(start, end, False))
+ logfile=open(logpath+'/isodumper.log',"w", encoding="utf-8")
+ logfile.write(self.logview.logText())
logfile.close()
- print self.log.get_text(start, end, False)
+ print((self.logview.logText()))
def logger(self, text):
- self.log.insert_at_cursor(text+"\n")
-
- def activate_devicelist(self, widget):
- expander = self.wTree.get_widget("detail_expander")
- expander.set_sensitive(True)
- self.img_name = self.chooser.get_filename()
- write_button = self.wTree.get_widget("write_button")
- write_button.set_sensitive(True)
+ self.logview.appendLines(text+"\n")
+
+ def activate_devicelist(self):
+ self.devicelist.setEnabled()
self.logger(_('Image ')+": "+ self.img_name)
- self.chooser.set_tooltip_text(self.img_name)
+# self.chooser.set_tooltip_text(self.img_name)
+
+ def help_dialog(self):
+ 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, \
+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 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 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.<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, \
+NTFS or ext. You can specify a volume name and the format in a new dialog box.<BR />"))
+ if self.ask_OK(info) :
+ return
- def activate_backup(self, widget):
- self.backup_img_name = self.backup_dir.get_filename()
+ def __init__(self,user):
+ APP="isodumper"
+ DIR="/usr/share/locale"
+ self.RELEASE="v0.51"
- def help_dialog(self, widget):
- dialog = self.wTree.get_widget("help_dialog")
- dialog.run()
+ gettext.bindtextdomain(APP, DIR)
+ gettext.textdomain(APP)
- def help_close(self, widget):
- dialog = self.wTree.get_widget("help_dialog")
- dialog.hide()
+ # for the localisation of log file
+ self.user = user
- def about(self, widget):
- about_button = self.wTree.get_widget("about_button")
- about_button.set_sensitive(True)
- dialog = self.wTree.get_widget("about_dialog")
- resp = dialog.run()
- if resp:
- dialog.hide()
+ # define size of the selected device
+ self.deviceSize=0
+
+ # Operation running
+ 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\
+ If you say ok here, please <b>do not unplug</b>\
+ the device during the following operation.")
+ """
+ Init/Constructor for the 'widgets'
+ """
+ yui.YUI.app().setApplicationTitle(_("IsoDumper")+" "+self.RELEASE)
+ yui.YUI.app().setApplicationIcon("/usr/share/icons/isodumper.png")
+ self.atelier = yui.YUI.widgetFactory()
+ self.dialog = self.atelier.createPopupDialog()
+ # create the main gui
+ # +---+-----------------+
+ # + banner +
+ # +---+-----------------+
+ # | devicelist |
+ # +---+-----+------+----+
+ # + L | ima | writebt |
+ # +---+-----+------+----+
+ # + L | backup_select | backupbt |
+ # +---+-----+------+----+
+ # + F | formatbt |
+ # +----------------+----+
+ # | progress |
+ # +---------------------+
+ # | report |
+ # +---------------------+
+ # | refreshbt | aboutbt | helpbt | quitbt |
+ # +---------------------+
+ self.ancrage = self.atelier.createReplacePoint(self.dialog)
+ self.box = self.atelier.createVBox(self.ancrage)
+ self.bannerbox = self.atelier.createHBox(self.box)
+ self.banner=self.atelier.createImage(self.bannerbox,"/usr/share/isodumper/header.svg")
+ self.devicebox = self.atelier.createHBox(self.box)
+ self.devicebox.setWeight(1,10)
+ self.devicelist=self.atelier.createComboBox(self.devicebox,_("Device to work on:"),False)
+ self.devicelist.setNotify()
+ self.devicelist.setStretchable(0,True)
+ self.writebox = self.atelier.createHBox(self.box)
+ self.atelier.createLabel(self.writebox,_("Write Image:"))
+ # add file picker for image file
+ self.ima=self.atelier.createPushButton(self.writebox,self.ChooseImage)
+ self.ima.setStretchable(0,True)
+ self.ima.setDisabled()
+ self.atelier.createHStretch(self.writebox)
+ self.writebt = self.atelier.createPushButton(self.writebox, _("&Write to device" ))
+ self.writebt.setDisabled()
+ self.backupbox = self.atelier.createHBox(self.box)
+ self.atelier.createLabel(self.backupbox,_("Backup to:"))
+ # add file picker for backup file name
+ self.backup_select=self.atelier.createPushButton(self.backupbox,self.ChooseImage)
+ self.backup_select.setStretchable(0,True)
+ self.backup_select.setDisabled()
+ self.atelier.createHStretch(self.backupbox)
+ self.backupbt = self.atelier.createPushButton(self.backupbox, _("&Backup the device" ))
+ self.backupbt.setDisabled()
+ self.formatbox = self.atelier.createHBox(self.box)
+ #self.formatbox.setWeight(1,10)
+ self.atelier.createLabel(self.formatbox,_("Format the device in FAT, NTFS or ext:"))
+ self.atelier.createHStretch(self.formatbox)
+ self.formatbt = self.atelier.createPushButton(self.formatbox, _("&Format the device" ))
+ self.formatbt.setDisabled()
+ self.progressbox = self.atelier.createHBox(self.box)
+ self.progressbox.setWeight(1,10)
+ self.progress = self.atelier.createProgressBar(self.progressbox,_("Progression"),100)
+ self.progress.setStretchable(0,True)
+ self.reportbox = self.atelier.createHBox(self.box)
+ #self.reportbox.setWeight(1,10)
+ self.logview = self.atelier.createLogView(self.reportbox,_("Report"), 10)
+ self.logview.setStretchable(0,True)
+ #self.reportbox.setWeight(1,20)
+ self.buttonsbox = self.atelier.createHBox(self.box)
+ #self.buttonsbox.setWeight(1,10)
+ self.refreshbt = self.atelier.createPushButton(self.buttonsbox, _("&Refresh" ))
+ self.refreshbt.setStretchable(0,True)
+ self.aboutbt = self.atelier.createPushButton(self.buttonsbox, _("&About" ))
+ self.aboutbt.setStretchable(0,True)
+ self.helpbt = self.atelier.createPushButton(self.buttonsbox, _("&Help" ))
+ self.helpbt.setStretchable(0,True)
+ self.quitbt = self.atelier.createPushButton(self.buttonsbox, _("&Quit" ))
+ self.quitbt.setStretchable(0,True)
+ self.u = None
+ try:
+ self.u = UDisks2()
+ except :
+ message = _('UDisks2 is not available on your system')
+ self.logger(message)
+ self.emergency(message)
+ if not self.get_devices():
+ self.dialog.destroy()
+ self.device_selected()
+ self.dialog.recalcLayout()
+ self.ancrage.showChild()
+
+ def ask_format(self):
+ self.ima.setDisabled()
+ self.formatbt.setDisabled()
+ self.backup_select.setDisabled()
+ self.writebt.setDisabled()
+ self.devicelist.setDisabled()
+ atelier = yui.YUI.widgetFactory()
+ dialog = atelier.createPopupDialog()
+# dialog.setTitle(_("Choose format"))
+ vb=atelier.createVBox(dialog)
+ label = atelier.createInputField(vb,_("Label for the device:"))
+ cr = atelier.createRadioButtonGroup(vb)
+ vb_c = atelier.createVBox(cr)
+ vb_c1 = atelier.createHBox(vb_c)
+ format_fat = atelier.createRadioButton(atelier.createLeft(vb_c1),_("FAT 32 (Windows)"))
+ vb_c2 = atelier.createHBox(vb_c)
+ format_ntfs = atelier.createRadioButton(atelier.createLeft(vb_c2),_("NTFS (Windows)"))
+ vb_c3 = atelier.createHBox(vb_c)
+ format_ext = atelier.createRadioButton(atelier.createLeft(vb_c3),_("ext4 (Linux)"))
+ bb = atelier.createHBox(vb)
+ executebt = atelier.createPushButton(bb,_("Execute"))
+ cancelbt = atelier.createPushButton(bb,_("Cancel"))
+ dialog.open()
+ returncode = True
+ while True:
+ event = dialog.waitForEvent()
+ if event.eventType() == yui.YEvent.CancelEvent:
+ returncode = False
+ break
+ if event.widget() == executebt:
+ if format_fat.value():
+ format_type = 'fat32'
+ format_label = label.value().upper()[:11]
+ break
+ if format_ntfs.value():
+ format_type = 'ntfs'
+ format_label = label.value()[:32]
+ break
+ if format_ext.value():
+ format_type = 'ext4'
+ format_label = label.value()
+ break
+ if event.widget() == cancelbt:
+ self.restore()
+ returncode = False
+ break
+ dialog.destroy()
+ if returncode:
+ return True,format_type,format_label
+ else:
+ return False," "," "
+
+
+ def ask_OK(self, info):
+ yui.YUI.widgetFactory
+ mgafactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
+ dlg = mgafactory.createDialogBox(yui.YMGAMessageBox.B_ONE)
+ dlg.setTitle(info.title)
+ dlg.setText(info.text, info.richtext)
+ dlg.setButtonLabel("OK", yui.YMGAMessageBox.B_ONE)
+ dlg.setMinSize(60, 10);
+ return dlg.show() == yui.YMGAMessageBox.B_ONE
+
+ def ask_YesOrNo(self, info):
+ yui.YUI.widgetFactory
+ mgafactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
+ dlg = mgafactory.createDialogBox(yui.YMGAMessageBox.B_TWO)
+ dlg.setTitle(info.title)
+ dlg.setText(info.text, info.richtext)
+ dlg.setButtonLabel("Yes", yui.YMGAMessageBox.B_ONE)
+ dlg.setButtonLabel("No", yui.YMGAMessageBox.B_TWO)
+ dlg.setMinSize(60, 8);
+ return dlg.show() == yui.YMGAMessageBox.B_ONE
+
+ def aboutDialog(self):
+ yui.YUI.widgetFactory;
+ mgafactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
+ dlg = mgafactory.createAboutDialog("Isodumper", self.RELEASE, "GPLv2",
+ "Oliver Grawert<BR />Papoteur<BR />Pictures : Thimotée Giet", _("A tool for writing ISO images to a device"), "")
+ dlg.show();
+
+ def nodevDialog(self):
+ yui.YUI.widgetFactory
+ 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.setButtonLabel(_("&Refresh"), yui.YMGAMessageBox.B_ONE)
+ dlg.setButtonLabel(_("Cancel"), yui.YMGAMessageBox.B_TWO)
+ dlg.setMinSize(60, 8);
+ return dlg.show() == yui.YMGAMessageBox.B_ONE
+
+ def handleevent(self):
+ self.traitement=None
+ while True:
+ event = self.dialog.waitForEvent()
+ if event.eventType() == yui.YEvent.CancelEvent:
+ self.close()
+ break
+ if event.widget() == self.quitbt:
+ self.close()
+ break
+ if event.widget() == self.ima:
+ self.img_name=yui.YUI.app().askForExistingFile('file:///home/'+self.user,"*.iso *.img","Choose an image")
+ self.ima.setLabel(self.img_name)
+ self.writebt.setEnabled()
+ self.activate_devicelist()
+ if event.widget() == self.writebt:
+ self.wip_unsensitive()
+ self.do_write()
+ self.restore()
+ if event.widget() == self.backupbt:
+ self.wip_unsensitive()
+ self.backup_go()
+ self.restore()
+ if event.widget() == self.backup_select:
+ self.backup_img_name=yui.YUI.app().askForSaveFileName('file:///home/'+self.user,"*.img","Backup to:")
+ if self.backup_img_name != '':
+ self.backup_choosed()
+ if event.widget() == self.formatbt:
+ self.wip_unsensitive()
+ code,format_type,name = self.ask_format()
+ if code:
+ self.do_format(format_type,name)
+ self.restore()
+ if event.widget() == self.devicelist:
+ self.device_selected()
+ try:
+ if event.widget() == self.refreshbt:
+ self.update_list()
+ except:
+ pass
+ try:
+ if event.widget() == self.helpbt:
+ self.help_dialog()
+ except:
+ pass
+ try:
+ if event.widget() == self.quitbt:
+ self.confirm_close()
+ except:
+ pass
+ if event.widget() == self.aboutbt:
+ self.aboutDialog()
if __name__ == "__main__":
import sys
user=sys.argv[1]
app = IsoDumper(user)
- gtk.main()
+ app.handleevent()
+
+
diff --git a/lib/raw_format.py b/lib/raw_format.py
index b634470..0cce0e9 100755
--- a/lib/raw_format.py
+++ b/lib/raw_format.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# imported from project Mintstick, by Clement Lefebvre
# https://github.com/linuxmint/mintstick/
@@ -24,7 +24,7 @@
import os, sys
import getopt
-import parted
+
from subprocess import call
sys.path.append('/usr/lib/isodumper')
@@ -32,22 +32,22 @@ sys.path.append('/usr/lib/isodumper')
def do_umount(target):
mounts = get_mounted(target)
if mounts:
- print 'Unmounting all partitions of '+target+':'
+ print('Unmounting all partitions of '+target+':')
for mount in mounts:
- print 'Trying to unmount '+mount[0]+'...'
+ print('Trying to unmount '+mount[0]+'...')
try:
retcode = call('umount '+mount[0], shell=True)
if retcode < 0:
- print 'Error, umount '+mount[0]+' was terminated by signal '+str(retcode)
+ print('Error, umount '+mount[0]+' was terminated by signal '+str(retcode))
sys.exit(6)
else:
if retcode == 0:
- print mount[0]+' successfully unmounted'
+ print(mount[0]+' successfully unmounted')
else:
- print 'Error, umount '+mount[0]+' returned '+str(retcode)
+ print('Error, umount '+mount[0]+' returned '+str(retcode))
sys.exit(6)
- except OSError, e:
- print 'Execution failed: '+str(e)
+ except OSError as e:
+ print('Execution failed: '+str(e))
sys.exit(6)
@@ -56,11 +56,11 @@ def get_mounted(target):
lines = [line.strip("\n").split(" ") for line in open ("/etc/mtab", "r").readlines()]
return [mount for mount in lines if mount[0].startswith(target)]
except:
- print 'Could not read mtab !'
+ print('Could not read mtab !')
sys.exit(6)
def raw_format(device_path, fstype, volume_label, uid, gid):
-
+ import parted
do_umount(device_path)
# First erase MBR and partition table , if any
@@ -74,7 +74,7 @@ def raw_format(device_path, fstype, volume_label, uid, gid):
disk.commit()
except:
# Unable to write the new partition
- print "Can't create partition. The device could be read-only."
+ print("Can't create partition. The device could be read-only.")
sys.exit(5)
regions = disk.getFreeSpaceRegions()
@@ -93,7 +93,7 @@ def raw_format(device_path, fstype, volume_label, uid, gid):
try:
geometry = parted.Geometry(device=device, start=start, end=end)
except:
- print "Geometry error - Can't create partition"
+ print("Geometry error - Can't create partition")
sys.exit(5)
# fstype
@@ -122,26 +122,26 @@ def main():
# parse command line options
try:
opts, args = getopt.getopt(sys.argv[1:], "hd:f:l:u:g:", ["help", "device=","filesystem=","label=","uid=","gid="])
- except getopt.error, msg:
- print msg
- print "for help use --help"
+ except getopt.error as msg:
+ print(msg)
+ print("for help use --help")
sys.exit(2)
for o, a in opts:
if o in ("-h", "--help"):
- print "Usage: %s -d device -f filesystem -l volume_label\n" % sys.argv[0]
- print "-d|--device : device path"
- print "-f|--filesystem : filesystem\n"
- print "-l|--label : volume label\n"
- print "-u|--uid : uid of user\n"
- print "-g|--gid : gid of user\n"
- print "Example : %s -d /dev/sdj -f fat32 -l \"USB Stick\" -u 1000 -g 1000" % sys.argv[0]
+ print("Usage: %s -d device -f filesystem -l volume_label\n" % sys.argv[0])
+ print("-d|--device : device path")
+ print("-f|--filesystem : filesystem\n")
+ print("-l|--label : volume label\n")
+ print("-u|--uid : uid of user\n")
+ print("-g|--gid : gid of user\n")
+ print("Example : %s -d /dev/sdj -f fat32 -l \"USB Stick\" -u 1000 -g 1000" % sys.argv[0])
sys.exit(0)
elif o in ("-d"):
device = a
elif o in ("-f"):
if a not in [ "fat32", "ntfs", "ext4" ]:
- print "Specify fat32, ntfs or ext4"
+ print("Specify fat32, ntfs or ext4")
sys.exit(3)
fstype = a
elif o in ("-l"):
@@ -153,8 +153,8 @@ def main():
argc = len(sys.argv)
if argc < 11:
- print "Too few arguments"
- print "for help use --help"
+ print("Too few arguments")
+ print("for help use --help")
exit(2)
raw_format(device, fstype, label, uid, gid)
diff --git a/mpan/categories.conf.d/isodumper.conf b/mpan/categories.conf.d/isodumper.conf
new file mode 100644
index 0000000..b0b19f7
--- /dev/null
+++ b/mpan/categories.conf.d/isodumper.conf
@@ -0,0 +1,12 @@
+<?xml version='1.0'?>
+<categories>
+ <category>
+ <title>System</title>
+ <module>
+ <title>Isodumper</title>
+ <launcher>/usr/bin/isodumper</launcher>
+ <icon>/usr/share/icons/hicolor/64x64/apps/isodumper.png</icon>
+ </module>
+ </category>
+</categories>
+
diff --git a/po/isodumper.pot b/po/isodumper.pot
index 7cf1bc9..e4c2ebb 100644
--- a/po/isodumper.pot
+++ b/po/isodumper.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: isodumper 0.45\n"
+"Project-Id-Version: isodumper 0.51\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-03-06 16:41+0100\n"
+"POT-Creation-Date: 2016-07-18 08:04+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,351 +17,332 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: lib/isodumper.py:91
+#: lib/isodumper.py:123
#, python-format
msgid "%r not known to UDisks2"
msgstr ""
-#: lib/isodumper.py:211
-msgid "UDisks2 is not available on your system"
-msgstr ""
-
-#: lib/isodumper.py:234
+#: lib/isodumper.py:190
msgid "Mb"
msgstr ""
-#: lib/isodumper.py:251 lib/isodumper.py:415
+#: lib/isodumper.py:210
msgid "Target Device: "
msgstr ""
-#: lib/isodumper.py:275
-msgid "Backup in: "
+#: lib/isodumper.py:232
+msgid "Backup to: "
+msgstr ""
+
+#: lib/isodumper.py:236
+msgid "Formatting confirmation"
msgstr ""
-#: lib/isodumper.py:313
+#: lib/isodumper.py:241
msgid "The device was formatted successfully."
msgstr ""
-#: lib/isodumper.py:317
+#: lib/isodumper.py:245
msgid "An error occurred while creating a partition."
msgstr ""
-#: lib/isodumper.py:321
+#: lib/isodumper.py:249
msgid "Authentication error."
msgstr ""
-#: lib/isodumper.py:325
+#: lib/isodumper.py:253
msgid "An error occurred."
msgstr ""
-#: lib/isodumper.py:389
+#: lib/isodumper.py:290
+msgid "Backup confirmation"
+msgstr ""
+
+#: lib/isodumper.py:290
+msgid "Do you want to overwrite the file?"
+msgstr ""
+
+#: lib/isodumper.py:298
#, python-format
msgid ""
"The destination directory is too small to receive the backup (%s Mb needed)"
msgstr ""
-#: lib/isodumper.py:394 share/isodumper/isodumper.glade.h:50
-msgid "Backup in:"
+#: lib/isodumper.py:304 lib/isodumper.py:666
+msgid "Backup to:"
msgstr ""
-#: lib/isodumper.py:418
+#: lib/isodumper.py:324
msgid "The device is too small to contain the ISO file."
msgstr ""
-#: lib/isodumper.py:425
+#: lib/isodumper.py:328
+msgid "Writing confirmation"
+msgstr ""
+
+#: lib/isodumper.py:331
msgid "The device is bigger than 32 Gbytes. Are you sure you want use it?"
msgstr ""
-#: lib/isodumper.py:462
+#: lib/isodumper.py:331 lib/isodumper.py:508
+msgid "Warning"
+msgstr ""
+
+#: lib/isodumper.py:356
msgid "Unmounting all partitions of "
msgstr ""
-#: lib/isodumper.py:464
+#: lib/isodumper.py:358
msgid "Trying to unmount "
msgstr ""
-#: lib/isodumper.py:470
+#: lib/isodumper.py:362
#, python-format
msgid "Partition %s is busy"
msgstr ""
-#: lib/isodumper.py:474
+#: lib/isodumper.py:366
msgid " was terminated by signal "
msgstr ""
-#: lib/isodumper.py:474 lib/isodumper.py:479
+#: lib/isodumper.py:366 lib/isodumper.py:372
msgid "Error, umount "
msgstr ""
-#: lib/isodumper.py:477
+#: lib/isodumper.py:370
msgid " successfully unmounted"
msgstr ""
-#: lib/isodumper.py:479
+#: lib/isodumper.py:372
msgid " returned "
msgstr ""
-#: lib/isodumper.py:482
+#: lib/isodumper.py:376
msgid "Execution failed: "
msgstr ""
-#: lib/isodumper.py:490
+#: lib/isodumper.py:385
msgid "Could not read mtab !"
msgstr ""
-#: lib/isodumper.py:500 lib/isodumper.py:529
+#: lib/isodumper.py:395 lib/isodumper.py:422
msgid "Reading error."
msgstr ""
-#: lib/isodumper.py:507
-msgid "You have not the rights for writing on the device"
+#: lib/isodumper.py:403
+msgid "You don't have permission to write to the device"
msgstr ""
-#: lib/isodumper.py:513 lib/isodumper.py:514
+#: lib/isodumper.py:408 lib/isodumper.py:409
msgid " to "
msgstr ""
-#: lib/isodumper.py:513
+#: lib/isodumper.py:408
msgid "Writing "
msgstr ""
-#: lib/isodumper.py:514
+#: lib/isodumper.py:409
msgid "Executing copy from "
msgstr ""
-#: lib/isodumper.py:535 lib/isodumper.py:551 lib/isodumper.py:561
+#: lib/isodumper.py:429 lib/isodumper.py:443 lib/isodumper.py:453
msgid "Writing error."
msgstr ""
-#: lib/isodumper.py:541
+#: lib/isodumper.py:436
msgid "Wrote: "
msgstr ""
-#: lib/isodumper.py:556
+#: lib/isodumper.py:448
msgid " successfully written to "
msgstr ""
-#: lib/isodumper.py:556 lib/isodumper.py:685
+#: lib/isodumper.py:448 lib/isodumper.py:567
msgid "Image "
msgstr ""
-#: lib/isodumper.py:557
+#: lib/isodumper.py:449
msgid "Bytes written: "
msgstr ""
-#: lib/isodumper.py:570
+#: lib/isodumper.py:461
msgid "Checking "
msgstr ""
-#: lib/isodumper.py:597
+#: lib/isodumper.py:486
msgid "SHA1 sum: "
msgstr ""
-#: lib/isodumper.py:598
+#: lib/isodumper.py:487
msgid "MD5 sum: "
msgstr ""
-#: polkit/org.mageia.isodumper.policy.in.h:1
-msgid "Run Isodumper"
-msgstr ""
-
-#: polkit/org.mageia.isodumper.policy.in.h:2
-msgid "Authentication is required to run Isodumper"
-msgstr ""
-
-#: share/applications/isodumper.desktop.in.h:1
-#: share/isodumper/isodumper.glade.h:1
-msgid "IsoDumper"
-msgstr ""
-
-#: share/applications/isodumper.desktop.in.h:2
-msgid "A GUI tool to write .img and .iso files to USB Keys"
+#: lib/isodumper.py:496
+msgid "Success"
msgstr ""
-#: share/isodumper/isodumper.glade.h:2
+#: lib/isodumper.py:496
msgid ""
-"Writing is in progress. Exiting during writing will occur that the device or "
-"the backup will be unusable.\n"
-"Are you sure you want to quit during writing?"
+"The operation completed successfully.\n"
+" You are free to unplug it now, a logfile \n"
+"(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n"
+" you close the application."
msgstr ""
-#: share/isodumper/isodumper.glade.h:4
+#: lib/isodumper.py:508
msgid ""
-"A tool for writing ISO images on a USB stick. It's a fork of usb-imagewriter."
-msgstr ""
-
-#: share/isodumper/isodumper.glade.h:5
-msgid "Select"
+"Writing is in progress. Exiting during writing \n"
+" will make the device or the backup unusable.\n"
+" Are you sure you want to quit during writing?"
msgstr ""
-#: share/isodumper/isodumper.glade.h:6
-msgid ""
-"<b>Warning</b>\n"
-" This will <b>destroy all data</b> on the target\n"
-" device, are you sure you want to proceed ?\n"
-"\n"
-" If you say ok here, please <b>do not unplug</b>\n"
-" the device during the following operation."
+#: lib/isodumper.py:520
+msgid "Error"
msgstr ""
-#: share/isodumper/isodumper.glade.h:12
-msgid "Do you want to overwrite the file?"
+#: lib/isodumper.py:571 lib/isodumper.py:625
+msgid "IsoDumper"
msgstr ""
-#: share/isodumper/isodumper.glade.h:13
+#: lib/isodumper.py:571
+msgid ""
+"Mageia IsoDumper<BR />----------------<BR />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 theentire 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 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 "
+"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.<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, NTFS or ext. You can specify a "
+"volume name and the format in a new dialog box.<BR />"
+msgstr ""
+
+#: lib/isodumper.py:617
+msgid "Choose an image"
+msgstr ""
+
+#: lib/isodumper.py:618
msgid ""
-"<b>Error</b>\n"
-" Something went wrong, please see the details\n"
-" window for the exact error.\n"
-"\n"
-" The application will be closed with this window, and a logfile\n"
-" (/home/-user- or /root)/.isodumper/isodumper.log will be saved."
+"Warning\n"
+"This will destroy all data on the target device,\n"
+" are you sure you want to proceed?\n"
+" If you say ok here, please <b>do not unplug</b> the device "
+"during the following operation."
msgstr ""
-#: share/isodumper/isodumper.glade.h:19
-msgid "Label for the device:"
+#: lib/isodumper.py:653
+msgid "Device to work on:"
msgstr ""
-#: share/isodumper/isodumper.glade.h:20
-msgid "FAT 32 (Windows)"
+#: lib/isodumper.py:657
+msgid "Write Image:"
msgstr ""
-#: share/isodumper/isodumper.glade.h:21
-msgid "The standard. The size of files are limited to 4Gb"
+#: lib/isodumper.py:663
+msgid "&Write to device"
msgstr ""
-#: share/isodumper/isodumper.glade.h:22
-msgid "NTFS (Windows)"
+#: lib/isodumper.py:672
+msgid "&Backup the device"
msgstr ""
-#: share/isodumper/isodumper.glade.h:23
-msgid "To handle files bigger than 4Gb"
+#: lib/isodumper.py:676
+msgid "Format the device in FAT, NTFS or ext:"
msgstr ""
-#: share/isodumper/isodumper.glade.h:24
-msgid "ext4 (Linux)"
+#: lib/isodumper.py:678
+msgid "&Format the device"
msgstr ""
-#: share/isodumper/isodumper.glade.h:25
-msgid "Only for Linux systems"
+#: lib/isodumper.py:682
+msgid "Progression"
msgstr ""
-#: share/isodumper/isodumper.glade.h:26
-msgid "Isodumper - Help"
+#: lib/isodumper.py:686
+msgid "Report"
msgstr ""
-#: share/isodumper/isodumper.glade.h:27
-msgid ""
-"Mageia IsoDumper\n"
-"----------------\n"
-"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.\n"
-"\n"
-"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).\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. If a flash drive backup was requested, this is done first. Then "
-"(or only) the image file write. Each operation is shown in the progress bar "
-"beneath.\n"
-"- Backup in: 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.\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, NTFS or ext. You can specify a volume name and the "
-"format in a new dialog box.\n"
-"- Details: this button shows detailed log information.\n"
-"\n"
-msgstr ""
-
-#: share/isodumper/isodumper.glade.h:43
-msgid "Device to work on:"
+#: lib/isodumper.py:691 lib/isodumper.py:799
+msgid "&Refresh"
msgstr ""
-#: share/isodumper/isodumper.glade.h:44
-msgid "Select target device to write the image to"
+#: lib/isodumper.py:693
+msgid "&About"
msgstr ""
-#: share/isodumper/isodumper.glade.h:45
-msgid "Write Image:"
+#: lib/isodumper.py:695
+msgid "&Help"
msgstr ""
-#: share/isodumper/isodumper.glade.h:46
-msgid "Select an image file to be written to the device"
+#: lib/isodumper.py:697
+msgid "&Quit"
msgstr ""
-#: share/isodumper/isodumper.glade.h:47
-msgid "Select Image"
+#: lib/isodumper.py:703
+msgid "UDisks2 is not available on your system"
msgstr ""
-#: share/isodumper/isodumper.glade.h:48
-msgid "Write to device"
+#: lib/isodumper.py:722
+msgid "Label for the device:"
msgstr ""
-#: share/isodumper/isodumper.glade.h:49
-msgid "Create a backup of the device as image to restore it later"
+#: lib/isodumper.py:726
+msgid "FAT 32 (Windows)"
msgstr ""
-#: share/isodumper/isodumper.glade.h:52
-msgid "(None)"
+#: lib/isodumper.py:728
+msgid "NTFS (Windows)"
msgstr ""
-#: share/isodumper/isodumper.glade.h:53
-msgid "Select a folder in which to write the backup image"
+#: lib/isodumper.py:730
+msgid "ext4 (Linux)"
msgstr ""
-#: share/isodumper/isodumper.glade.h:54
-msgid "Backup the device"
+#: lib/isodumper.py:732
+msgid "Execute"
msgstr ""
-#: share/isodumper/isodumper.glade.h:55
-msgid "Format the device in FAT, NTFS or ext:"
+#: lib/isodumper.py:733 lib/isodumper.py:800
+msgid "Cancel"
msgstr ""
-#: share/isodumper/isodumper.glade.h:56
-msgid "Choose the format. The device will be formatted in one partition"
+#: lib/isodumper.py:790
+msgid "A tool for writing ISO images to a device"
msgstr ""
-#: share/isodumper/isodumper.glade.h:57
-msgid "Format the device"
+#: lib/isodumper.py:798
+msgid ""
+"Warning\n"
+"No target devices were found.\n"
+"You need to plug in a USB Key to which the image can be written."
msgstr ""
-#: share/isodumper/isodumper.glade.h:58
-msgid "Details"
+#: polkit/org.mageia.isodumper.policy.in.h:1
+msgid "Run Isodumper"
msgstr ""
-#: share/isodumper/isodumper.glade.h:59
-msgid ""
-"<b>Warning</b>\n"
-" No target devices were found. \n"
-"\n"
-" You need to plug in a USB Key\n"
-" to which the image can be written."
+#: polkit/org.mageia.isodumper.policy.in.h:2
+msgid "Authentication is required to run Isodumper"
msgstr ""
-#: share/isodumper/isodumper.glade.h:64
-msgid ""
-"<b>Success</b>\n"
-" The operation was successfully performed.\n"
-" \n"
-" You are free to unplug it now, a logfile\n"
-" (/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n"
-" you close the application."
+#: share/applications/isodumper.desktop.in.h:1
+msgid "A GUI tool to write .img and .iso files to USB sticks"
msgstr ""
diff --git a/po/ms.po b/po/ms.po
new file mode 100644
index 0000000..2537758
--- /dev/null
+++ b/po/ms.po
@@ -0,0 +1,350 @@
+# Malay translation for isodumper package.
+# Copyright (C) 2013 THE isodumper'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the isodumper package.
+# Automatically generated, 2013.
+# Fiz Amzari O <saturnV76@gmail.com>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: isodumper\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-09 20:37+0200\n"
+"PO-Revision-Date: 2008-12-28 16:46+0000\n"
+"Last-Translator: Fizaril <saturnV76@gmail.com>\n"
+"Language-Team: Malay <ms@li.org>\n"
+"Language: ms\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2009-06-12 12:08+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#: lib/isodumper.py:123
+#, python-format
+msgid "%r not known to UDisks2"
+msgstr ""
+
+#: lib/isodumper.py:190
+msgid "Mb"
+msgstr ""
+
+#: lib/isodumper.py:210
+msgid "Target Device: "
+msgstr ""
+
+#: lib/isodumper.py:232
+msgid "Backup to: "
+msgstr ""
+
+#: lib/isodumper.py:236
+msgid "Formatting confirmation"
+msgstr ""
+
+#: lib/isodumper.py:241
+msgid "The device was formatted successfully."
+msgstr ""
+
+#: lib/isodumper.py:245
+msgid "An error occurred while creating a partition."
+msgstr ""
+
+#: lib/isodumper.py:249
+msgid "Authentication error."
+msgstr ""
+
+#: lib/isodumper.py:253
+msgid "An error occurred."
+msgstr ""
+
+#: lib/isodumper.py:290
+msgid "Backup confirmation"
+msgstr ""
+
+#: lib/isodumper.py:290
+msgid "Do you want to overwrite the file?"
+msgstr ""
+
+#: lib/isodumper.py:298
+#, python-format
+msgid ""
+"The destination directory is too small to receive the backup (%s Mb needed)"
+msgstr ""
+
+#: lib/isodumper.py:304 lib/isodumper.py:666
+msgid "Backup to:"
+msgstr ""
+
+#: lib/isodumper.py:324
+msgid "The device is too small to contain the ISO file."
+msgstr ""
+
+#: lib/isodumper.py:328
+msgid "Writing confirmation"
+msgstr ""
+
+#: lib/isodumper.py:331
+msgid "The device is bigger than 32 Gbytes. Are you sure you want use it?"
+msgstr ""
+
+#: lib/isodumper.py:331 lib/isodumper.py:508
+msgid "Warning"
+msgstr ""
+
+#: lib/isodumper.py:356
+msgid "Unmounting all partitions of "
+msgstr ""
+
+#: lib/isodumper.py:358
+msgid "Trying to unmount "
+msgstr ""
+
+#: lib/isodumper.py:362
+#, python-format
+msgid "Partition %s is busy"
+msgstr ""
+
+#: lib/isodumper.py:366
+msgid " was terminated by signal "
+msgstr ""
+
+#: lib/isodumper.py:366 lib/isodumper.py:372
+msgid "Error, umount "
+msgstr ""
+
+#: lib/isodumper.py:370
+msgid " successfully unmounted"
+msgstr ""
+
+#: lib/isodumper.py:372
+msgid " returned "
+msgstr ""
+
+#: lib/isodumper.py:376
+msgid "Execution failed: "
+msgstr ""
+
+#: lib/isodumper.py:385
+msgid "Could not read mtab !"
+msgstr ""
+
+#: lib/isodumper.py:395 lib/isodumper.py:422
+msgid "Reading error."
+msgstr ""
+
+#: lib/isodumper.py:403
+msgid "You don't have permission to write to the device"
+msgstr ""
+
+#: lib/isodumper.py:408 lib/isodumper.py:409
+msgid " to "
+msgstr ""
+
+#: lib/isodumper.py:408
+msgid "Writing "
+msgstr ""
+
+#: lib/isodumper.py:409
+msgid "Executing copy from "
+msgstr ""
+
+#: lib/isodumper.py:429 lib/isodumper.py:443 lib/isodumper.py:453
+msgid "Writing error."
+msgstr ""
+
+#: lib/isodumper.py:436
+msgid "Wrote: "
+msgstr ""
+
+#: lib/isodumper.py:448
+msgid " successfully written to "
+msgstr ""
+
+#: lib/isodumper.py:448 lib/isodumper.py:567
+msgid "Image "
+msgstr ""
+
+#: lib/isodumper.py:449
+msgid "Bytes written: "
+msgstr ""
+
+#: lib/isodumper.py:461
+msgid "Checking "
+msgstr ""
+
+#: lib/isodumper.py:486
+msgid "SHA1 sum: "
+msgstr ""
+
+#: lib/isodumper.py:487
+msgid "MD5 sum: "
+msgstr ""
+
+#: lib/isodumper.py:496
+msgid "Success"
+msgstr ""
+
+#: lib/isodumper.py:496
+msgid ""
+"The operation completed successfully.\n"
+" You are free to unplug it now, a logfile \n"
+"(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n"
+" you close the application."
+msgstr ""
+
+#: lib/isodumper.py:508
+msgid ""
+"Writing is in progress. Exiting during writing \n"
+" will make the device or the backup unusable.\n"
+" Are you sure you want to quit during writing?"
+msgstr ""
+
+#: lib/isodumper.py:520
+msgid "Error"
+msgstr ""
+
+#: lib/isodumper.py:571 lib/isodumper.py:625
+msgid "IsoDumper"
+msgstr ""
+
+#: lib/isodumper.py:571
+msgid ""
+"Mageia IsoDumper<BR />----------------<BR />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 theentire 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 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 "
+"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.<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, NTFS or ext. You can specify a "
+"volume name and the format in a new dialog box.<BR />"
+msgstr ""
+
+#: lib/isodumper.py:617
+msgid "Choose an image"
+msgstr ""
+
+#: lib/isodumper.py:618
+msgid ""
+"Warning\n"
+"This will destroy all data on the target device,\n"
+" are you sure you want to proceed?\n"
+" If you say ok here, please <b>do not unplug</b> the device "
+"during the following operation."
+msgstr ""
+
+#: lib/isodumper.py:653
+msgid "Device to work on:"
+msgstr ""
+
+#: lib/isodumper.py:657
+msgid "Write Image:"
+msgstr ""
+
+#: lib/isodumper.py:663
+msgid "&Write to device"
+msgstr ""
+
+#: lib/isodumper.py:672
+msgid "&Backup the device"
+msgstr ""
+
+#: lib/isodumper.py:676
+msgid "Format the device in FAT, NTFS or ext:"
+msgstr ""
+
+#: lib/isodumper.py:678
+msgid "&Format the device"
+msgstr ""
+
+#: lib/isodumper.py:682
+msgid "Progression"
+msgstr ""
+
+#: lib/isodumper.py:686
+msgid "Report"
+msgstr ""
+
+#: lib/isodumper.py:691 lib/isodumper.py:799
+msgid "&Refresh"
+msgstr ""
+
+#: lib/isodumper.py:693
+msgid "&About"
+msgstr ""
+
+#: lib/isodumper.py:695
+msgid "&Help"
+msgstr ""
+
+#: lib/isodumper.py:697
+msgid "&Quit"
+msgstr ""
+
+#: lib/isodumper.py:703
+msgid "UDisks2 is not available on your system"
+msgstr ""
+
+#: lib/isodumper.py:722
+msgid "Label for the device:"
+msgstr ""
+
+#: lib/isodumper.py:726
+msgid "FAT 32 (Windows)"
+msgstr ""
+
+#: lib/isodumper.py:728
+msgid "NTFS (Windows)"
+msgstr ""
+
+#: lib/isodumper.py:730
+msgid "ext4 (Linux)"
+msgstr ""
+
+#: lib/isodumper.py:732
+msgid "Execute"
+msgstr ""
+
+#: lib/isodumper.py:733 lib/isodumper.py:800
+msgid "Cancel"
+msgstr ""
+
+#: lib/isodumper.py:790
+msgid "A tool for writing ISO images to a device"
+msgstr ""
+
+#: lib/isodumper.py:798
+msgid ""
+"Warning\n"
+"No target devices were found.\n"
+"You need to plug in a USB Key to which the image can be written."
+msgstr ""
+
+#: polkit/org.mageia.isodumper.policy.in.h:1
+msgid "Run Isodumper"
+msgstr ""
+
+#: polkit/org.mageia.isodumper.policy.in.h:2
+msgid "Authentication is required to run Isodumper"
+msgstr ""
+
+#: share/applications/isodumper.desktop.in.h:1
+msgid "A GUI tool to write .img and .iso files to USB sticks"
+msgstr ""
diff --git a/share/applications/isodumper.desktop b/share/applications/isodumper.desktop
new file mode 100644
index 0000000..5f43549
--- /dev/null
+++ b/share/applications/isodumper.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=IsoDumper
+Comment=A GUI tool to write .img and .iso files to USB sticks
+Exec=isodumper
+Icon=isodumper.png
+Type=Application
+Terminal=false
+Categories=System;
diff --git a/share/applications/isodumper.desktop.in b/share/applications/isodumper.desktop.in
index dbfa034..4f2327a 100644
--- a/share/applications/isodumper.desktop.in
+++ b/share/applications/isodumper.desktop.in
@@ -1,6 +1,6 @@
[Desktop Entry]
-_Name=IsoDumper
-_Comment=A GUI tool to write .img and .iso files to USB Keys
+Name=IsoDumper
+_Comment=A GUI tool to write .img and .iso files to USB sticks
Exec=isodumper
Icon=isodumper.png
Type=Application
diff --git a/share/isodumper/isodumper.glade b/share/isodumper/isodumper.glade
deleted file mode 100644
index 8759455..0000000
--- a/share/isodumper/isodumper.glade
+++ /dev/null
@@ -1,1723 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<glade-interface>
- <!-- interface-requires gtk+ 2.16 -->
- <!-- interface-naming-policy toplevel-contextual -->
- <widget class="GtkMessageDialog" id="Quit_warning">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <property name="message_type">warning</property>
- <property name="buttons">ok-cancel</property>
- <property name="text" translatable="yes">Writing is in progress. Exiting during writing will occur that the device or the backup will be unusable.
-Are you sure you want to quit during writing?</property>
- </widget>
- <widget class="GtkAboutDialog" id="about_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <property name="program_name">IsoDumper</property>
- <property name="copyright">© 2013-2015 Mageia</property>
- <property name="comments" translatable="yes">A tool for writing ISO images on a USB stick. It's a fork of usb-imagewriter.</property>
- <property name="website">http://gitweb.mageia.org/software/isodumper</property>
- <property name="website_label">IsoDumper</property>
- <property name="license"> GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- &lt;one line to give the program's name and a brief idea of what it does.&gt;
- Copyright (C) &lt;year&gt; &lt;name of author&gt;
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- &lt;signature of Ty Coon&gt;, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
-</property>
- <property name="authors">* Oliver Grawert
-
-* Papoteur &lt;papoteur@mageialinux-online.org&gt;
-
-* Clément Lefebvre
-
-* david.david &lt;david.david@mageialinux-online.org&gt;</property>
- <property name="translator_credits">* Papoteur, Guillaume Bernard, Eric Barbero, Rémi Verschelde, Antoine Dumondel - (French)
-* Sergei Zivukov, AlexL, Анатолий Валерианович, Valentin XliN Saikov - (Russian)
-* Yuri Chornoivan - (Ukrainian)
-* marja - (Dutch)
-* motitos, Miguel Ortega, Rodrigo Prieto, Egoitz Rodriguez Obieta - (Spanish)
-* Marcello Anni - Roberto Albano (Italian)
-* Atilla ÖNTAŞ, tarakbumba, Fırat Kutlu - (Turkish)
-* Filip Komar - (Slovenian)
-* Kristoffer Grundström, Michael Eklund - (Swedish)
-* You-Cheng Hsieh - Chinese (Taiwan)
-* Marcio Andre Padula - (Brazilian Portuguese)
-* Florin Cătălin RUSSEN - (Romanian)
-* kiki.syahadat - (Indonesian)
-* Daniel Napora, Tatsunoko - (Polish)
-* Oliver Grawert, Rémi Verschelde, Marc Lattemann, user7, Christian Ruesch, psyca - (German)
-* Marek Laane - (Estonian)
-* dtsiamasiotis, Dimitrios Glentadakis - (Greek)
-* fri, Jiří Vírava - (Czech)
-* Rémi Verschelde - (Danish)
-* Richard Shaylor, MrsB, Andi Chandler - English (United Kingdom))
-* Manuela Silva - (Portuguese)
-* Ḷḷumex03 - (Asturian)
-* Egoitz Rodriguez Obieta - (Basque)
-* Ardit Dani - (Albanian)
-* xiao wenming - (Simplified Chinese)
-* Cristian Garde Zarza, Davidmp - (Catalan)
-* Ivica Kolić - (Croatian)
-* Balzamon - Zoltan Siposs - (Hungarian)
-* Linuxero - (Arabic)
-* Milan Baša - (Slovak)
-</property>
- <property name="logo_icon_name">isodumper</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="choose">
- <property name="height_request">540</property>
- <property name="can_focus">False</property>
- <property name="no_show_all">True</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="select">
- <property name="label" translatable="yes">Select</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_select_clicked"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="choose_cancel">
- <property name="label">gtk-discard</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_choose_cancel_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkFileChooserWidget" id="bname">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="action">save</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="confirm_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="modal">True</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="confirm_cancel_button">
- <property name="label">gtk-cancel</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_confirm_cancel_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="confirm_ok_button">
- <property name="label">gtk-ok</property>
- <property name="response_id">1</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-dialog-warning</property>
- <property name="icon-size">6</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">&lt;b&gt;Warning&lt;/b&gt;
- This will &lt;b&gt;destroy all data&lt;/b&gt; on the target
- device, are you sure you want to proceed ?
-
- If you say ok here, please &lt;b&gt;do not unplug&lt;/b&gt;
- the device during the following operation.</property>
- <property name="use_markup">True</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkMessageDialog" id="confirm_overwrite">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="skip_taskbar_hint">True</property>
- <property name="transient_for">main_dialog</property>
- <property name="message_type">warning</property>
- <property name="buttons">ok-cancel</property>
- <property name="secondary_text" translatable="yes">Do you want to overwrite the file?</property>
- </widget>
- <widget class="GtkDialog" id="emergency_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="modal">True</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="emergency_button">
- <property name="label">gtk-ok</property>
- <property name="response_id">1</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_emergency_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox7">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-dialog-error</property>
- <property name="icon-size">6</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">&lt;b&gt;Error&lt;/b&gt;
- Something went wrong, please see the details
- window for the exact error.
-
- The application will be closed with this window, and a logfile
- (/home/-user- or /root)/.isodumper/isodumper.log will be saved.</property>
- <property name="use_markup">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="format">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="format_go">
- <property name="label">gtk-execute</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_format_go_clicked"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="format_cancel">
- <property name="label">gtk-undo</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_format_cancel_clicked"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkVBox" id="vbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkLabel" id="format_device">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label">label</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Label for the device:</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkEntry" id="format_name">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="width_chars">32</property>
- <property name="invisible_char_set">True</property>
- <property name="primary_icon_activatable">False</property>
- <property name="secondary_icon_activatable">False</property>
- <property name="primary_icon_sensitive">True</property>
- <property name="secondary_icon_sensitive">True</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkVButtonBox" id="vbuttonbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkRadioButton" id="format_fat">
- <property name="label" translatable="yes">FAT 32 (Windows)</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">The standard. The size of files are limited to 4Gb</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkRadioButton" id="format_ntfs">
- <property name="label" translatable="yes">NTFS (Windows)</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">To handle files bigger than 4Gb</property>
- <property name="draw_indicator">True</property>
- <property name="group">format_fat</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkRadioButton" id="format_ext4">
- <property name="label" translatable="yes">ext4 (Linux)</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">Only for Linux systems</property>
- <property name="draw_indicator">True</property>
- <property name="group">format_fat</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="help_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">Isodumper - Help</property>
- <property name="window_position">center-on-parent</property>
- <property name="default_width">500</property>
- <property name="default_height">300</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox13">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area13">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="help_close">
- <property name="label">gtk-close</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_help_close_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow1">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
- <property name="vscrollbar_policy">automatic</property>
- <child>
- <widget class="GtkTextView" id="textview1">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="pixels_above_lines">2</property>
- <property name="pixels_below_lines">2</property>
- <property name="editable">False</property>
- <property name="wrap_mode">word</property>
- <property name="left_margin">5</property>
- <property name="right_margin">5</property>
- <property name="text" translatable="yes">Mageia IsoDumper
-----------------
-This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive, an operation devious &amp; 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. If a flash drive backup was requested, this is done first. Then (or only) the image file write. Each operation is shown in the progress bar beneath.
-- Backup in: 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.
-- Details: this button shows detailed log information.
-
-</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkWindow" id="main_dialog">
- <property name="can_focus">False</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="window_position">center</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <signal name="delete_event" handler="on_main_dialog_delete_event"/>
- <child>
- <widget class="GtkVBox" id="vbox2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkEventBox" id="eventbox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="pixbuf">/usr/share/isodumper/header.png</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkVBox" id="vbox3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkHBox" id="hbox5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkLabel" id="to_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">Device to work on:</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkComboBox" id="device_combobox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="tooltip" translatable="yes">Select target device to write the image to</property>
- <property name="items" translatable="yes"/>
- <signal name="changed" handler="on_device_combobox_changed"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">10</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="homogeneous">True</property>
- <child>
- <widget class="GtkLabel" id="label2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">Write Image:</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkFileChooserButton" id="filechooserbutton">
- <property name="width_request">180</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">Select an image file to be written to the device</property>
- <property name="title" translatable="yes">Select Image</property>
- <signal name="file_set" handler="on_filechooserbutton_file_set"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="write_button">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_write_button_clicked"/>
- <child>
- <widget class="GtkHBox" id="hbox2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-execute</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Write to device</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">3</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">Create a backup of the device as image to restore it later</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">Backup in:</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="backup_select">
- <property name="label" translatable="yes" comments="Backup in: (None) &#10;At start.">(None)</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">Select a folder in which to write the backup image</property>
- <property name="image_position">right</property>
- <signal name="activate" handler="on_backup_select_activate"/>
- <signal name="clicked" handler="on_backup_select_clicked"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="backup_button">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_backup_button_clicked"/>
- <child>
- <widget class="GtkHBox" id="hbox6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-execute</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Backup the device</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">4</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">5</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">6</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox7">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">Format the device in FAT, NTFS or ext:</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="format_button">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip" translatable="yes">Choose the format. The device will be formatted in one partition</property>
- <signal name="clicked" handler="on_format_button_clicked"/>
- <child>
- <widget class="GtkHBox" id="hbox8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-execute</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Format the device</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">7</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">8</property>
- </packing>
- </child>
- <child>
- <widget class="GtkProgressBar" id="progressbar">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="show_text">True</property>
- <property name="text"> </property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">9</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHSeparator" id="hseparator2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">10</property>
- </packing>
- </child>
- <child>
- <widget class="GtkExpander" id="detail_expander">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">True</property>
- <signal name="activate" handler="on_detail_expander_activate"/>
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">never</property>
- <property name="vscrollbar_policy">automatic</property>
- <child>
- <widget class="GtkTextView" id="detail_text">
- <property name="height_request">100</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="wrap_mode">char</property>
- <property name="left_margin">5</property>
- <property name="cursor_visible">False</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkLabel" id="detail_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Details</property>
- </widget>
- <packing>
- <property name="type">label_item</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">11</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">0</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">4</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="update_button">
- <property name="label">gtk-refresh</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_update_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="about_button">
- <property name="label">gtk-about</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_about_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="help">
- <property name="label">gtk-help</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_help_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="cancel_button">
- <property name="label">gtk-close</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_cancel_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">3</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">5</property>
- <property name="position">2</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="nodev_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="modal">True</property>
- <property name="window_position">center-on-parent</property>
- <property name="destroy_with_parent">True</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="skip_taskbar_hint">True</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="nodev_close">
- <property name="label">gtk-close</property>
- <property name="response_id">2</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="retry">
- <property name="label">gtk-refresh</property>
- <property name="response_id">1</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_retry_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-dialog-warning</property>
- <property name="icon-size">6</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">&lt;b&gt;Warning&lt;/b&gt;
- No target devices were found.
-
- You need to plug in a USB Key
- to which the image can be written.</property>
- <property name="use_markup">True</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="GtkDialog" id="success_dialog">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="title" translatable="yes">IsoDumper</property>
- <property name="modal">True</property>
- <property name="window_position">center-on-parent</property>
- <property name="icon_name">isodumper</property>
- <property name="type_hint">dialog</property>
- <property name="transient_for">main_dialog</property>
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <widget class="GtkButton" id="success_button">
- <property name="label">gtk-ok</property>
- <property name="response_id">1</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="on_success_button_clicked"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <widget class="GtkImage" id="image5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="stock">gtk-dialog-info</property>
- <property name="icon-size">6</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="xpad">5</property>
- <property name="label" translatable="yes">&lt;b&gt;Success&lt;/b&gt;
- The operation was successfully performed.
-
- You are free to unplug it now, a logfile
- (/home/-user- or /root)/.isodumper/isodumper.log will be saved when
- you close the application.</property>
- <property name="use_markup">True</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</glade-interface>
diff --git a/tools/po-update.sh b/tools/po-update.sh
index 0c47e1b..1a6d747 100755
--- a/tools/po-update.sh
+++ b/tools/po-update.sh
@@ -10,10 +10,9 @@ fi
cd "$(readlink -f "$(dirname "$0")/..")"
-VERSION=(0.46)
+VERSION=(0.51)
DOMAIN=(isodumper)
-intltool-extract --type=gettext/glade share/isodumper/isodumper.glade
intltool-extract --type=gettext/xml polkit/org.mageia.isodumper.policy.in
intltool-extract --type=gettext/ini share/applications/isodumper.desktop.in
@@ -30,7 +29,6 @@ POT_FILE="$POT_DIR/$DOMAIN.pot"
--add-comments=I18N \
--output="$POT_FILE" \
lib/isodumper.py \
- share/isodumper/isodumper.glade.h \
polkit/org.mageia.isodumper.policy.in.h \
share/applications/isodumper.desktop.in.h
@@ -38,7 +36,6 @@ POT_FILE="$POT_DIR/$DOMAIN.pot"
intltool-merge --desktop-style po share/applications/isodumper.desktop.in share/applications/isodumper.desktop
-rm -f share/isodumper/isodumper.glade.h
rm -f polkit/org.mageia.isodumper.policy.in.h
rm -f share/applications/isodumper.desktop.in.h