Fixes #1593910 [Column 'Author(s)' is described as comma-separated instead of ampersand-separated](https://bugs.launchpad.net/calibre/+bug/1593910)
This commit is contained in:
Kovid Goyal 2016-06-18 16:18:21 +05:30
commit 8e49e002ad

View File

@ -125,7 +125,11 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
else: else:
dt = fm['datatype'] dt = fm['datatype']
if fm['is_multiple']: if fm['is_multiple']:
dt = '*' + dt if col == 'authors' or fm.get('display', {}).get('is_names', False):
coltype = _('Ampersand separated text, shown in the tag browser')
else:
coltype = self.column_desc['*' + dt]
else:
coltype = self.column_desc[dt] coltype = self.column_desc[dt]
coltype_info = (coltype if oldkey is None else coltype_info = (coltype if oldkey is None else
' ' + _('(lookup name was {0}) {1}'.format(oldkey, coltype))) ' ' + _('(lookup name was {0}) {1}'.format(oldkey, coltype)))