Fix for #593910: column description for authors-like fields says they are comma separated.

This commit is contained in:
Charles Haley 2016-06-18 12:31:28 +02:00
parent 01361987e8
commit 9718fa6c99

View File

@ -125,8 +125,12 @@ 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 = self.column_desc[dt] coltype = _('Ampersand separated text, shown in the tag browser')
else:
coltype = self.column_desc['*' + dt]
else:
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)))
item = QTableWidgetItem(coltype_info) item = QTableWidgetItem(coltype_info)