diff options
author | Patrick Griffis <tingping@tingping.se> | 2016-03-28 21:29:30 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-03-28 21:31:35 -0400 |
commit | 60b3b43f3e199f91d57260b3a1491501e4411c61 (patch) | |
tree | 13df8c97f10977e42db74a060bca4372d2d840ba /src/common | |
parent | 6cbcc73a79a0eea92fd18f2ee1bff819b28123c4 (diff) |
Translate chanopt output
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/chanopt.c | 10 |
1 files changed, 6 insertions, 4 deletions
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) : _("<none>"), + _("Channel"), sess->session_name[0] ? sess->session_name : _("<none>")); while (i < sizeof (chanopt) / sizeof (channel_options)) |