From e34933fe08da9e03fff3f230d87941d3b001b280 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Sun, 13 Apr 2014 08:10:55 -0700 Subject: [PATCH] Make log message translatable Signed-off-by: Sean Robinson --- wifiradar/connections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wifiradar/connections.py b/wifiradar/connections.py index b695862..85df435 100644 --- a/wifiradar/connections.py +++ b/wifiradar/connections.py @@ -247,11 +247,11 @@ class ConnectionManager(object): try: shellcmd(profile[script_name].split(' '), custom_env) except CalledProcessError as e: - logger.error('script "{NAME}" failed: {EXC}'.format( + logger.error(_('script "{NAME}" failed: {EXC}').format( NAME=script_name, EXC=e)) self.msg_pipe.send(Message('ERROR', - 'script "{NAME}" failed: {EXC}'.format(NAME=script_name, - EXC=e))) + _('script "{NAME}" failed: {EXC}').format( + NAME=script_name, EXC=e))) def _prepare_nic(self, profile, device): """ Configure the NIC for upcoming connection. -- 2.11.4.GIT