use %s
This commit is contained in:
parent
e0f766de1c
commit
fbd2633695
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue