[network-manager-applet] applet: fix split translatable sentence



commit 3fb8e299bca276601e65790ca71a999e8be7253d
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Fri Apr 21 08:53:08 2017 +0200

    applet: fix split translatable sentence
    
    Fixes: 145dfaecad9b81bb70bf72bde5ed5980f68232b0

 src/applet.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 6ea137a..0ee9eb8 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -868,7 +868,7 @@ make_active_failure_message (NMActiveConnection *active,
        NMConnection *connection;
        const GPtrArray *devices;
        NMDevice *device;
-       const char *verb, *id;
+       const char *id;
 
        g_return_val_if_fail (active != NULL, NULL);
 
@@ -880,11 +880,9 @@ make_active_failure_message (NMActiveConnection *active,
                devices = nm_active_connection_get_devices (active);
                device = devices && devices->len > 0 ? devices->pdata[0] : NULL;
                if (device && nm_device_get_state (device) == NM_DEVICE_STATE_DISCONNECTED)
-                       verb = "disconnected";
+                       return g_strdup_printf (_("\nThe VPN connection “%s” disconnected because the network 
connection was interrupted."), id);
                else
-                       verb = "failed";
-
-               return g_strdup_printf (_("\nThe VPN connection “%s” %s because the network connection was 
interrupted."), verb, id);
+                       return g_strdup_printf (_("\nThe VPN connection “%s” failed because the network 
connection was interrupted."), id);
        case NM_ACTIVE_CONNECTION_STATE_REASON_SERVICE_STOPPED:
                return g_strdup_printf (_("\nThe VPN connection “%s” failed because the VPN service stopped 
unexpectedly."), id);
        case NM_ACTIVE_CONNECTION_STATE_REASON_IP_CONFIG_INVALID:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]