1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.utils.translation import ugettext_lazy as _
8 'http://creativecommons.org/licenses/by-sa/3.0/': {
10 'description': _('Creative Commons Attribution-ShareAlike 3.0 Unported'),
12 'http://artlibre.org/licence/lal/pl/': {
14 'description': _('Free Art License 1.3'),
17 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/deed.pl'] = \
18 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/']
20 # Those will be generated only for books with own HTML.
21 EBOOK_FORMATS_WITHOUT_CHILDREN = ['txt', 'fb2']
22 # Those will be generated for all books.
23 EBOOK_FORMATS_WITH_CHILDREN = ['pdf', 'epub', 'mobi']
24 # Those will be generated when inherited cover changes.
25 EBOOK_FORMATS_WITH_COVERS = ['pdf', 'epub', 'mobi']
27 EBOOK_FORMATS = EBOOK_FORMATS_WITHOUT_CHILDREN + EBOOK_FORMATS_WITH_CHILDREN
29 EBOOK_CONTENT_TYPES = {
31 'pdf': 'application/pdf',
33 'epub': 'application/epub+zip',
34 'mobi': 'application/x-mobipocket-ebook',
54 CATEGORIES_NAME_PLURAL = {
55 'author': _('authors'),
65 'author': _('All authors'),
66 'epoch': _('All epochs'),
67 'kind': _('All kinds'),
68 'genre': _('All genres'),
69 'theme': _('All themes'),
71 'thing': _('All things'),