HaikuDepot: Alert Naming

Change capitalization in the titles of alerts.  Change
alerts' warnings to avoid the word "Haiku".

Resolves #16117

Change-Id: Id9aacf83d7e8364a1e9b0bfa9a98532108f906e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2808
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Andrew Lindesay 2020-05-25 17:12:22 +12:00 committed by waddlesplash
parent 60d011e07f
commit 548467a97d

View File

@ -77,12 +77,12 @@ ServerHelper::AlertServerJsonRpcError(BMessage* responseEnvelopeMessage)
default:
alertText.SetToFormat(
B_TRANSLATE("An unexpected error has been sent from the"
" HaikuDepot server [%" B_PRIi32 "]"), errorCode);
" server [%" B_PRIi32 "]"), errorCode);
break;
}
BAlert* alert = new BAlert(
B_TRANSLATE("Server Error"),
B_TRANSLATE("Server error"),
alertText,
B_TRANSLATE("OK"));
@ -125,7 +125,7 @@ ServerHelper::AlertTransportError(BMessage* message)
switch (errno) {
case HD_NETWORK_INACCESSIBLE:
errorDescription = B_TRANSLATE("Network Error");
errorDescription = B_TRANSLATE("Network error");
break;
default:
errorDescription.SetTo(strerror(errno));
@ -133,11 +133,11 @@ ServerHelper::AlertTransportError(BMessage* message)
}
alertText.SetToFormat(B_TRANSLATE("A network transport error has arisen"
" communicating with the HaikuDepot server system: %s"),
" communicating with the server system: %s"),
errorDescription.String());
BAlert* alert = new BAlert(
B_TRANSLATE("Network Transport Error"),
B_TRANSLATE("Network transport error"),
alertText,
B_TRANSLATE("OK"));
@ -175,9 +175,9 @@ ServerHelper::AlertClientTooOld(BMessage* message)
alertText.SetToFormat(
B_TRANSLATE("This application is too old to communicate with the"
" HaikuDepot server system. Obtain a newer version of HaikuDepot"
" by updating your Haiku system. The minimum version of"
" HaikuDepot required is \"%s\"."), minimumVersion.String());
" server system. Obtain a newer version of this application"
" by updating your system. The minimum required version of this"
" application is \"%s\"."), minimumVersion.String());
BAlert* alert = new BAlert(
B_TRANSLATE("Client version too old"),