Merge lp:~xnox/usb-creator/wipeout into lp:usb-creator
- wipeout
- Merge into trunk
Proposed by
Dimitri John Ledkov
Status: | Superseded |
---|---|
Proposed branch: | lp:~xnox/usb-creator/wipeout |
Merge into: | lp:usb-creator |
Diff against target: |
646 lines (+155/-148) 3 files modified
bin/usb-creator-helper (+20/-9) po/usbcreator.pot (+135/-135) usbcreator/backends/udisks/backend.py (+0/-4) |
To merge this branch: | bzr merge lp:~xnox/usb-creator/wipeout |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Evan | Pending | ||
usb-creator hackers | Pending | ||
Review via email: mp+106590@code.launchpad.net |
This proposal has been superseded by a proposal from 2012-05-21.
Commit message
Description of the change
Merge a (modified) patch from bug #484252. This changes the format button to erase selected partition, instead of wiping the whole drive (potential data loss).
To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote : | # |
Unmerged revisions
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'bin/usb-creator-helper' |
2 | --- bin/usb-creator-helper 2012-05-04 10:43:38 +0000 |
3 | +++ bin/usb-creator-helper 2012-05-21 08:49:17 +0000 |
4 | @@ -214,18 +214,29 @@ |
5 | '/org/freedesktop/UDisks') |
6 | device = udisks.FindDeviceByDeviceFile(device, dbus_interface=DISKS_IFACE) |
7 | dev = bus.get_object(DISKS_IFACE, device) |
8 | - # Use the disk if asked to format a partition. |
9 | - if dev.Get(device, 'device-is-partition', dbus_interface=PROPS_IFACE): |
10 | - device = dev.Get(device, 'partition-slave', dbus_interface=PROPS_IFACE) |
11 | - dev = bus.get_object(DISKS_IFACE, device) |
12 | - dev_file = dev.Get(device, 'device-file', dbus_interface=PROPS_IFACE) |
13 | + |
14 | # TODO LOCK |
15 | unmount_all(device) |
16 | - size = dev.Get(device, 'device-size', dbus_interface=PROPS_IFACE) |
17 | - dev.PartitionTableCreate('mbr', [], dbus_interface=DEVICE_IFACE, timeout=600) |
18 | - dev.PartitionCreate(0, size, '0x0c', '', ['boot'], [], 'vfat', [], |
19 | - dbus_interface=DEVICE_IFACE) |
20 | + # Do NOT use the disk if asked to format a partition. |
21 | + # We still need to obtain the disk device name to zero out the MBR |
22 | + if dev.Get(device, 'device-is-partition', dbus_interface=PROPS_IFACE): |
23 | + # Create the partition |
24 | + dev.PartitionModify('0x0c', '', ['boot'], dbus_interface=DEVICE_IFACE) |
25 | + dev.FilesystemCreate('vfat', [], dbus_interface=DEVICE_IFACE) |
26 | + |
27 | + # Get the master device |
28 | + device = dev.Get(device, 'partition-slave', dbus_interface=PROPS_IFACE) |
29 | + dev = bus.get_object(DISKS_IFACE, device) |
30 | + else: |
31 | + # Create a new partition table and a FAT partition. |
32 | + size = dev.Get(device, 'device-size', dbus_interface=PROPS_IFACE) |
33 | + dev.PartitionTableCreate('mbr', [], dbus_interface=DEVICE_IFACE, |
34 | + timeout=600) |
35 | + dev.PartitionCreate(0, size, '0x0c', '', ['boot'], [], 'vfat', [], |
36 | + dbus_interface=DEVICE_IFACE) |
37 | + |
38 | # Zero out the MBR. Will require fancy privileges. |
39 | + dev_file = dev.Get(device, 'device-file', dbus_interface=PROPS_IFACE) |
40 | popen(['dd', 'if=/dev/zero', 'of=%s' % dev_file, 'bs=446', 'count=1']) |
41 | # TODO UNLOCK |
42 | |
43 | |
44 | === modified file 'po/usbcreator.pot' |
45 | --- po/usbcreator.pot 2011-05-19 16:58:02 +0000 |
46 | +++ po/usbcreator.pot 2012-05-21 08:49:17 +0000 |
47 | @@ -8,7 +8,7 @@ |
48 | msgstr "" |
49 | "Project-Id-Version: PACKAGE VERSION\n" |
50 | "Report-Msgid-Bugs-To: \n" |
51 | -"POT-Creation-Date: 2011-05-19 17:55+0100\n" |
52 | +"POT-Creation-Date: 2012-05-17 09:43+0100\n" |
53 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
54 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
55 | "Language-Team: LANGUAGE <LL@li.org>\n" |
56 | @@ -17,19 +17,19 @@ |
57 | "Content-Type: text/plain; charset=UTF-8\n" |
58 | "Content-Transfer-Encoding: 8bit\n" |
59 | |
60 | -#: .././usbcreator/install.py:133 |
61 | +#: .././usbcreator/install.py:138 |
62 | #, python-format |
63 | msgid "The extension \"%s\" is not supported." |
64 | msgstr "" |
65 | |
66 | -#: .././usbcreator/install.py:148 |
67 | +#: .././usbcreator/install.py:153 |
68 | #, python-format |
69 | msgid "" |
70 | "An uncaught exception was raised:\n" |
71 | "%s" |
72 | msgstr "" |
73 | |
74 | -#: .././usbcreator/install.py:164 |
75 | +#: .././usbcreator/install.py:169 |
76 | #, python-format |
77 | msgid "" |
78 | "Insufficient free space to write the image:\n" |
79 | @@ -38,48 +38,48 @@ |
80 | "(%d MB) > %s (%d MB)" |
81 | msgstr "" |
82 | |
83 | -#: .././usbcreator/install.py:191 |
84 | +#: .././usbcreator/install.py:222 |
85 | msgid "Installing the bootloader..." |
86 | msgstr "" |
87 | |
88 | -#: .././usbcreator/install.py:192 |
89 | +#: .././usbcreator/install.py:223 |
90 | msgid "Failed to install the bootloader." |
91 | msgstr "" |
92 | |
93 | -#: .././usbcreator/install.py:221 |
94 | +#: .././usbcreator/install.py:253 |
95 | msgid "Modifying configuration..." |
96 | msgstr "" |
97 | |
98 | #. Failure here probably means the source was not really an Ubuntu |
99 | #. image and did not have the files we wanted to move, see |
100 | #. <https://bugs.launchpad.net/launchpad-code/+bug/513432> |
101 | -#: .././usbcreator/install.py:232 |
102 | +#: .././usbcreator/install.py:264 |
103 | #, python-format |
104 | msgid "" |
105 | "Could not move syslinux files in \"%s\": %s. Maybe \"%s\" is not an Ubuntu " |
106 | "image?" |
107 | msgstr "" |
108 | |
109 | -#: .././usbcreator/install.py:324 |
110 | +#: .././usbcreator/install.py:335 |
111 | msgid "Creating a persistence file..." |
112 | msgstr "" |
113 | |
114 | -#: .././usbcreator/install.py:327 |
115 | +#: .././usbcreator/install.py:338 |
116 | msgid "Creating an ext2 filesystem in the persistence file..." |
117 | msgstr "" |
118 | |
119 | -#: .././usbcreator/install.py:339 |
120 | +#: .././usbcreator/install.py:350 |
121 | msgid "Finishing..." |
122 | msgstr "" |
123 | |
124 | #. TODO evand 2009-09-02: Disabled until we can find a cross-platform |
125 | #. way of determining dd progress. |
126 | #. self.initialize_progress_thread() |
127 | -#: .././usbcreator/install.py:362 |
128 | +#: .././usbcreator/install.py:373 |
129 | msgid "Writing disk image..." |
130 | msgstr "" |
131 | |
132 | -#: .././usbcreator/install.py:363 |
133 | +#: .././usbcreator/install.py:374 |
134 | #, python-format |
135 | msgid "Could not write the disk image (%s) to the device (%s)." |
136 | msgstr "" |
137 | @@ -87,23 +87,23 @@ |
138 | #. Clear. |
139 | #. Some of the code in this function was copied from Ubiquity's |
140 | #. scripts/install.py |
141 | -#: .././usbcreator/install.py:404 .././usbcreator/install.py:517 |
142 | +#: .././usbcreator/install.py:415 .././usbcreator/install.py:528 |
143 | msgid "Removing files..." |
144 | msgstr "" |
145 | |
146 | -#: .././usbcreator/install.py:435 .././usbcreator/install.py:540 |
147 | +#: .././usbcreator/install.py:446 .././usbcreator/install.py:551 |
148 | msgid "Copying files..." |
149 | msgstr "" |
150 | |
151 | -#: .././usbcreator/install.py:464 |
152 | +#: .././usbcreator/install.py:475 |
153 | msgid "md5 checksums do not match." |
154 | msgstr "" |
155 | |
156 | -#: .././usbcreator/install.py:493 |
157 | +#: .././usbcreator/install.py:504 |
158 | msgid "Installing the EFI bootloader..." |
159 | msgstr "" |
160 | |
161 | -#: .././usbcreator/install.py:494 |
162 | +#: .././usbcreator/install.py:505 |
163 | msgid "Failed to install the EFI bootloader." |
164 | msgstr "" |
165 | |
166 | @@ -112,73 +112,73 @@ |
167 | #. user the option of selecting the re-inserted disk |
168 | #. from a drop down list and continuing. |
169 | #. TODO evand 2009-07-23: Fail more gracefully. |
170 | -#: .././usbcreator/install.py:612 |
171 | +#: .././usbcreator/install.py:623 |
172 | #, python-format |
173 | msgid "Could not read from %s" |
174 | msgstr "" |
175 | |
176 | -#: .././usbcreator/install.py:637 |
177 | +#: .././usbcreator/install.py:648 |
178 | msgid "Checksums do not match. Retry?" |
179 | msgstr "" |
180 | |
181 | -#: .././usbcreator/install.py:641 |
182 | +#: .././usbcreator/install.py:652 |
183 | msgid "Checksums do not match." |
184 | msgstr "" |
185 | |
186 | -#: .././usbcreator/frontends/gtk/frontend.py:343 usbcreator-kde.ui.py:12 |
187 | +#: .././usbcreator/frontends/gtk/frontend.py:346 usbcreator-kde.ui.py:12 |
188 | msgid "CD-Drive/Image" |
189 | msgstr "" |
190 | |
191 | -#: .././usbcreator/frontends/gtk/frontend.py:356 |
192 | +#: .././usbcreator/frontends/gtk/frontend.py:359 |
193 | #: .././usbcreator/frontends/winui/main_dialog.py:28 usbcreator-kde.ui.py:15 |
194 | msgid "OS Version" |
195 | msgstr "" |
196 | |
197 | #. #-#-#-#-# usbcreator.pot (PACKAGE VERSION) #-#-#-#-# |
198 | #. encode to UTF-8 to work around GNOME #620579 |
199 | -#: .././usbcreator/frontends/gtk/frontend.py:367 |
200 | +#: .././usbcreator/frontends/gtk/frontend.py:370 |
201 | #: .././usbcreator/frontends/winui/main_dialog.py:29 usbcreator-kde.ui.py:18 |
202 | msgid "Size" |
203 | msgstr "" |
204 | |
205 | -#: .././usbcreator/frontends/gtk/frontend.py:440 |
206 | -#: .././usbcreator/frontends/kde/frontend.py:368 |
207 | -#: usbcreator/frontends/kde/frontend.py:368 |
208 | +#: .././usbcreator/frontends/gtk/frontend.py:442 |
209 | +#: .././usbcreator/frontends/kde/frontend.py:372 |
210 | +#: usbcreator/frontends/kde/frontend.py:372 |
211 | msgid "The device is not large enough to hold this image." |
212 | msgstr "" |
213 | |
214 | -#: .././usbcreator/frontends/gtk/frontend.py:442 |
215 | -#: .././usbcreator/frontends/kde/frontend.py:370 |
216 | -#: usbcreator/frontends/kde/frontend.py:370 |
217 | +#: .././usbcreator/frontends/gtk/frontend.py:444 |
218 | +#: .././usbcreator/frontends/kde/frontend.py:374 |
219 | +#: usbcreator/frontends/kde/frontend.py:374 |
220 | msgid "There is not enough free space for this image." |
221 | msgstr "" |
222 | |
223 | -#: .././usbcreator/frontends/gtk/frontend.py:474 |
224 | -#: .././usbcreator/frontends/gtk/frontend.py:739 |
225 | +#: .././usbcreator/frontends/gtk/frontend.py:476 |
226 | +#: .././usbcreator/frontends/gtk/frontend.py:745 |
227 | msgid "Erasing..." |
228 | msgstr "" |
229 | |
230 | -#: .././usbcreator/frontends/gtk/frontend.py:479 |
231 | -#: .././gui/usbcreator-gtk.ui.h:4 usbcreator-kde.ui.py:43 |
232 | +#: .././usbcreator/frontends/gtk/frontend.py:481 |
233 | +#: .././gui/usbcreator-gtk.ui.h:15 usbcreator-kde.ui.py:42 |
234 | msgid "Erase Disk" |
235 | msgstr "" |
236 | |
237 | -#: .././usbcreator/frontends/gtk/frontend.py:533 |
238 | +#: .././usbcreator/frontends/gtk/frontend.py:535 |
239 | #: .././usbcreator/frontends/winui/main_dialog.py:36 usbcreator-kde.ui.py:30 |
240 | msgid "Device" |
241 | msgstr "" |
242 | |
243 | -#: .././usbcreator/frontends/gtk/frontend.py:549 |
244 | +#: .././usbcreator/frontends/gtk/frontend.py:551 |
245 | #: .././usbcreator/frontends/winui/main_dialog.py:37 usbcreator-kde.ui.py:33 |
246 | msgid "Label" |
247 | msgstr "" |
248 | |
249 | -#: .././usbcreator/frontends/gtk/frontend.py:559 |
250 | +#: .././usbcreator/frontends/gtk/frontend.py:561 |
251 | #: .././usbcreator/frontends/winui/main_dialog.py:38 usbcreator-kde.ui.py:36 |
252 | msgid "Capacity" |
253 | msgstr "" |
254 | |
255 | -#: .././usbcreator/frontends/gtk/frontend.py:569 |
256 | +#: .././usbcreator/frontends/gtk/frontend.py:571 |
257 | #: .././usbcreator/frontends/winui/main_dialog.py:39 usbcreator-kde.ui.py:39 |
258 | msgid "Free Space" |
259 | msgstr "" |
260 | @@ -187,61 +187,61 @@ |
261 | #. TODO evand 2009-07-28: The list itself needs to be moved into the |
262 | #. base frontend. |
263 | #. To be displayed as a list of file type filters. |
264 | -#: .././usbcreator/frontends/gtk/frontend.py:581 |
265 | -#: .././usbcreator/frontends/winui/frontend.py:177 |
266 | -#: .././usbcreator/frontends/kde/frontend.py:406 |
267 | -#: usbcreator/frontends/kde/frontend.py:406 |
268 | +#: .././usbcreator/frontends/gtk/frontend.py:583 |
269 | +#: .././usbcreator/frontends/winui/frontend.py:181 |
270 | +#: .././usbcreator/frontends/kde/frontend.py:410 |
271 | +#: usbcreator/frontends/kde/frontend.py:410 |
272 | msgid "CD Images" |
273 | msgstr "" |
274 | |
275 | -#: .././usbcreator/frontends/gtk/frontend.py:581 |
276 | -#: .././usbcreator/frontends/winui/frontend.py:178 |
277 | -#: .././usbcreator/frontends/kde/frontend.py:406 |
278 | -#: usbcreator/frontends/kde/frontend.py:406 |
279 | +#: .././usbcreator/frontends/gtk/frontend.py:583 |
280 | +#: .././usbcreator/frontends/winui/frontend.py:182 |
281 | +#: .././usbcreator/frontends/kde/frontend.py:410 |
282 | +#: usbcreator/frontends/kde/frontend.py:410 |
283 | msgid "Disk Images" |
284 | msgstr "" |
285 | |
286 | #. TODO evand 2009-07-31: Make these the default values in the |
287 | #. GtkBuilder file. |
288 | -#: .././usbcreator/frontends/gtk/frontend.py:602 |
289 | +#: .././usbcreator/frontends/gtk/frontend.py:604 |
290 | #: .././usbcreator/frontends/winui/install_window.py:28 |
291 | msgid "Starting up..." |
292 | msgstr "" |
293 | |
294 | -#: .././usbcreator/frontends/gtk/frontend.py:629 |
295 | -#: .././usbcreator/frontends/winui/frontend.py:151 |
296 | -#, python-format |
297 | -msgid "%d%% complete (%dm%ss remaining)" |
298 | -msgstr "" |
299 | - |
300 | #: .././usbcreator/frontends/gtk/frontend.py:633 |
301 | #: .././usbcreator/frontends/winui/frontend.py:155 |
302 | #, python-format |
303 | +msgid "%d%% complete (%dm%ss remaining)" |
304 | +msgstr "" |
305 | + |
306 | +#: .././usbcreator/frontends/gtk/frontend.py:637 |
307 | +#: .././usbcreator/frontends/winui/frontend.py:159 |
308 | +#, python-format |
309 | msgid "%d%% complete" |
310 | msgstr "" |
311 | |
312 | #. #-#-#-#-# usbcreator.pot (PACKAGE VERSION) #-#-#-#-# |
313 | #. TODO evand 2009-07-28: Better error message. |
314 | -#: .././usbcreator/frontends/gtk/frontend.py:678 |
315 | -#: .././usbcreator/frontends/winui/frontend.py:85 |
316 | -#: .././usbcreator/frontends/kde/frontend.py:208 |
317 | -#: usbcreator/frontends/kde/frontend.py:208 |
318 | +#: .././usbcreator/frontends/gtk/frontend.py:683 |
319 | +#: .././usbcreator/frontends/winui/frontend.py:87 |
320 | +#: .././usbcreator/frontends/kde/frontend.py:211 |
321 | +#: usbcreator/frontends/kde/frontend.py:211 |
322 | msgid "Installation failed." |
323 | msgstr "" |
324 | |
325 | #. #-#-#-#-# usbcreator.pot (PACKAGE VERSION) #-#-#-#-# |
326 | #. TODO information about the device we're about to format. |
327 | -#: .././usbcreator/frontends/gtk/frontend.py:734 |
328 | -#: .././usbcreator/frontends/kde/frontend.py:515 |
329 | -#: usbcreator/frontends/kde/frontend.py:515 |
330 | +#: .././usbcreator/frontends/gtk/frontend.py:740 |
331 | +#: .././usbcreator/frontends/kde/frontend.py:519 |
332 | +#: usbcreator/frontends/kde/frontend.py:519 |
333 | msgid "Are you sure you want to erase the entire disk?" |
334 | msgstr "" |
335 | |
336 | #. #-#-#-#-# usbcreator.pot (PACKAGE VERSION) #-#-#-#-# |
337 | #. set title of progress window (same as gtk frontend) |
338 | #: .././usbcreator/frontends/winui/install_window.py:23 |
339 | -#: .././usbcreator/frontends/kde/frontend.py:180 |
340 | -#: .././gui/usbcreator-gtk.ui.h:9 usbcreator/frontends/kde/frontend.py:180 |
341 | +#: .././usbcreator/frontends/kde/frontend.py:183 |
342 | +#: .././gui/usbcreator-gtk.ui.h:7 usbcreator/frontends/kde/frontend.py:183 |
343 | msgid "Installing" |
344 | msgstr "" |
345 | |
346 | @@ -249,41 +249,41 @@ |
347 | msgid "&Cancel" |
348 | msgstr "" |
349 | |
350 | -#: .././usbcreator/frontends/winui/frontend.py:71 |
351 | -#: .././usbcreator/frontends/kde/frontend.py:458 |
352 | -#: usbcreator/frontends/kde/frontend.py:458 |
353 | +#: .././usbcreator/frontends/winui/frontend.py:73 |
354 | +#: .././usbcreator/frontends/kde/frontend.py:462 |
355 | +#: usbcreator/frontends/kde/frontend.py:462 |
356 | msgid "" |
357 | "The installation is complete. You may now reboot your computer with this " |
358 | "device inserted to try or install Ubuntu." |
359 | msgstr "" |
360 | |
361 | -#: .././usbcreator/frontends/winui/frontend.py:74 |
362 | +#: .././usbcreator/frontends/winui/frontend.py:76 |
363 | msgid "Installation complete" |
364 | msgstr "" |
365 | |
366 | -#: .././usbcreator/frontends/winui/frontend.py:80 |
367 | +#: .././usbcreator/frontends/winui/frontend.py:82 |
368 | msgid "Installation failed" |
369 | msgstr "" |
370 | |
371 | -#: .././usbcreator/frontends/winui/frontend.py:179 |
372 | +#: .././usbcreator/frontends/winui/frontend.py:183 |
373 | msgid "All" |
374 | msgstr "" |
375 | |
376 | -#: .././usbcreator/frontends/winui/frontend.py:189 |
377 | +#: .././usbcreator/frontends/winui/frontend.py:193 |
378 | #: .././gui/usbcreator-gtk.ui.h:10 usbcreator-kde.ui.py:3 |
379 | -#: usbcreator-kde.ui.py:61 |
380 | +#: usbcreator-kde.ui.py:60 |
381 | msgid "Make Startup Disk" |
382 | msgstr "" |
383 | |
384 | #: .././usbcreator/frontends/winui/main_dialog.py:21 |
385 | -#: .././gui/usbcreator-gtk.ui.h:18 usbcreator-kde.ui.py:6 |
386 | +#: .././gui/usbcreator-gtk.ui.h:11 usbcreator-kde.ui.py:6 |
387 | msgid "" |
388 | "To try or install Ubuntu from a removable disk, it needs to be set up as a " |
389 | "startup disk." |
390 | msgstr "" |
391 | |
392 | #: .././usbcreator/frontends/winui/main_dialog.py:24 |
393 | -#: .././gui/usbcreator-gtk.ui.h:13 usbcreator-kde.ui.py:9 |
394 | +#: .././gui/usbcreator-gtk.ui.h:12 usbcreator-kde.ui.py:9 |
395 | msgid "Source disc image (.iso) or CD:" |
396 | msgstr "" |
397 | |
398 | @@ -292,7 +292,7 @@ |
399 | msgstr "" |
400 | |
401 | #: .././usbcreator/frontends/winui/main_dialog.py:32 |
402 | -#: .././gui/usbcreator-gtk.ui.h:11 usbcreator-kde.ui.py:24 |
403 | +#: .././gui/usbcreator-gtk.ui.h:13 usbcreator-kde.ui.py:24 |
404 | msgid "Other..." |
405 | msgstr "" |
406 | |
407 | @@ -301,7 +301,7 @@ |
408 | msgstr "" |
409 | |
410 | #: .././usbcreator/frontends/winui/main_dialog.py:42 |
411 | -#: .././gui/usbcreator-gtk.ui.h:19 usbcreator-kde.ui.py:46 |
412 | +#: .././gui/usbcreator-gtk.ui.h:16 usbcreator-kde.ui.py:45 |
413 | msgid "When starting up from this disk, documents and settings will be:" |
414 | msgstr "" |
415 | |
416 | @@ -310,16 +310,16 @@ |
417 | msgstr "" |
418 | |
419 | #: .././usbcreator/frontends/winui/main_dialog.py:46 |
420 | -#: .././gui/usbcreator-gtk.ui.h:5 usbcreator-kde.ui.py:52 |
421 | +#: .././gui/usbcreator-gtk.ui.h:18 usbcreator-kde.ui.py:51 |
422 | msgid "How much:" |
423 | msgstr "" |
424 | |
425 | #: .././usbcreator/frontends/winui/main_dialog.py:52 |
426 | -#: .././gui/usbcreator-gtk.ui.h:1 usbcreator-kde.ui.py:58 |
427 | +#: .././gui/usbcreator-gtk.ui.h:19 usbcreator-kde.ui.py:57 |
428 | msgid "Discarded on shutdown, unless you save them elsewhere" |
429 | msgstr "" |
430 | |
431 | -#: .././usbcreator/frontends/winui/main_dialog.py:56 usbcreator-kde.ui.py:64 |
432 | +#: .././usbcreator/frontends/winui/main_dialog.py:56 usbcreator-kde.ui.py:63 |
433 | msgid "Quit" |
434 | msgstr "" |
435 | |
436 | @@ -327,126 +327,126 @@ |
437 | msgid "Make startup disk" |
438 | msgstr "" |
439 | |
440 | -#: .././usbcreator/frontends/kde/frontend.py:373 |
441 | -#: usbcreator/frontends/kde/frontend.py:373 |
442 | +#: .././usbcreator/frontends/kde/frontend.py:377 |
443 | +#: usbcreator/frontends/kde/frontend.py:377 |
444 | msgid "The device needs to be formatted for use." |
445 | msgstr "" |
446 | |
447 | -#: .././usbcreator/frontends/kde/frontend.py:422 |
448 | -#: usbcreator/frontends/kde/frontend.py:422 |
449 | +#: .././usbcreator/frontends/kde/frontend.py:426 |
450 | +#: usbcreator/frontends/kde/frontend.py:426 |
451 | msgid "Starting up" |
452 | msgstr "" |
453 | |
454 | -#: .././usbcreator/frontends/kde/frontend.py:431 |
455 | -#: usbcreator/frontends/kde/frontend.py:431 |
456 | +#: .././usbcreator/frontends/kde/frontend.py:435 |
457 | +#: usbcreator/frontends/kde/frontend.py:435 |
458 | msgid "You must select both source image and target device first." |
459 | msgstr "" |
460 | |
461 | -#: .././usbcreator/frontends/kde/frontend.py:469 |
462 | -#: usbcreator/frontends/kde/frontend.py:469 |
463 | +#: .././usbcreator/frontends/kde/frontend.py:473 |
464 | +#: usbcreator/frontends/kde/frontend.py:473 |
465 | msgid "Retry?" |
466 | msgstr "" |
467 | |
468 | -#: .././usbcreator/frontends/kde/frontend.py:481 |
469 | -#: .././gui/usbcreator-gtk.ui.h:12 usbcreator/frontends/kde/frontend.py:481 |
470 | +#: .././usbcreator/frontends/kde/frontend.py:485 |
471 | +#: .././gui/usbcreator-gtk.ui.h:8 usbcreator/frontends/kde/frontend.py:485 |
472 | msgid "Quit the installation?" |
473 | msgstr "" |
474 | |
475 | -#: .././usbcreator/frontends/kde/frontend.py:482 |
476 | -#: .././gui/usbcreator-gtk.ui.h:3 usbcreator/frontends/kde/frontend.py:482 |
477 | +#: .././usbcreator/frontends/kde/frontend.py:486 |
478 | +#: .././gui/usbcreator-gtk.ui.h:9 usbcreator/frontends/kde/frontend.py:486 |
479 | msgid "Do you really want to quit the installation now?" |
480 | msgstr "" |
481 | |
482 | #: .././desktop/usb-creator-kde.desktop.in.h:1 |
483 | #: .././desktop/usb-creator-gtk.desktop.in.h:1 |
484 | -msgid "Create a startup disk using a CD or disc image" |
485 | +msgid "Startup Disk Creator" |
486 | msgstr "" |
487 | |
488 | #: .././desktop/usb-creator-kde.desktop.in.h:2 |
489 | #: .././desktop/usb-creator-gtk.desktop.in.h:2 |
490 | -msgid "Startup Disk Creator" |
491 | -msgstr "" |
492 | - |
493 | -#: .././gui/usbcreator-gtk.ui.h:2 usbcreator-kde.ui.py:27 |
494 | -msgid "Disk to use:" |
495 | +msgid "Create a startup disk using a CD or disc image" |
496 | +msgstr "" |
497 | + |
498 | +#: .././gui/usbcreator-gtk.ui.h:1 |
499 | +msgid "Installation Failed" |
500 | +msgstr "" |
501 | + |
502 | +#: .././gui/usbcreator-gtk.ui.h:2 |
503 | +msgid "" |
504 | +"The installation failed. Please see ~/.cache/usb-creator.log for more " |
505 | +"details.\n" |
506 | +msgstr "" |
507 | + |
508 | +#: .././gui/usbcreator-gtk.ui.h:4 |
509 | +msgid "Installation Complete" |
510 | +msgstr "" |
511 | + |
512 | +#: .././gui/usbcreator-gtk.ui.h:5 |
513 | +msgid "Test Disk" |
514 | msgstr "" |
515 | |
516 | #: .././gui/usbcreator-gtk.ui.h:6 |
517 | -msgid "Installation Complete" |
518 | -msgstr "" |
519 | - |
520 | -#: .././gui/usbcreator-gtk.ui.h:7 |
521 | -msgid "Installation Failed" |
522 | -msgstr "" |
523 | - |
524 | -#: .././gui/usbcreator-gtk.ui.h:8 |
525 | msgid "" |
526 | "Installation is complete. You may now run Ubuntu on other computers by " |
527 | "booting them with this drive inserted." |
528 | msgstr "" |
529 | |
530 | -#: .././gui/usbcreator-gtk.ui.h:14 usbcreator-kde.ui.py:49 |
531 | +#: .././gui/usbcreator-gtk.ui.h:14 usbcreator-kde.ui.py:27 |
532 | +msgid "Disk to use:" |
533 | +msgstr "" |
534 | + |
535 | +#: .././gui/usbcreator-gtk.ui.h:17 usbcreator-kde.ui.py:48 |
536 | msgid "Stored in reserved extra space" |
537 | msgstr "" |
538 | |
539 | -#: .././gui/usbcreator-gtk.ui.h:15 |
540 | -msgid "Test Disk" |
541 | -msgstr "" |
542 | - |
543 | -#: .././gui/usbcreator-gtk.ui.h:16 |
544 | -msgid "" |
545 | -"The installation failed. Please see ~/.cache/usb-creator.log for more " |
546 | -"details.\n" |
547 | -msgstr "" |
548 | - |
549 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:1 |
550 | -msgid "Format the device" |
551 | +msgid "Install the bootloader" |
552 | msgstr "" |
553 | |
554 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:2 |
555 | -msgid "Image the device" |
556 | +msgid "System policy prevents installing the bootloader" |
557 | msgstr "" |
558 | |
559 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:3 |
560 | -msgid "Install the bootloader" |
561 | +msgid "Format the device" |
562 | msgstr "" |
563 | |
564 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:4 |
565 | -msgid "Mount a device" |
566 | +msgid "System policy prevents formatting this device" |
567 | msgstr "" |
568 | |
569 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:5 |
570 | -msgid "System policy prevents formatting this device" |
571 | +msgid "Image the device" |
572 | msgstr "" |
573 | |
574 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:6 |
575 | -msgid "System policy prevents installing the bootloader" |
576 | +msgid "System policy prevents writing a disk image to this device" |
577 | msgstr "" |
578 | |
579 | #: .././dbus/com.ubuntu.usbcreator.policy.in.h:7 |
580 | +msgid "Mount a device" |
581 | +msgstr "" |
582 | + |
583 | +#: .././dbus/com.ubuntu.usbcreator.policy.in.h:8 |
584 | msgid "System policy prevents mounting" |
585 | msgstr "" |
586 | |
587 | -#: .././dbus/com.ubuntu.usbcreator.policy.in.h:8 |
588 | -msgid "System policy prevents writing a disk image to this device" |
589 | +#: .././main.py:37 |
590 | +msgid "Please run this program as an administrator to continue." |
591 | msgstr "" |
592 | |
593 | #: .././main.py:38 |
594 | -msgid "Please run this program as an administrator to continue." |
595 | -msgstr "" |
596 | - |
597 | -#: .././main.py:39 |
598 | msgid "Administrator privileges required" |
599 | msgstr "" |
600 | |
601 | +#: .././main.py:55 |
602 | +#, python-format |
603 | +msgid "" |
604 | +"An unhandled exception occurred:\n" |
605 | +"%s" |
606 | +msgstr "" |
607 | + |
608 | #: .././main.py:56 |
609 | -#, python-format |
610 | -msgid "" |
611 | -"An unhandled exception occurred:\n" |
612 | -"%s" |
613 | -msgstr "" |
614 | - |
615 | -#: .././main.py:57 |
616 | msgid "Error" |
617 | msgstr "" |
618 | |
619 | @@ -454,10 +454,10 @@ |
620 | msgid "Please insert a CD or select 'Other...'." |
621 | msgstr "" |
622 | |
623 | -#: usbcreator-kde.ui.py:55 |
624 | +#: usbcreator-kde.ui.py:54 |
625 | msgid "0.0 MB" |
626 | msgstr "" |
627 | |
628 | -#: usbcreator/frontends/kde/frontend.py:178 |
629 | +#: usbcreator/frontends/kde/frontend.py:181 |
630 | msgid "Cancel" |
631 | msgstr "" |
632 | |
633 | === modified file 'usbcreator/backends/udisks/backend.py' |
634 | --- usbcreator/backends/udisks/backend.py 2012-05-04 10:33:25 +0000 |
635 | +++ usbcreator/backends/udisks/backend.py 2012-05-21 08:49:17 +0000 |
636 | @@ -284,10 +284,6 @@ |
637 | try: |
638 | dk = self.bus.get_object(DISKS_IFACE, device) |
639 | dev = dk.Get(device, 'device-file', dbus_interface=PROPS_IFACE) |
640 | - if dk.Get(dev, 'device-is-partition', dbus_interface=PROPS_IFACE): |
641 | - dev = dk.Get(dev, 'partition-slave', dbus_interface=PROPS_IFACE) |
642 | - dk = self.bus.get_object(DISKS_IFACE, dev) |
643 | - dev = dk.Get(device, 'device-file', dbus_interface=PROPS_IFACE) |
644 | p = self.targets[device]['parent'] |
645 | if p and p in self.targets: |
646 | self.formatting.append(p) |
* tested formatting with multi partition usb-stick
* tested booting created bootable usb using multi partitioned usb-stick