1 from django.utils.translation import ugettext_lazy as _
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 ('full', _('Full screen')),
10 # ('centre', _('Centre of screen')),
11 ('upper', _('Upper half of screen')),
15 PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
19 for p in PLACE_DEFINITIONS
24 for p in PLACE_DEFINITIONS:
27 (f'{p[0]}_{s[0]}', s[1])