From: Oleg Broytman Date: Thu, 19 May 2016 22:02:25 +0000 (+0300) Subject: Output series the book belongs to (if any) X-Git-Tag: 0.0.6~4 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=0229b7096af32d8a06d016ffda7f52c8e53ef24c Output series the book belongs to (if any) --- diff --git a/docs-ru/command_line.rst b/docs-ru/command_line.rst index 6e36cbe..67cb5f6 100644 --- a/docs-ru/command_line.rst +++ b/docs-ru/command_line.rst @@ -114,7 +114,8 @@ ml-search.py получить ещё больше деталей По умолчанию программы выводит список заголовков найденных книг. При -использовании опции `-d` также выводится список авторов и жанров. +использовании опции `-d` также выводится список авторов и жанров, а +также серия, к которой принадлежит книга (если принадлежит). Поиск расширений ^^^^^^^^^^^^^^^^ diff --git a/docs/command_line.rst b/docs/command_line.rst index c65e11b..0dd5365 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -112,7 +112,8 @@ Options:: repeat for even more details By default the program prints only titles of the found book. With one -option `-d` it also prints the list of authors and genres. +option `-d` it also prints the list of authors and genres, and also +series the book belongs to (if any). Extension search ^^^^^^^^^^^^^^^^ diff --git a/m_librarian/translations/ru_RU.mo b/m_librarian/translations/ru_RU.mo index 473cfac..07aa518 100644 Binary files a/m_librarian/translations/ru_RU.mo and b/m_librarian/translations/ru_RU.mo differ diff --git a/m_librarian/translations/ru_RU.po b/m_librarian/translations/ru_RU.po index 4f08498..1b81f6c 100644 --- a/m_librarian/translations/ru_RU.po +++ b/m_librarian/translations/ru_RU.po @@ -20,5 +20,8 @@ msgstr "Автор(ы)" msgid "Genre(s)" msgstr "Жанр(ы)" +msgid "Series" +msgstr "Серия" + msgid "books" msgstr "книг" diff --git a/scripts/ml-search.py b/scripts/ml-search.py index debfee5..39d3dab 100755 --- a/scripts/ml-search.py +++ b/scripts/ml-search.py @@ -74,6 +74,9 @@ def _search_books(case_sensitive, search_type, args): for genre in book.genres: print (genre.title or genre.name).encode(default_encoding), print + if book.series: + print " ", _("Series"), ":", + print book.series.encode(default_encoding) def _search_extensions(case_sensitive, search_type, args):