diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-04-21 08:53:08 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-04-21 08:54:35 +0200 |
commit | 3fb8e299bca276601e65790ca71a999e8be7253d (patch) | |
tree | 983109e10911a3c5886c6bb89615e9f97fc6ce33 | |
parent | 84bf7d08cc3cf135d6f4c2956473d5ab23f30158 (diff) | |
download | network-manager-applet-3fb8e299bca276601e65790ca71a999e8be7253d.tar.gz |
applet: fix split translatable sentence
Fixes: 145dfaecad9b81bb70bf72bde5ed5980f68232b0
-rw-r--r-- | src/applet.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/applet.c b/src/applet.c index 6ea137a7..0ee9eb8e 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: |