mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More series translation fixes
This commit is contained in:
parent
2f0089a66b
commit
77e5bea56f
@ -775,7 +775,7 @@ class Metadata(object):
|
||||
ans += [('ISBN', unicode_type(self.isbn))]
|
||||
ans += [(_('Tags'), ', '.join([unicode_type(t) for t in self.tags]))]
|
||||
if self.series:
|
||||
ans += [(_('Series'), unicode_type(self.series) + ' #%s'%self.format_series_index())]
|
||||
ans += [(ngettext('Series', 'Series', 1), unicode_type(self.series) + ' #%s'%self.format_series_index())]
|
||||
ans += [(_('Languages'), ', '.join(self.languages))]
|
||||
if self.timestamp is not None:
|
||||
ans += [(_('Timestamp'), unicode_type(isoformat(self.timestamp, as_utc=False, sep=' ')))]
|
||||
|
@ -289,7 +289,7 @@ def render_jacket(mi, output_profile,
|
||||
author=author,
|
||||
publisher=publisher,
|
||||
pubdate_label=_('Published'), pubdate=pubdate,
|
||||
series_label=_('Series'), series=series,
|
||||
series_label=ngettext('Series', 'Series', 1), series=series,
|
||||
rating_label=_('Rating'), rating=rating,
|
||||
tags_label=_('Tags'), tags=tags,
|
||||
comments=comments,
|
||||
|
@ -232,7 +232,7 @@ class CreateCustomColumn(QDialog):
|
||||
text = '<p>'+_('Quick create:')
|
||||
for col, name in [('isbn', _('ISBN')), ('formats', _('Formats')),
|
||||
('yesno', _('Yes/No')),
|
||||
('tags', _('Tags')), ('series', _('Series')), ('rating',
|
||||
('tags', _('Tags')), ('series', ngettext('Series', 'Series', 1)), ('rating',
|
||||
_('Rating')), ('people', _("Names")), ('text', _('Short text'))]:
|
||||
text += ' <a href="col:%s">%s</a>,'%(col, name)
|
||||
text = text[:-1]
|
||||
|
@ -133,7 +133,7 @@ class CreateVirtualLibrary(QDialog): # {{{
|
||||
'<a href="publisher.{2}">{2}</a>, '
|
||||
'<a href="series.{3}">{3}</a>, '
|
||||
'<a href="search.{4}">{4}</a>.').format(_('Authors'), _('Tags'),
|
||||
_('Publishers'), _('Series'), _('Saved searches')))
|
||||
_('Publishers'), ngettext('Series', 'Series', 2), _('Saved searches')))
|
||||
sl.setWordWrap(True)
|
||||
sl.setTextInteractionFlags(Qt.LinksAccessibleByMouse)
|
||||
sl.linkActivated.connect(self.link_activated)
|
||||
|
@ -37,7 +37,7 @@ class TagBrowserMixin(object): # {{{
|
||||
for text, func, args, cat_name in (
|
||||
(_('Authors'),
|
||||
self.do_author_sort_edit, (self, None), 'authors'),
|
||||
(_('Series'),
|
||||
(ngettext('Series', 'Series', 2),
|
||||
self.do_tags_list_edit, (None, 'series'), 'series'),
|
||||
(_('Publishers'),
|
||||
self.do_tags_list_edit, (None, 'publisher'), 'publisher'),
|
||||
|
@ -349,7 +349,7 @@ class CatalogBuilder(object):
|
||||
if self.opts.generate_titles:
|
||||
self.generate_ncx_by_title(_("Titles"))
|
||||
if self.opts.generate_series:
|
||||
self.generate_ncx_by_series(_("Series"))
|
||||
self.generate_ncx_by_series(ngettext('Series', 'Series', 2))
|
||||
if self.opts.generate_genres:
|
||||
self.generate_ncx_by_genre(_("Genres"))
|
||||
if self.opts.generate_recently_added:
|
||||
@ -2354,7 +2354,7 @@ class CatalogBuilder(object):
|
||||
content/BySeries.html (file)
|
||||
|
||||
"""
|
||||
friendly_name = _("Series")
|
||||
friendly_name = ngettext('Series', 'Series', 2)
|
||||
self.update_progress_full_step("%s HTML" % friendly_name)
|
||||
|
||||
self.opts.sort_by = 'series'
|
||||
|
Loading…
x
Reference in New Issue
Block a user