HaikuDepot: Changed alert message for updating a rating
This commit is contained in:
@@ -541,17 +541,25 @@ RatePackageWindow::_SendRatingThread()
|
|||||||
alert->Go();
|
alert->Go();
|
||||||
|
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
B_TRANSLATE("Failed to create account: %s\n"), error.String());
|
B_TRANSLATE("Failed to create or update rating: %s\n"),
|
||||||
|
error.String());
|
||||||
|
|
||||||
_SetWorkerThread(-1);
|
_SetWorkerThread(-1);
|
||||||
} else {
|
} else {
|
||||||
_SetWorkerThread(-1);
|
_SetWorkerThread(-1);
|
||||||
BMessenger(this).SendMessage(B_QUIT_REQUESTED);
|
BMessenger(this).SendMessage(B_QUIT_REQUESTED);
|
||||||
|
|
||||||
|
BString message;
|
||||||
|
if (ratingID.Length() > 0) {
|
||||||
|
message = B_TRANSLATE("Your rating was updated successfully.");
|
||||||
|
} else {
|
||||||
|
message = B_TRANSLATE("Your rating was uploaded successfully. "
|
||||||
|
"You can update it at any time.");
|
||||||
|
}
|
||||||
|
|
||||||
BAlert* alert = new(std::nothrow) BAlert(
|
BAlert* alert = new(std::nothrow) BAlert(
|
||||||
B_TRANSLATE("Success"),
|
B_TRANSLATE("Success"),
|
||||||
B_TRANSLATE("Your rating was uploaded successfully. "
|
message,
|
||||||
"You can update it at any time."),
|
|
||||||
B_TRANSLATE("Close"));
|
B_TRANSLATE("Close"));
|
||||||
|
|
||||||
if (alert != NULL)
|
if (alert != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user