diff --git a/application/diskpane.cpp b/application/diskpane.cpp index 2f9400d..dfc43e5 100644 --- a/application/diskpane.cpp +++ b/application/diskpane.cpp @@ -159,4 +159,5 @@ void DiskPane::on_checkButton_clicked() { } void DiskPane::on_deleteButton_clicked() { + DiskOperationManager::showDiskOperationUi(this->window(), DiskOperationManager::Delete, d->disk); } diff --git a/libthefrisbee/CMakeLists.txt b/libthefrisbee/CMakeLists.txt index b842934..f5320da 100644 --- a/libthefrisbee/CMakeLists.txt +++ b/libthefrisbee/CMakeLists.txt @@ -68,7 +68,8 @@ file(GLOB DRIVEOBJECT_HEADERS DriveObjects/*.h) set(HEADERS ${ROOT_HEADERS} ${DRIVEOBJECT_HEADERS} ${STRUCTURES_HEADERS}) -add_library(libthefrisbee SHARED ${SOURCES} ${HEADERS}) +add_library(libthefrisbee SHARED ${SOURCES} ${HEADERS} + operations/removelvpopover.h operations/removelvpopover.cpp operations/removelvpopover.ui) set_target_properties(libthefrisbee PROPERTIES CNTP_DATA_SUBDIR thefrisbee/libthefrisbee) cntp_init(libthefrisbee 20) diff --git a/libthefrisbee/DriveObjects/logicalvolume.cpp b/libthefrisbee/DriveObjects/logicalvolume.cpp index fb40a2b..415dc7b 100644 --- a/libthefrisbee/DriveObjects/logicalvolume.cpp +++ b/libthefrisbee/DriveObjects/logicalvolume.cpp @@ -1,8 +1,14 @@ #include "logicalvolume.h" #include "driveobjectmanager.h" +#include "frisbeeexception.h" +#include +#include +#include struct LogicalVolumePrivate { + QDBusObjectPath path; + QDBusObjectPath vg; QDBusObjectPath block; QString name; @@ -11,6 +17,7 @@ struct LogicalVolumePrivate { LogicalVolume::LogicalVolume(QDBusObjectPath path, QObject* parent) : UdisksInterface{path, interfaceName(), parent} { d = new LogicalVolumePrivate(); + d->path = path; bindPropertyUpdater("Name", [this](QVariant value) { d->name = value.toString(); @@ -42,3 +49,11 @@ VolumeGroup* LogicalVolume::vg() { DiskObject* LogicalVolume::block() { return DriveObjectManager::diskForPath(d->block); } + +QCoro::Task<> LogicalVolume::deleteLogicalVolume(QVariantMap options) { + QDBusMessage message = QDBusMessage::createMethodCall("org.freedesktop.UDisks2", d->path.path(), interfaceName(), "Delete"); + message.setArguments({options}); + auto call = QDBusConnection::systemBus().asyncCall(message); + auto reply = co_await call; + if (call.isError()) throw FrisbeeException(call.error().message()); +} diff --git a/libthefrisbee/DriveObjects/logicalvolume.h b/libthefrisbee/DriveObjects/logicalvolume.h index ae8f56f..ec52ed6 100644 --- a/libthefrisbee/DriveObjects/logicalvolume.h +++ b/libthefrisbee/DriveObjects/logicalvolume.h @@ -2,6 +2,7 @@ #define LOGICALVOLUME_H #include "udisksinterface.h" +#include struct LogicalVolumePrivate; class VolumeGroup; @@ -17,6 +18,8 @@ class LogicalVolume : public UdisksInterface { VolumeGroup* vg(); DiskObject* block(); + QCoro::Task<> deleteLogicalVolume(QVariantMap options); + private: LogicalVolumePrivate* d; }; diff --git a/libthefrisbee/diskoperationmanager.cpp b/libthefrisbee/diskoperationmanager.cpp index 2c5a900..f167513 100644 --- a/libthefrisbee/diskoperationmanager.cpp +++ b/libthefrisbee/diskoperationmanager.cpp @@ -21,6 +21,7 @@ #include "diskoperationmanager.h" #include +#include #include #include #include @@ -38,6 +39,7 @@ #include #include #include +#include #include struct OperationManagerPrivate { @@ -50,7 +52,8 @@ QMap OperationManagerPrivate::oper {DiskOperationManager::Image, "image" }, {DiskOperationManager::Restore, "restore" }, {DiskOperationManager::Partition, "partition"}, - {DiskOperationManager::AttachPv, "attachPv" } + {DiskOperationManager::AttachPv, "attachPv" }, + {DiskOperationManager::Delete, "delete" } }; QMap OperationManagerPrivate::operationDescriptions = { @@ -58,7 +61,8 @@ QMap OperationManagerPrivate::oper {DiskOperationManager::Image, DiskOperationManager::tr("Create an image of a block device") }, {DiskOperationManager::Restore, DiskOperationManager::tr("Restore an image back to a block device or disc")}, {DiskOperationManager::Partition, DiskOperationManager::tr("Edit partitions on a filesystem") }, - {DiskOperationManager::AttachPv, DiskOperationManager::tr("Attach a Physical Volume to a Volume Group") } + {DiskOperationManager::AttachPv, DiskOperationManager::tr("Attach a Physical Volume to a Volume Group") }, + {DiskOperationManager::AttachPv, DiskOperationManager::tr("Delete a volume") } }; DiskOperationManager::DiskOperation DiskOperationManager::operationForString(QString operationString) { @@ -93,6 +97,9 @@ void DiskOperationManager::showDiskOperationUi(QWidget* parent, DiskOperation op break; case DiskOperationManager::AttachPv: showAttachPvOperationUi(parent, disk); + break; + case DiskOperationManager::Delete: + showDeleteOperationUi(parent, disk); } } @@ -287,6 +294,23 @@ void DiskOperationManager::showAttachPvOperationUi(QWidget* parent, DiskObject* popover->show(parent->window()); } +void DiskOperationManager::showDeleteOperationUi(QWidget* parent, DiskObject* disk) { + if (disk->isInterfaceAvailable(DiskInterface::BlockLvm2)) { + auto blockLvm2 = disk->interface(); + auto pv = blockLvm2->logicalVolume(); + if (pv) { + auto* jp = new RemoveLvPopover(pv); + tPopover* popover = new tPopover(jp); + popover->setPopoverWidth(-200); + popover->setPopoverSide(tPopover::Bottom); + connect(jp, &RemoveLvPopover::done, popover, &tPopover::dismiss); + connect(popover, &tPopover::dismissed, popover, &tPopover::deleteLater); + connect(popover, &tPopover::dismissed, jp, &RemoveLvPopover::deleteLater); + popover->show(parent->window()); + } + } +} + bool DiskOperationManager::ensureOpticalUtilitiesInstalled(QWidget* parent) { if (QStandardPaths::findExecutable("cdrecord").isEmpty()) { QMessageBox* box = new QMessageBox(); diff --git a/libthefrisbee/diskoperationmanager.h b/libthefrisbee/diskoperationmanager.h index 66c507b..0628028 100644 --- a/libthefrisbee/diskoperationmanager.h +++ b/libthefrisbee/diskoperationmanager.h @@ -35,6 +35,7 @@ class LIBTHEFRISBEE_EXPORT DiskOperationManager : public QObject { Image, Partition, AttachPv, + Delete, LastOperation = Partition }; @@ -53,6 +54,7 @@ class LIBTHEFRISBEE_EXPORT DiskOperationManager : public QObject { static void showImageOperationUi(QWidget* parent, DiskObject* disk); static void showPartitionOperationUi(QWidget* parent, DiskObject* disk); static void showAttachPvOperationUi(QWidget* parent, DiskObject* disk); + static void showDeleteOperationUi(QWidget* parent, DiskObject* disk); }; #endif // DISKOPERATIONMANAGER_H diff --git a/libthefrisbee/operations/eraseopticalpopover.ui b/libthefrisbee/operations/eraseopticalpopover.ui index 193195d..a4c53bc 100644 --- a/libthefrisbee/operations/eraseopticalpopover.ui +++ b/libthefrisbee/operations/eraseopticalpopover.ui @@ -59,14 +59,9 @@ - - - - true - - + - ERASE OPTIONS + Erase Options @@ -226,6 +221,11 @@ backButtonClicked() + + tSubtitleLabel + QLabel +
tsubtitlelabel.h
+
diff --git a/libthefrisbee/operations/removelvpopover.cpp b/libthefrisbee/operations/removelvpopover.cpp new file mode 100644 index 0000000..2b0cba2 --- /dev/null +++ b/libthefrisbee/operations/removelvpopover.cpp @@ -0,0 +1,35 @@ +#include "removelvpopover.h" +#include "ui_removelvpopover.h" + +#include "DriveObjects/logicalvolume.h" +#include + +struct RemoveLvPopoverPrivate { + LogicalVolume* lv; +}; + +RemoveLvPopover::RemoveLvPopover(LogicalVolume* lv, QWidget* parent) : + QWidget(parent), + ui(new Ui::RemoveLvPopover) { + ui->setupUi(this); + d = new RemoveLvPopoverPrivate(); + d->lv = lv; + + new tContentSizer(ui->optionsWidget); + + ui->deleteButton->setProperty("type", "destructive"); +} + +RemoveLvPopover::~RemoveLvPopover() { + delete d; + delete ui; +} + +void RemoveLvPopover::on_titleLabel_backButtonClicked() { + emit done(); +} + +void RemoveLvPopover::on_deleteButton_clicked() { + d->lv->deleteLogicalVolume({}); + emit done(); +} diff --git a/libthefrisbee/operations/removelvpopover.h b/libthefrisbee/operations/removelvpopover.h new file mode 100644 index 0000000..e0a20ec --- /dev/null +++ b/libthefrisbee/operations/removelvpopover.h @@ -0,0 +1,32 @@ +#ifndef REMOVELVPOPOVER_H +#define REMOVELVPOPOVER_H + +#include + +namespace Ui { + class RemoveLvPopover; +} + +class LogicalVolume; +struct RemoveLvPopoverPrivate; +class RemoveLvPopover : public QWidget { + Q_OBJECT + + public: + explicit RemoveLvPopover(LogicalVolume* lv, QWidget* parent = nullptr); + ~RemoveLvPopover(); + + signals: + void done(); + + private slots: + void on_titleLabel_backButtonClicked(); + + void on_deleteButton_clicked(); + + private: + Ui::RemoveLvPopover* ui; + RemoveLvPopoverPrivate* d; +}; + +#endif // REMOVELVPOPOVER_H diff --git a/libthefrisbee/operations/removelvpopover.ui b/libthefrisbee/operations/removelvpopover.ui new file mode 100644 index 0000000..82c023d --- /dev/null +++ b/libthefrisbee/operations/removelvpopover.ui @@ -0,0 +1,102 @@ + + + RemoveLvPopover + + + + 0 + 0 + 689 + 483 + + + + Form + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Delete Logical Volume + + + + + + + + + + This is it! + + + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + + + + + Delete Logical Volume + + + + .. + + + + + + + + + + Qt::Vertical + + + + 20 + 378 + + + + + + + + + tTitleLabel + QLabel +
ttitlelabel.h
+ + backButtonClicked() + +
+ + tSubtitleLabel + QLabel +
tsubtitlelabel.h
+
+
+ + +
diff --git a/libthefrisbee/translations/cs.ts b/libthefrisbee/translations/cs.ts index 88e9155..bb22322 100644 --- a/libthefrisbee/translations/cs.ts +++ b/libthefrisbee/translations/cs.ts @@ -123,128 +123,133 @@ DiskOperationManager - + Erase a block device - + Create an image of a block device - + Restore an image back to a block device or disc - + Edit partitions on a filesystem - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media - + There is no media in the drive to erase. - + Disc already blank - + The disc in the drive is already blank. Do you still want to erase it? - + Disc not rewritable - + The disc in the drive is not rewritable. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. - + System Disk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. - + Disc not writable - + The disc in the drive is not writable. - + No Partition Table - + Erase the disk to create a partition table. - + Optical tools unavailable - + theFrisbee can't write to optical discs when installed as a Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. - + You'll need to install either cdrtools or cdrkit using your system's package manager. @@ -392,43 +397,43 @@ EraseOpticalPopover - + Erase Disc - - ERASE OPTIONS + + Erase Options - + Erase Type - + Quick - + Full - - + + Erase this disc - + THIS IS IT - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. @@ -962,6 +967,30 @@ We won't modify anything until you apply your changes. + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + RestoreDiskJob diff --git a/libthefrisbee/translations/cs_CZ.ts b/libthefrisbee/translations/cs_CZ.ts index 88e9155..bb22322 100644 --- a/libthefrisbee/translations/cs_CZ.ts +++ b/libthefrisbee/translations/cs_CZ.ts @@ -123,128 +123,133 @@ DiskOperationManager - + Erase a block device - + Create an image of a block device - + Restore an image back to a block device or disc - + Edit partitions on a filesystem - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media - + There is no media in the drive to erase. - + Disc already blank - + The disc in the drive is already blank. Do you still want to erase it? - + Disc not rewritable - + The disc in the drive is not rewritable. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. - + System Disk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. - + Disc not writable - + The disc in the drive is not writable. - + No Partition Table - + Erase the disk to create a partition table. - + Optical tools unavailable - + theFrisbee can't write to optical discs when installed as a Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. - + You'll need to install either cdrtools or cdrkit using your system's package manager. @@ -392,43 +397,43 @@ EraseOpticalPopover - + Erase Disc - - ERASE OPTIONS + + Erase Options - + Erase Type - + Quick - + Full - - + + Erase this disc - + THIS IS IT - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. @@ -962,6 +967,30 @@ We won't modify anything until you apply your changes. + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + RestoreDiskJob diff --git a/libthefrisbee/translations/da.ts b/libthefrisbee/translations/da.ts index ca7aa9d..e75e6cd 100644 --- a/libthefrisbee/translations/da.ts +++ b/libthefrisbee/translations/da.ts @@ -131,128 +131,133 @@ DiskOperationManager - + Erase a block device Formater en blokenhed - + Create an image of a block device Lav et snapshot af en blokenhed - + Restore an image back to a block device or disc Gendan et snapshot til en blokenhed eller disk - + Edit partitions on a filesystem Rediger partitioner på et filsystem - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media Ingen disk - + There is no media in the drive to erase. Der er ikke nogen disk i drevet at formatere. - + Disc already blank Disk allerede blank - + The disc in the drive is already blank. Do you still want to erase it? Disken i drevet er allerede blank. Ønsker du stadig at formatere den? - + Disc not rewritable Disk ikke skrivbar - + The disc in the drive is not rewritable. Disken i drevet er ikke skrivbar. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. Kun skrivbare diske kan formateres. Hvis du er nødt til at ødelægge dataene på disken, så burde du fysisk rive den i to. - + System Disk Systemdisk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? Dette er en systemdisk. Formatering af den kan forhindre din enhed i at fungere. Ønsker du stadig at formatere den? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. Der er ingen disk i drevet at gendanne til. - + Disc not writable Disk ikke skrivbar - + The disc in the drive is not writable. Disken i drevet er ikke skrivbar. - + No Partition Table Ingen partitionstabel - + Erase the disk to create a partition table. Formater disken for at lave en partitionstabel. - + Optical tools unavailable Optiske værktøjer utilgængelige - + theFrisbee can't write to optical discs when installed as a Flatpak. theFrisbee kan ikke skrive til optiske diske, da den er installeret med Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. Dit system har ikke de nødvendige programmer installeret til at skrive til optiske diske. - + You'll need to install either cdrtools or cdrkit using your system's package manager. Du er nødt til at installere enten cdrtools eller cdrkit med dit system's package manager. @@ -414,43 +419,47 @@ EraseOpticalPopover - + Erase Disc Formater disk - ERASE OPTIONS - FORMATERINGS-INSTILLINGER + FORMATERINGS-INSTILLINGER + + + + Erase Options + - + Erase Type Formateringstype - + Quick Hurtig - + Full Fuld - - + + Erase this disc Formater denne disk - + THIS IS IT SIDSTE CHANCE - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. Du kan ikke gå tilbage efter dette. Når disken i drevet er formateret, vil alle dataene på den være væk for evigt. @@ -1006,6 +1015,34 @@ Vi vil ikke ændre noget indtil du bekræfter dine ændringer. Er du sikker? + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. + Du kan ikke gå tilbage efter dette. Når disken i drevet er formateret, vil alle dataene på den være væk for evigt. + + RestoreDiskJob diff --git a/libthefrisbee/translations/de.ts b/libthefrisbee/translations/de.ts index 3b45d9a..46dae72 100644 --- a/libthefrisbee/translations/de.ts +++ b/libthefrisbee/translations/de.ts @@ -123,128 +123,133 @@ DiskOperationManager - + Erase a block device Ein Loopgerät löschen - + Create an image of a block device Image eines Blöckgerätes erstellen - + Restore an image back to a block device or disc Image auf einem Blockgerät wiederherstellen - + Edit partitions on a filesystem Partitionen auf einem Dateisystem bearbeiten - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media Keine Medien - + There is no media in the drive to erase. Es gibt keine zu löschenden Medien auf dem Gerät. - + Disc already blank - + The disc in the drive is already blank. Do you still want to erase it? - + Disc not rewritable - + The disc in the drive is not rewritable. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. - + System Disk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. - + Disc not writable - + The disc in the drive is not writable. - + No Partition Table - + Erase the disk to create a partition table. - + Optical tools unavailable - + theFrisbee can't write to optical discs when installed as a Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. - + You'll need to install either cdrtools or cdrkit using your system's package manager. @@ -392,43 +397,43 @@ EraseOpticalPopover - + Erase Disc - - ERASE OPTIONS + + Erase Options - + Erase Type - + Quick - + Full - - + + Erase this disc - + THIS IS IT - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. @@ -966,6 +971,30 @@ We won't modify anything until you apply your changes. + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + RestoreDiskJob diff --git a/libthefrisbee/translations/en_US.ts b/libthefrisbee/translations/en_US.ts index cd53c3c..588cff5 100644 --- a/libthefrisbee/translations/en_US.ts +++ b/libthefrisbee/translations/en_US.ts @@ -123,128 +123,133 @@ DiskOperationManager - + Erase a block device - + Create an image of a block device - + Restore an image back to a block device or disc - + Edit partitions on a filesystem - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media - + There is no media in the drive to erase. - + Disc already blank - + The disc in the drive is already blank. Do you still want to erase it? - + Disc not rewritable - + The disc in the drive is not rewritable. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. - + System Disk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. - + Disc not writable - + The disc in the drive is not writable. - + No Partition Table - + Erase the disk to create a partition table. - + Optical tools unavailable - + theFrisbee can't write to optical discs when installed as a Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. - + You'll need to install either cdrtools or cdrkit using your system's package manager. @@ -392,43 +397,43 @@ EraseOpticalPopover - + Erase Disc - - ERASE OPTIONS + + Erase Options - + Erase Type - + Quick - + Full - - + + Erase this disc - + THIS IS IT - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. @@ -962,6 +967,30 @@ We won't modify anything until you apply your changes. + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + RestoreDiskJob diff --git a/libthefrisbee/translations/he_IL.ts b/libthefrisbee/translations/he_IL.ts index 54419a4..94ae8f6 100644 --- a/libthefrisbee/translations/he_IL.ts +++ b/libthefrisbee/translations/he_IL.ts @@ -131,128 +131,133 @@ DiskOperationManager - + Erase a block device מחק התקן בלוק - + Create an image of a block device צור תמונה של התקן בלוק - + Restore an image back to a block device or disc שחזר תמונה חזרה להתקן בלוק או דיסק - + Edit partitions on a filesystem ערוך מחיצות במערכת קבצים - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media אין מדיה - + There is no media in the drive to erase. אין מדיה בכונן כדי למחוק - + Disc already blank דיסק כבר ריק - + The disc in the drive is already blank. Do you still want to erase it? הדיסק בכונן כבר ריק. עדיין למחוק אותו? - + Disc not rewritable דיסק לא ניתן לכתיבה מחדש - + The disc in the drive is not rewritable. הדיסק בכונן לא ניתן לכתיבה מחדש - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. ניתן למחוק רק דיסקים שניתנים לכתיבה מחדש. אם עליכם להשמיד את המידע על הדיסק, שברו אותו לשניים. - + System Disk דיסק מערכת - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? זהו דיסק מערכת. מחיקת דיסק זה יכול לגרום למכשיר זה להפסיק לעבוד. עדיין למחוק אותו? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. אין מדיה בכונן כדי לשחזר - + Disc not writable דיסק לא ניתן לכתיבה - + The disc in the drive is not writable. הדיסק בכונן לא ניתן לכתיבה - + No Partition Table אין טבלת מחיצות - + Erase the disk to create a partition table. מחק דיסק כדי ליצור טבלת מחיצות - + Optical tools unavailable כלים אופטיים אינם זמינים - + theFrisbee can't write to optical discs when installed as a Flatpak. theFrisbee לא יכול לכתוב בדיסקים אופטיים כאשר הוא מותקן כ-Flatpak - + Your system does not have the necessary tools installed to write to optical discs. למערכת שלך אין את הכלים הדרושים כדי לכתוב בדיסקים אופטיים. - + You'll need to install either cdrtools or cdrkit using your system's package manager. עליך להתקין cdrtools או cdrkit עם מנהל החבילות של המערכת שלך. @@ -414,43 +419,47 @@ EraseOpticalPopover - + Erase Disc מחק דיסק - ERASE OPTIONS - הגדרות מחיקה + הגדרות מחיקה - + + Erase Options + + + + Erase Type סוג מחיקה - + Quick מהיר - + Full מלא - - + + Erase this disc מחק דיסק זה - + THIS IS IT אין דרך חזרה - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. אי אפשר לחזור חזרה מזה. אחרי שהדיסק נמחק, כל המידע בתוכו נעלם לתמיד. @@ -1002,6 +1011,34 @@ We won't modify anything until you apply your changes. האם אתם מוכנים להחיל את השינויים לדיסק? + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. + אי אפשר לחזור חזרה מזה. אחרי שהדיסק נמחק, כל המידע בתוכו נעלם לתמיד. + + RestoreDiskJob diff --git a/libthefrisbee/translations/ru.ts b/libthefrisbee/translations/ru.ts index 22852ea..bf61a7e 100644 --- a/libthefrisbee/translations/ru.ts +++ b/libthefrisbee/translations/ru.ts @@ -123,128 +123,133 @@ DiskOperationManager - + Erase a block device - + Create an image of a block device - + Restore an image back to a block device or disc - + Edit partitions on a filesystem - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media - + There is no media in the drive to erase. - + Disc already blank - + The disc in the drive is already blank. Do you still want to erase it? - + Disc not rewritable - + The disc in the drive is not rewritable. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. - + System Disk - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. - + Disc not writable - + The disc in the drive is not writable. - + No Partition Table - + Erase the disk to create a partition table. - + Optical tools unavailable - + theFrisbee can't write to optical discs when installed as a Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. - + You'll need to install either cdrtools or cdrkit using your system's package manager. @@ -392,43 +397,43 @@ EraseOpticalPopover - + Erase Disc - - ERASE OPTIONS + + Erase Options - + Erase Type - + Quick - + Full - - + + Erase this disc - + THIS IS IT - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. @@ -970,6 +975,30 @@ We won't modify anything until you apply your changes. + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + RestoreDiskJob diff --git a/libthefrisbee/translations/vi_VN.ts b/libthefrisbee/translations/vi_VN.ts index c80e4b7..c080294 100644 --- a/libthefrisbee/translations/vi_VN.ts +++ b/libthefrisbee/translations/vi_VN.ts @@ -131,128 +131,133 @@ DiskOperationManager - + Erase a block device Xóa thiết bị khối - + Create an image of a block device Tạo ảnh đĩa cho thiết bị khối - + Restore an image back to a block device or disc Khôi phục ảnh đĩa vào thiết bị khối - + Edit partitions on a filesystem Sửa phân vùng - + Attach a Physical Volume to a Volume Group - - + + Delete a volume + + + + + No Media Không có phương tiện - + There is no media in the drive to erase. Không có phương tiện trong ổ để xóa. - + Disc already blank Đĩa đã tróng - + The disc in the drive is already blank. Do you still want to erase it? Đĩa trong ổ đã tróng. Bạn vấn còn muốn xóa nó không? - + Disc not rewritable Đĩa không thể ghi lại - + The disc in the drive is not rewritable. Đĩa trong ổ không có thể ghi lại được. - + Only rewritable discs can be erased. If you need to destroy the data on this disc, you should physically break it in half. Chúng tôi chỉ xóa được đĩa có thể ghi lại. Nếu bạn cần hủy dữ liệu trên đĩa, bạn mong muốn bẻ đôi. - + System Disk Đĩa hệ thống - + This is a system disk. Erasing it may cause your device to stop working altogether. Do you still want to erase it? Đĩa này là một đĩa hệ thống. Nếu bạn xóa nó, thiết bị này có thể bị hỏng. Bạn vẫn còn muốn xóa nó không? - + LVM - + This is a physical volume attached to an activated volume group. Erasing it may cause one or more logical volumes on the volume group to become unavailable permanently. Do you still want to erase it? - + There is no media in the drive to restore to. Không có phương tiện trong ổ để khôi phục vào. - + Disc not writable Đĩa không thể ghi - + The disc in the drive is not writable. Đĩa trong ổ không có thể ghi vào được. - + No Partition Table Không có bảng phân vùng - + Erase the disk to create a partition table. Xóa đĩa này để tạo ra một bảng phân vùng. - + Optical tools unavailable Tiện ích đĩa quang không có sẵn - + theFrisbee can't write to optical discs when installed as a Flatpak. theFrisbee không thể ghi vào đĩa quang khi cài như Flatpak. - + Your system does not have the necessary tools installed to write to optical discs. Hệ thống của bạn không có tiện ích cần để ghi đĩa quang. - + You'll need to install either cdrtools or cdrkit using your system's package manager. Bạn cần cài đặt cdrtools hoặc cdrkit sử dụng tiện ích quản lý gói của hệ thống của bạn. @@ -414,43 +419,47 @@ EraseOpticalPopover - + Erase Disc Xóa đĩa - ERASE OPTIONS - TÙY CHỌN XÓA + TÙY CHỌN XÓA - + + Erase Options + + + + Erase Type Kiểu xóa - + Quick Nhanh - + Full Hoàn toàn - - + + Erase this disc Xóa đĩa này - + THIS IS IT SẴN SÀNG CHƯA? - + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. Bạn không thể quay lại sau điểm này. Sau khi đĩa trong ổ bị xóa, các dữ liệu trên nó sẽ bị mất vĩnh viễn. @@ -998,6 +1007,34 @@ Chúng tôi sẽ không sửa đổi bất cứ điều gì cho đến khi bạn Bạn sẵn sàng áp dụng các thay đổi này vào đĩa không? + + RemoveLvPopover + + + Form + + + + + + Delete Logical Volume + + + + + This is it! + + + + + There's no going back after this. Once the logical volume is deleted, all the data on it will be gone forever. + + + + There's no going back after this. Once the disc in the drive is erased, all the data on it will be gone forever. + Bạn không thể quay lại sau điểm này. Sau khi đĩa trong ổ bị xóa, các dữ liệu trên nó sẽ bị mất vĩnh viễn. + + RestoreDiskJob