update translation

This commit is contained in:
2013-07-18 21:25:07 +02:00
parent 7c44f4ade6
commit e9ffd96a28
5 changed files with 150 additions and 127 deletions

View File

@ -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())