This commit is contained in:
Kovid Goyal 2011-03-02 16:28:52 -07:00
parent 9fe3d1a44b
commit 546995553a
2 changed files with 11 additions and 2 deletions

View File

@ -58,6 +58,15 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
self.button_box.accepted.connect(self.accept)
self.button_box.rejected.connect(self.reject)
self.shortcuts.linkActivated.connect(self.shortcut_activated)
text = '<p>'+_('Quick create:') + ' '
for col, name in [('isbn', _('ISBN')), ('formats', _('Formats')),
('last_modified', _('Modified Date')), ('yesno', _('Yes/No')),
('tags', _('Tags')), ('series', _('Series')), ('rating',
_('Rating'))]:
text += ' <a href="col:%s">%s</a>,'%(col, name)
text = text[:-1]
self.shortcuts.setText(text)
self.parent = parent
self.editing_col = editing
self.standard_colheads = standard_colheads
@ -117,7 +126,7 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
'tags': _('My Tags'),
'series': _('My Series'),
'rating': _('My Rating'),
'last_modified':_('Last Modified')}[which])
'last_modified':_('Modified Date')}[which])
if self.composite_box.isVisible():
self.composite_box.setText(
{

View File

@ -267,7 +267,7 @@ four values, the first of them being the empty value.</string>
<item row="3" column="0">
<widget class="QLabel" name="shortcuts">
<property name="text">
<string>Quick create: &lt;a href=&quot;col:isbn&quot; title=&quot;Show the books' ISBN in the column&quot;&gt;ISBN&lt;/a&gt;, &lt;a href=&quot;col:formats&quot; title=&quot;Show the books' formats in the column&quot;&gt;Formats&lt;/a&gt;, &lt;a href=&quot;col:last_modified&quot; title=&quot;Show the date the books' metadata was last modified in the column&quot;&gt;Last Modified&lt;/a&gt;, &lt;a href=&quot;col:yesno&quot;&gt;Yes/No&lt;/a&gt;, &lt;a href=&quot;col:tags&quot;&gt;Tags&lt;/a&gt;, &lt;a href=&quot;col:series&quot;&gt;Series&lt;/a&gt;, &lt;a href=&quot;col:rating&quot;&gt;Rating&lt;/a&gt;</string>
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>