update translation
This commit is contained in:
@ -289,13 +289,15 @@ class Setting(object):
|
||||
properties.remove('frozen')
|
||||
|
||||
if properties != frozenset():
|
||||
comment = (opt_or_descr._name, str(list(properties)))
|
||||
if 'frozen' in properties:
|
||||
raise_text = 'cannot change the value for option {0} this option is frozen'
|
||||
raise PropertiesOptionError(_('cannot change the value for '
|
||||
'option {0} this option is frozen'
|
||||
'').format(comment))
|
||||
else:
|
||||
raise_text = "trying to access to an option named: {0} with properties {1}"
|
||||
raise PropertiesOptionError(_(raise_text).format(opt_or_descr._name,
|
||||
str(list(properties))),
|
||||
list(properties))
|
||||
raise PropertiesOptionError(_("trying to access to an option "
|
||||
"named: {0} with properties {1}"
|
||||
"").format(comment, list(properties)))
|
||||
|
||||
def _get_permissive(self, opt=None):
|
||||
return self._permissives.get(opt, frozenset())
|
||||
|
Reference in New Issue
Block a user