DriveSetup: Use clearer file dialog titles + button labels

It's a good idea to be more descriptive in those file dialogs'
window title and button labels. That way you can be sure the
file dialog does what you intended.
Esp. using "Write" for the button that starts writing an image
onto a volume.

Change-Id: I0ddb71aae1962d107b8d848d772541366c6bba36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10215
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Humdinger
2026-01-07 17:49:52 +00:00
committed by waddlesplash
parent b31ff5b650
commit a75b98ed11
+7
View File
@@ -529,6 +529,9 @@ MainWindow::MessageReceived(BMessage* message)
fRegisterFilePanel = new(std::nothrow) BFilePanel(B_OPEN_PANEL,
new BMessenger(this), NULL, B_FILE_NODE, false,
new BMessage(MSG_REGISTER), NULL, true);
fRegisterFilePanel->Window()->SetTitle(B_TRANSLATE(
"DriveSetup: Register disk image"));
fRegisterFilePanel->SetButtonLabel(B_DEFAULT_BUTTON, B_TRANSLATE("Register"));
}
if (fRegisterFilePanel != NULL)
@@ -566,6 +569,9 @@ MainWindow::MessageReceived(BMessage* message)
fWriteImageFilePanel = new(std::nothrow) BFilePanel(
B_OPEN_PANEL, new BMessenger(this), NULL, B_FILE_NODE,
false, new BMessage(MSG_WRITE), NULL, true);
fWriteImageFilePanel->Window()->SetTitle(B_TRANSLATE(
"DriveSetup: Select disk image"));
fWriteImageFilePanel->SetButtonLabel(B_DEFAULT_BUTTON, B_TRANSLATE("Write"));
}
if (fWriteImageFilePanel != NULL)
fWriteImageFilePanel->Show();
@@ -581,6 +587,7 @@ MainWindow::MessageReceived(BMessage* message)
fReadImageFilePanel = new(std::nothrow) BFilePanel(B_SAVE_PANEL,
new BMessenger(this), NULL, B_FILE_NODE, false, NULL, NULL,
true);
fReadImageFilePanel->Window()->SetTitle(B_TRANSLATE("DriveSetup: Save disk image"));
}
if (fReadImageFilePanel != NULL) {