Still-running-processes warning:

* Made the phrasing consistent: "quit" -> "close", "OK" -> "Close".
* Use a more fitting text when only closing a terminal tab.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-11-16 15:39:36 +00:00
parent 7c90c6bb11
commit 53cd28e9d5
+7 -4
View File
@@ -254,10 +254,13 @@ TermWindow::_CanClose(int32 index)
}
if (isBusy) {
const char* alertMessage = B_TRANSLATE("A process is still running.\n"
"If you close the Terminal the process will be killed.");
BAlert* alert = new BAlert(B_TRANSLATE("Really quit?"),
alertMessage, B_TRANSLATE("OK"), B_TRANSLATE("Cancel"), NULL,
const char* alertMessage = index == -1 || fSessions.CountItems() == 1
? B_TRANSLATE("A process is still running.\n"
"If you close the Terminal, the process will be killed.")
: B_TRANSLATE("A process is still running.\n"
"If you close the tab, the process will be killed.");
BAlert* alert = new BAlert(B_TRANSLATE("Really close?"),
alertMessage, B_TRANSLATE("Close"), B_TRANSLATE("Cancel"), NULL,
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
int32 result = alert->Go();
if (result == 1)