replace _ with space in add-on names

This commit is contained in:
Damien Elmes 2017-09-10 17:02:32 +10:00
parent 905bd10efe
commit 0bc4a1a220

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