free art license icon
[wolnelektury.git] / src / catalogue / constants.py
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.
4 #
5 from django.utils.translation import ugettext_lazy as _
6
7 LICENSES = {
8     'http://creativecommons.org/licenses/by-sa/3.0/': {
9         'icon': 'cc-by-sa',
10         'description': _('Creative Commons Attribution-ShareAlike 3.0 Unported'),
11     },
12     'http://artlibre.org/licence/lal/pl/': {
13         'icon': 'lal',
14         'description': _('Free Art License 1.3'),
15     }
16 }
17 LICENSES['http://creativecommons.org/licenses/by-sa/3.0/deed.pl'] = \
18     LICENSES['http://creativecommons.org/licenses/by-sa/3.0/']
19
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']
26
27 EBOOK_FORMATS = EBOOK_FORMATS_WITHOUT_CHILDREN + EBOOK_FORMATS_WITH_CHILDREN
28
29 LANGUAGES_3TO2 = {
30     'deu': 'de',
31     'ger': 'de',
32     'eng': 'en',
33     'spa': 'es',
34     'fra': 'fr',
35     'fre': 'fr',
36     'ita': 'it',
37     'jpn': 'jp',
38     'lit': 'lt',
39     'pol': 'pl',
40     'rus': 'ru',
41     'ukr': 'uk',
42 }
43
44 CATEGORIES_NAME_PLURAL = {
45     'author': _('authors'),
46     'epoch': _('epochs'),
47     'kind': _('kinds'),
48     'genre': _('genres'),
49     'theme': _('themes'),
50     'set': _('sets'),
51     'thing': _('things'),
52 }
53
54 WHOLE_CATEGORY = {
55     'author': _('All authors'),
56     'epoch': _('All epochs'),
57     'kind': _('All kinds'),
58     'genre': _('All genres'),
59     'theme': _('All themes'),
60     'set': _('All sets'),
61     'thing': _('All things'),
62 }