misc: fix unnamed arguments in format strings

This commit is contained in:
souliane 2014-02-17 14:58:26 +01:00
commit 24beb81688
5 changed files with 14 additions and 14 deletions

View file

@ -473,8 +473,8 @@ class Params(object):
return None
if not self.checkSecurityLimit(node[1], security_limit):
warning(_("Trying to get parameter '%s' in category '%s' without authorization!!!"
% (name, category)))
warning(_("Trying to get parameter '%(param)s' in category '%(cat)s' without authorization!!!"
% {'param': name, 'cat': category}))
return None
if node[0] == GENERAL:
@ -720,8 +720,8 @@ class Params(object):
return
if not self.checkSecurityLimit(node[1], security_limit):
warning(_("Trying to set parameter '%s' in category '%s' without authorization!!!"
% (name, category)))
warning(_("Trying to set parameter '%(param)s' in category '%(cat)s' without authorization!!!"
% {'param': name, 'cat': category}))
return
if node[0] == GENERAL: