]> git.phdru.name Git - m_librarian.git/commitdiff
Output series the book belongs to (if any)
authorOleg Broytman <phd@phdru.name>
Thu, 19 May 2016 22:02:25 +0000 (01:02 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 19 May 2016 22:02:25 +0000 (01:02 +0300)
docs-ru/command_line.rst
docs/command_line.rst
m_librarian/translations/ru_RU.mo
m_librarian/translations/ru_RU.po
scripts/ml-search.py

index 6e36cbe5cc8e827abed0a56ef26dd406bb1783d0..67cb5f617796c7831ba44a042821e8257048f46a 100644 (file)
@@ -114,7 +114,8 @@ ml-search.py
                            получить ещё больше деталей
 
 По умолчанию программы выводит список заголовков найденных книг. При
                            получить ещё больше деталей
 
 По умолчанию программы выводит список заголовков найденных книг. При
-использовании опции `-d` также выводится список авторов и жанров.
+использовании опции `-d` также выводится список авторов и жанров, а
+также серия, к которой принадлежит книга (если принадлежит).
 
 Поиск расширений
 ^^^^^^^^^^^^^^^^
 
 Поиск расширений
 ^^^^^^^^^^^^^^^^
index c65e11b3aa0d76248dcda18144dca85d2f2f40e4..0dd5365abf1a79fd998923eabdc4e7d16abed0eb 100644 (file)
@@ -112,7 +112,8 @@ Options::
                            repeat for even more details
 
 By default the program prints only titles of the found book. With one
                            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
 ^^^^^^^^^^^^^^^^
 
 Extension search
 ^^^^^^^^^^^^^^^^
index 473cfac6b614ff941b4311b5da87e03cde97288a..07aa518fe667c6a83ae4315e507ea36021d9e4b6 100644 (file)
Binary files a/m_librarian/translations/ru_RU.mo and b/m_librarian/translations/ru_RU.mo differ
index 4f084980bb4ef81a5f76a94e2f0d8c313d2d7a7f..1b81f6c432163cf11e3febe18167f9e55de399e1 100644 (file)
@@ -20,5 +20,8 @@ msgstr "Автор(ы)"
 msgid "Genre(s)"
 msgstr "Жанр(ы)"
 
 msgid "Genre(s)"
 msgstr "Жанр(ы)"
 
+msgid "Series"
+msgstr "Серия"
+
 msgid "books"
 msgstr "книг"
 msgid "books"
 msgstr "книг"
index debfee52aa0ccae1261e8f2426ae7883225d3806..39d3dabfc9484bbff19e51e915a4658c22cb64f3 100755 (executable)
@@ -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
             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):
 
 
 def _search_extensions(case_sensitive, search_type, args):