Locatizations.
[wolnelektury.git] / src / annoy / places.py
index 93b22e4..c9f8031 100644 (file)
@@ -1,11 +1,13 @@
-from django.utils.translation import ugettext_lazy as _
-
 PLACE_DEFINITIONS = [
-    ('top', _('Top of all pages.'), True),
-    ('book-page', _('Book page'), False),
-    ('book-text-intermission', _('Book text intermission'), False),
-    ('book-fragment-list', _('Next to list of book fragments.'), False),
-    ('blackout', _('Blackout'), True),
+    ('top', 'U góry wszystkich stron', True),
+    ('book-page', 'Strona książki', False),
+    ('book-text-intermission', 'Przerwa w treści książki', False),
+    ('book-fragment-list', 'Obok listy fragmentów książki', False),
+    ('blackout', 'Blackout', True, (
+        ('full', 'Cały ekran'),
+#        ('centre', 'Środek ekranu'),
+        ('upper', 'Górna połowa ekranu'),
+    )),
 ]
 
 PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
@@ -14,3 +16,12 @@ PLACES = {
     p[0]: p[2]
     for p in PLACE_DEFINITIONS
 }
+
+
+STYLES = []
+for p in PLACE_DEFINITIONS:
+    if len(p) > 3:
+        STYLES.extend([
+            (f'{p[0]}_{s[0]}', s[1])
+            for s in p[3]
+        ])