mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
string changes
This commit is contained in:
parent
e485c2a50d
commit
662d5ba809
@ -570,9 +570,9 @@ class CreateCustomColumn(QDialog):
|
|||||||
rows = lv.selectionModel().selectedRows()
|
rows = lv.selectionModel().selectedRows()
|
||||||
from calibre.ebooks.metadata.search_internet import qquote
|
from calibre.ebooks.metadata.search_internet import qquote
|
||||||
if not self.editing_col or not rows:
|
if not self.editing_col or not rows:
|
||||||
vals = [{'item_value': _('Item Value'),
|
vals = [{'item_value': _('Item value'),
|
||||||
'item_value_quoted': qquote(_('Item Value'), True),
|
'item_value_quoted': qquote(_('Item value'), True),
|
||||||
'item_value_no_plus': qquote(_('Item Value'), False),
|
'item_value_no_plus': qquote(_('Item value'), False),
|
||||||
'lookup_name': _('Lookup name'),'author': _('Author'),
|
'lookup_name': _('Lookup name'),'author': _('Author'),
|
||||||
'title': _('Title'), 'author_sort': _('Author sort')}]
|
'title': _('Title'), 'author_sort': _('Author sort')}]
|
||||||
else:
|
else:
|
||||||
@ -580,9 +580,9 @@ class CreateCustomColumn(QDialog):
|
|||||||
for row in rows:
|
for row in rows:
|
||||||
book_id = lv.model().id(row)
|
book_id = lv.model().id(row)
|
||||||
mi = db.new_api.get_metadata(book_id)
|
mi = db.new_api.get_metadata(book_id)
|
||||||
mi.set('item_value', _('Item Value'))
|
mi.set('item_value', _('Item value'))
|
||||||
mi.set('item_value_quoted', qquote(_('Item Value'), True))
|
mi.set('item_value_quoted', qquote(_('Item value'), True))
|
||||||
mi.set('item_value_no_plus', qquote(_('Item Value'), False))
|
mi.set('item_value_no_plus', qquote(_('Item value'), False))
|
||||||
vals.append(mi)
|
vals.append(mi)
|
||||||
d = TemplateDialog(parent=self, text=self.web_search_template.text(), mi=vals)
|
d = TemplateDialog(parent=self, text=self.web_search_template.text(), mi=vals)
|
||||||
if d.exec() == QDialog.DialogCode.Accepted:
|
if d.exec() == QDialog.DialogCode.Accepted:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user