1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.utils.translation import ugettext_lazy as _
7 'http://creativecommons.org/licenses/by-sa/3.0/': {
9 'description': _('Creative Commons Attribution-ShareAlike 3.0 Unported'),
10 'locative': 'licencji CC-BY-SA 3.0 PL',
12 'http://artlibre.org/licence/lal/pl/': {
14 'description': _('Free Art License 1.3'),
15 'locative': 'Licencji Wolnej Sztuki 1.3',
18 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/deed.pl'] = \
19 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/']
22 for license, data in list(LICENSES.items()):
23 LICENSES[license.replace('http://', 'https://')] = data
25 # Those will be generated only for books with own HTML.
26 EBOOK_FORMATS_WITHOUT_CHILDREN = ['txt', 'fb2']
27 # Those will be generated for all books.
28 EBOOK_FORMATS_WITH_CHILDREN = ['pdf', 'epub', 'mobi']
29 # Those will be generated when inherited cover changes.
30 EBOOK_FORMATS_WITH_COVERS = ['pdf', 'epub', 'mobi']
32 EBOOK_FORMATS = EBOOK_FORMATS_WITHOUT_CHILDREN + EBOOK_FORMATS_WITH_CHILDREN
34 EBOOK_CONTENT_TYPES = {
36 'pdf': 'application/pdf',
37 'txt': 'text/plain; charset=utf-8',
38 'epub': 'application/epub+zip',
39 'mobi': 'application/x-mobipocket-ebook',
59 CATEGORIES_NAME_PLURAL = {
60 'author': _('authors'),
70 'author': _('All authors'),
71 'epoch': _('All epochs'),
72 'kind': _('All kinds'),
73 'genre': _('All genres'),
74 'theme': _('All themes'),
76 'thing': _('All things'),