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 <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user