- rc = newtWinOkCancel(title, _("No source drive could be found.\n\n"
- "You can try to download the required installation data. "
- "Please make sure to connect your machine to a network and "
- "the installer will try connect to acquire an IP address."),
- 55, 10, _("Download installation image"), _("Cancel"));
+ // Show the right message to the user
+ char reason[STRING_SIZE];
+ if (require_networking) {
+ snprintf(reason, sizeof(reason),
+ _("The installer will now try downloading the installation image."));
+ } else {
+ snprintf(reason, sizeof(reason),
+ _("No source drive could be found.\n\n"
+ "You can try downloading the required installation image."));
+ }
+ snprintf(message, sizeof(message), "%s %s", reason,
+ _("Please make sure to connect your machine to a network and "
+ "the installer will try connect to acquire an IP address."));
+
+ rc = newtWinOkCancel(title, message, 55, 12,
+ _("Download installation image"), _("Cancel"));