Some improvements to kobo configuration tooltips.

This commit is contained in:
Charles Haley 2025-06-02 15:40:54 +01:00
parent 26c10fd4d8
commit 0efb3ca522

View File

@ -520,9 +520,10 @@ class CollectionsGroupBox(DeviceOptionsGroupBox):
device.get_pref('use_collections_columns') device.get_pref('use_collections_columns')
) )
self.collections_columns_edit = QLineEdit(self) self.collections_columns_edit = QLineEdit(self)
self.collections_columns_edit.setToolTip(_('The Kobo from firmware V2.0.0 supports collections.' self.collections_columns_edit.setToolTip('<p>' +
' These are created on the Kobo. ' _('The Kobo from firmware V2.0.0 supports collections. '
'Specify a tags type column for automatic management.')) 'These are created on the Kobo. Specify the lookup name for a '
'tags-type column for automatic management.') + '</p>')
self.collections_columns_edit.setText(device.get_pref('collections_columns')) self.collections_columns_edit.setText(device.get_pref('collections_columns'))
self.use_collections_template_checkbox = create_checkbox( self.use_collections_template_checkbox = create_checkbox(
@ -533,10 +534,12 @@ class CollectionsGroupBox(DeviceOptionsGroupBox):
self.collections_template_edit = TemplateConfig( self.collections_template_edit = TemplateConfig(
self.use_collections_template_checkbox.text(), self.use_collections_template_checkbox.text(),
device.get_pref('collections_template'), device.get_pref('collections_template'),
tooltip=_("Enter a template to generate collections." tooltip='<p>' +
" The result of the template will be combined with the values from Collections column." _("Enter a template to generate collections. "
" The template should return a list of collection names separated by ':@:' (without quotes)." "The result of the template will be combined with the "
) "values from Collections column. The template should "
"return a list of collection names separated "
"by ':@:' (without quotes)." + '</p' )
) )
self.create_collections_checkbox = create_checkbox( self.create_collections_checkbox = create_checkbox(
@ -552,9 +555,10 @@ class CollectionsGroupBox(DeviceOptionsGroupBox):
self.ignore_collections_names_label = QLabel(_('Ignore collections:')) self.ignore_collections_names_label = QLabel(_('Ignore collections:'))
self.ignore_collections_names_edit = QLineEdit(self) self.ignore_collections_names_edit = QLineEdit(self)
self.ignore_collections_names_edit.setToolTip(_('List the names of collections to be ignored by ' self.ignore_collections_names_edit.setToolTip('<p>' +
'the collection management. The collections listed ' _('List the names of collections to be ignored by '
'will not be changed. Names are separated by commas.')) 'the collection management. The collections listed '
'will not be changed. Names are separated by commas.') + '</p>')
self.ignore_collections_names_label.setToolTip(self.ignore_collections_names_edit.toolTip()) self.ignore_collections_names_label.setToolTip(self.ignore_collections_names_edit.toolTip())
self.ignore_collections_names_label.setBuddy(self.ignore_collections_names_edit) self.ignore_collections_names_label.setBuddy(self.ignore_collections_names_edit)
self.ignore_collections_names_edit.setText(device.get_pref('ignore_collections_names')) self.ignore_collections_names_edit.setText(device.get_pref('ignore_collections_names'))