Add languages to list of available fields for save templates

This commit is contained in:
Kovid Goyal 2013-05-16 18:01:06 +05:30
parent 31d77b94da
commit 6ad8c353ee

View File

@ -47,6 +47,7 @@ FORMAT_ARG_DESCS = dict(
pubdate=_('The published date'), pubdate=_('The published date'),
last_modified=_('The date when the metadata for this book record' last_modified=_('The date when the metadata for this book record'
' was last modified'), ' was last modified'),
languages=_('The language(s) of this book'),
id=_('The calibre internal id') id=_('The calibre internal id')
) )
@ -283,7 +284,6 @@ def save_book_to_disk(id_, db, root, opts, length):
pass pass
def do_save_book_to_disk(id_, mi, cover, plugboards, def do_save_book_to_disk(id_, mi, cover, plugboards,
format_map, root, opts, length): format_map, root, opts, length):
from calibre.ebooks.metadata.meta import set_metadata from calibre.ebooks.metadata.meta import set_metadata