Fix #1884208 [[Enhancement] Translate "Generic" in the Welcome wizard](https://bugs.launchpad.net/calibre/+bug/1884208)

This commit is contained in:
Kovid Goyal
2020-06-24 16:52:05 +05:30
parent b1a00d0b52
commit 45e14b7797
+4 -1
View File
@@ -450,7 +450,10 @@ class ManufacturerModel(QAbstractListModel):
def data(self, index, role):
if role == Qt.DisplayRole:
return (self.manufacturers[index.row()])
ans = self.manufacturers[index.row()]
if ans == Device.manufacturer:
ans = _('Generic')
return ans
if role == Qt.UserRole:
return self.manufacturers[index.row()]
return None