replace _ with space in add-on names

This commit is contained in:
Damien Elmes 2017-09-10 17:02:32 +10:00
parent 6419f16c6d
commit db5a1f6a5d

View file

@ -140,6 +140,7 @@ When loading '%(name)s':
errs.append(_("Error downloading %(id)s: %(error)s") % dict(id=n, error=ret[1]))
continue
data, fname = ret
fname = fname.replace("_", " ")
self.install(str(n), data, fname)
name = os.path.splitext(fname)[0]
log.append(_("Downloaded %(fname)s" % dict(fname=name)))