93b22e44ec3f1c327463739f9e90eeff08a260cc
[wolnelektury.git] / src / annoy / places.py
1 from django.utils.translation import ugettext_lazy as _
2
3 PLACE_DEFINITIONS = [
4     ('top', _('Top of all pages.'), True),
5     ('book-page', _('Book page'), False),
6     ('book-text-intermission', _('Book text intermission'), False),
7     ('book-fragment-list', _('Next to list of book fragments.'), False),
8     ('blackout', _('Blackout'), True),
9 ]
10
11 PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
12
13 PLACES = {
14     p[0]: p[2]
15     for p in PLACE_DEFINITIONS
16 }