From 60b3b43f3e199f91d57260b3a1491501e4411c61 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Mon, 28 Mar 2016 21:29:30 -0400 Subject: Translate chanopt output --- src/common/chanopt.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/chanopt.c b/src/common/chanopt.c index cfa41ba1..56d1b1eb 100644 --- a/src/common/chanopt.c +++ b/src/common/chanopt.c @@ -76,11 +76,11 @@ chanopt_value (guint8 val) switch (val) { case SET_OFF: - return "OFF"; + return _("OFF"); case SET_ON: - return "ON"; + return _("ON"); case SET_DEFAULT: - return "{unset}"; + return _("{unset}"); default: g_assert_not_reached (); } @@ -123,8 +123,10 @@ chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[]) } if (!quiet) - PrintTextf (sess, "\002Network\002: %s \002Channel\002: %s\n", + PrintTextf (sess, "\002%s\002: %s \002%s\002: %s\n", + _("Network"), sess->server->network ? server_get_network (sess->server, TRUE) : _(""), + _("Channel"), sess->session_name[0] ? sess->session_name : _("")); while (i < sizeof (chanopt) / sizeof (channel_options)) -- cgit 1.4.1