[haiku-commits] r39446 - haiku/trunk/src/apps/terminal

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 16 Nov 2010 16:39:36 +0100 (CET)

Author: bonefish
Date: 2010-11-16 16:39:36 +0100 (Tue, 16 Nov 2010)
New Revision: 39446
Changeset: http://dev.haiku-os.org/changeset/39446

Modified:
   haiku/trunk/src/apps/terminal/TermWindow.cpp
Log:
Still-running-processes warning:
* Made the phrasing consistent: "quit" -> "close", "OK" -> "Close".
* Use a more fitting text when only closing a terminal tab.


Modified: haiku/trunk/src/apps/terminal/TermWindow.cpp
===================================================================
--- haiku/trunk/src/apps/terminal/TermWindow.cpp        2010-11-16 13:40:19 UTC 
(rev 39445)
+++ haiku/trunk/src/apps/terminal/TermWindow.cpp        2010-11-16 15:39:36 UTC 
(rev 39446)
@@ -254,10 +254,13 @@
        }
 
        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)


Other related posts:

  • » [haiku-commits] r39446 - haiku/trunk/src/apps/terminal - ingo_weinhold