mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1884208 [[Enhancement] Translate "Generic" in the Welcome wizard](https://bugs.launchpad.net/calibre/+bug/1884208)
This commit is contained in:
parent
b1a00d0b52
commit
45e14b7797
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user