[Xfce4-commits] [apps/xfce4-terminal] 01/01: Improve confirm close dialoglocalization

noreply at xfce.org noreply at xfce.org
Tue Oct 3 14:32:54 CEST 2017


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 3af496cdac96f5f43cf3346242d9fc327ba9bb1c
Author: Igor <f2404 at yandex.ru>
Date:   Tue Oct 3 08:32:46 2017 -0400

    Improve confirm close dialoglocalization
---
 terminal/terminal-window.c | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index ad43bfd..17815d3 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -792,8 +792,8 @@ terminal_window_confirm_close (TerminalScreen *terminal,
       if (confirm_close)
         {
           /* and process running */
-          message = g_strdup_printf (_("There are still processes running in some tabs.\n"
-                                       "Closing this window will kill all of them."));
+          message = g_strdup (_("There are still processes running in some tabs.\n"
+                                "Closing this window will kill all of them."));
         }
       else
         {
@@ -806,14 +806,20 @@ terminal_window_confirm_close (TerminalScreen *terminal,
     }
   else
     {
-      /* closing a tab or a single tab window, and process running */
-      message = g_strdup_printf (_("There is still a process running.\n"
-                                   "Closing this %s will kill it."), terminal != NULL ? "tab" : "window");
-
       if (terminal != NULL)
-        title = _("Close tab?");
+        {
+          /* closing a tab, and process running */
+          message = g_strdup (_("There is still a process running.\n"
+                                "Closing this tab will kill it."));
+          title = _("Close tab?");
+        }
       else
-        title = _("Close window?");
+        {
+          /* closing a single tab window, and process running */
+          message = g_strdup (_("There is still a process running.\n"
+                                "Closing this window will kill it."));
+          title = _("Close window?");
+        }
     }
 
   if (terminal != NULL || n_tabs > 1)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list