From 6e67cff8a04637ccbdc309dc6abaf84b19c6612a Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 22 Sep 2024 09:15:42 +0200 Subject: [PATCH] DriveSetup: Fixed incorrect quotes of partition names * _DisplayPartitionError() adds quotes to the partition name variable (%s). So when calling it, the passed string musn't have the variable in quotes already (\"%s\") or we'll end up with duplicate quotes. * Anywhere else we see a partition name variable, it should have quotes. This change fixes two places that didn't before. Change-Id: I37e806c9dceea3c2a2b52a7cb139d7c32e976d5c Reviewed-on: https://review.haiku-os.org/c/haiku/+/8353 Reviewed-by: waddlesplash Tested-by: Commit checker robot --- src/apps/drivesetup/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index d36a92ca31..5517d3dd54 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -990,7 +990,7 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition, } if (!found) { - _DisplayPartitionError(B_TRANSLATE("Disk system \"%s\" not found!")); + _DisplayPartitionError(B_TRANSLATE("Disk system %s not found!")); return; } @@ -1085,13 +1085,13 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition, if (partition->IsDevice()) { message = B_TRANSLATE("Are you sure you " "want to write the changes back to disk now?\n\n" - "All data on the disk %s will be irretrievably lost if you " + "All data on the disk \"%s\" will be irretrievably lost if you " "do so!"); message.ReplaceFirst("%s", previousName.String()); } else { message = B_TRANSLATE("Are you sure you " "want to write the changes back to disk now?\n\n" - "All data on the partition %s will be irretrievably lost if you " + "All data on the partition \"%s\" will be irretrievably lost if you " "do so!"); message.ReplaceFirst("%s", previousName.String()); }