update translation

This commit is contained in:
2018-04-11 18:32:13 +02:00
parent 605163ab4a
commit 3d6696b26d
8 changed files with 1713 additions and 1362 deletions

View File

@ -325,14 +325,14 @@ class OptionDescriptionWalk(CacheOptionDescription):
config_bag)
if child:
return child
raise AttributeError(_('unknown Option {0} '
'in OptionDescription {1}'
raise AttributeError(_('unknown option "{0}" '
'in optiondescription "{1}"'
'').format(name, self.impl_getname()))
def impl_get_opt_by_path(self,
path):
if getattr(self, '_cache_paths', None) is None:
raise ConfigError(_('use impl_get_opt_by_path only with root OptionDescription'))
raise ConfigError(_('use impl_get_opt_by_path only with root optiondescription'))
if path not in self._cache_paths[1]:
raise AttributeError(_('no option for path "{}"').format(path))
return self._cache_paths[0][self._cache_paths[1].index(path)]