From 3eac01256c2c23360c222aa26c22e44107beaa97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 3 Jul 2013 12:43:36 +0200 Subject: [PATCH] cli: correct printing success indication on 'nmcli con up' --- cli/src/connections.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/connections.c b/cli/src/connections.c index 83a9c0ea17..138084de66 100644 --- a/cli/src/connections.c +++ b/cli/src/connections.c @@ -1433,6 +1433,7 @@ activate_connection_cb (NMClient *client, NMActiveConnection *active, GError *er if (nmc->nowait_flag || state == NM_ACTIVE_CONNECTION_STATE_ACTIVATED) { /* User doesn't want to wait or already activated */ if (state == NM_ACTIVE_CONNECTION_STATE_ACTIVATED && nmc->print_output == NMC_PRINT_PRETTY) { + nmc_terminal_erase_line (); printf (_("Connection successfully activated (D-Bus active path: %s)\n"), nm_object_get_path (NM_OBJECT (active))); } @@ -1625,7 +1626,7 @@ do_connection_up (NmCli *nmc, int argc, char **argv) /* Start progress indication */ if (nmc->print_output == NMC_PRINT_PRETTY) - progress_id = g_timeout_add (120, progress_cb, "preparing"); + progress_id = g_timeout_add (120, progress_cb, _("preparing")); g_free (line); return nmc->return_value;