HaikuDepot: Changed alert message for updating a rating

This commit is contained in:
Stephan Aßmus
2014-09-30 22:35:41 +02:00
parent 504501a9cb
commit bf62b1f845
+11 -3
View File
@@ -541,17 +541,25 @@ RatePackageWindow::_SendRatingThread()
alert->Go();
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);
} else {
_SetWorkerThread(-1);
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(
B_TRANSLATE("Success"),
B_TRANSLATE("Your rating was uploaded successfully. "
"You can update it at any time."),
message,
B_TRANSLATE("Close"));
if (alert != NULL)