From fbd2633695d7c6bcbdade3b830d2e5cf5c10c8c3 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 5 Aug 2005 12:40:32 +0000 Subject: [PATCH] use %s --- src/common/logger.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/logger.py b/src/common/logger.py index 8022c4277..2636222fa 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -38,20 +38,20 @@ class Logger: def __init__(self): dot_gajim = os.path.dirname(LOGPATH) if os.path.isfile(dot_gajim): - print dot_gajim, _('is file but it should be a directory') + print _('%s is file but it should be a directory') % dot_gajim print _('Gajim will now exit') sys.exit() if os.path.isdir(dot_gajim): if os.path.isfile(LOGPATH): - print LOGPATH, _('is file but it should be a directory') + print _('%s is file but it should be a directory') % LOGPATH print _('Gajim will now exit') sys.exit() else: # dot_gajim doesn't exist if dot_gajim: # is '' on win9x so avoid that - print _('creating'), dot_gajim , _('directory') + print _('creating %s directory') % dot_gajim os.mkdir(dot_gajim) if not os.path.isdir(LOGPATH): - print _('creating'), LOGPATH, _('directory') + print _('creating %s directory') % LOGPATH os.mkdir(LOGPATH) def write(self, kind, msg, jid, show = None, tim = None):