From 116ce833f4ff761db288866564e430f7d2bae86d Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 13 Dec 2019 13:46:52 +0100 Subject: [PATCH 1/1] Locale. --- src/annoy/locale/pl/LC_MESSAGES/django.mo | Bin 0 -> 1759 bytes src/annoy/locale/pl/LC_MESSAGES/django.po | 113 +++++++++++++++++++ src/annoy/models.py | 25 ++-- src/club/templates/club/membership_form.html | 3 +- 4 files changed, 129 insertions(+), 12 deletions(-) create mode 100644 src/annoy/locale/pl/LC_MESSAGES/django.mo create mode 100644 src/annoy/locale/pl/LC_MESSAGES/django.po diff --git a/src/annoy/locale/pl/LC_MESSAGES/django.mo b/src/annoy/locale/pl/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..4e372203e7198fefaeeb90bd649caf65046b068c GIT binary patch literal 1759 zcmY+E&u<$=6vqcBzs!$9`7M4u4yhWoYrKvtTBlA?Xp4dx8l?$BJuzO7?aA)Wtaip- z)+z_0=EA)P1pE(3L7Z}Hd`Cz~NFWaU1KfHQG z;2}xKsrSD`gES5ORE+LVThZ9OOSybNm zV5`iqh2wc2Nocc7(NN}2`Ofy%wcx^hUoMU7t30@BBHPnu(54Gr?Q0v!D3?ia&E~0V zlgW;juG3nETh?^Wm`*38%haGYoiPhxW2Mui)2E4FFLhdr{C*^FTnd|X=gyI$u@XXa znL->g@8SGx(@Li?KO8Rd{>te2x%}c>4sWnpxr4u{*(S^`EiR)*4i(_c66tM@>dvYb zY$=&y{dw@Q!e>6!ZdldRo|^S$y;Z9kprkPs<>bJP%XIqvmtJ|5QYv>2_bAgUFWgv7 z?mA!CW6f~W=hjGyoj%-~9K;&mz!+O4736a@`7YAObe}+wXv#+Tiq26aC%fgWIl716 z_QqO~o9vDz2jyg!c4W+LVdA>D(M3~mhm`-f#{K=`nBi?2+~3bjLWrgFv5to1I544n z8EfSw$vE2454TG>*N$ac#?ojxYm+f@DiCE69}}rcq~`~%FHo7IlQNbWeltX>)sCBW zk>@IkLicPmHYN2ENzr(+YfXHVKr-r%gzbsU_6Et}UXOg4AZy+>RxYzB26`-ZXkRO~ IH?NET0I2!C!~g&Q literal 0 HcmV?d00001 diff --git a/src/annoy/locale/pl/LC_MESSAGES/django.po b/src/annoy/locale/pl/LC_MESSAGES/django.po new file mode 100644 index 000000000..69e2112e6 --- /dev/null +++ b/src/annoy/locale/pl/LC_MESSAGES/django.po @@ -0,0 +1,113 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-13 13:42+0100\n" +"PO-Revision-Date: 2019-12-13 13:45+0100\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Last-Translator: \n" +"Language-Team: \n" +"X-Generator: Poedit 2.2.4\n" + +#: models.py:10 +msgid "place" +msgstr "miejsce" + +#: models.py:12 +msgid "action label" +msgstr "etykieta akcji" + +#: models.py:14 +msgid "If empty, whole banner will serve as a link" +msgstr "Jeśli pusta, cały banner będzie służył jako link." + +#: models.py:16 +msgid "open label" +msgstr "etykieta otwierania" + +#: models.py:17 +msgid "close label" +msgstr "etykieta zamykania" + +#: models.py:18 models.py:84 +msgid "text" +msgstr "tekst" + +#: models.py:19 +msgid "url" +msgstr "URL" + +#: models.py:21 +msgid "priority" +msgstr "priortytet" + +#: models.py:22 +msgid "Banners with higher priority come first." +msgstr "Bannery z wyższym priorytetem mają pierwszeństwo." + +#: models.py:23 +msgid "since" +msgstr "od" + +#: models.py:24 +msgid "until" +msgstr "do" + +#: models.py:25 +msgid "show members" +msgstr "widoczny dla członków klubu" + +#: models.py:26 +msgid "staff preview" +msgstr "podgląd tylko dla zespołu" + +#: models.py:29 +msgid "banner" +msgstr "banner" + +#: models.py:30 +msgid "banners" +msgstr "bannery" + +#: models.py:65 +msgid "pararaphs" +msgstr "akapity" + +#: models.py:69 +msgid "dynamic insert" +msgstr "dynamiczna wstawka" + +#: models.py:70 +msgid "dynamic inserts" +msgstr "dynamiczne wstawki" + +#: places.py:4 +msgid "Top of all pages." +msgstr "U góry wszystkich stron" + +#: places.py:5 +msgid "Book page" +msgstr "Strona książki" + +#: places.py:6 +msgid "Book text intermission" +msgstr "Przerwa w treści książki" + +#: places.py:7 +msgid "Next to list of book fragments." +msgstr "Obok listy fragmentów książki" + +#: places.py:8 +msgid "Blackout" +msgstr "Blackout" diff --git a/src/annoy/models.py b/src/annoy/models.py index 26b0136c7..600fe5fca 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -7,20 +7,23 @@ from .places import PLACES, PLACE_CHOICES class Banner(models.Model): - place = models.SlugField(choices=PLACE_CHOICES) + place = models.SlugField(_('place'), choices=PLACE_CHOICES) action_label = models.CharField( + _('action label'), max_length=255, blank=True, - help_text=_('') + help_text=_('If empty, whole banner will serve as a link') ) - open_label = models.CharField(max_length=255, blank=True) - close_label = models.CharField(max_length=255, blank=True) - text = models.TextField() - url = models.CharField(max_length=1024) - priority = models.PositiveSmallIntegerField(default=0) - since = models.DateTimeField(null=True, blank=True) - until = models.DateTimeField(null=True, blank=True) - show_members = models.BooleanField(default=False) - staff_preview = models.BooleanField(default=False) + open_label = models.CharField(_('open label'), max_length=255, blank=True) + close_label = models.CharField(_('close label'), max_length=255, blank=True) + text = models.TextField(_('text')) + url = models.CharField(_('url'), max_length=1024) + priority = models.PositiveSmallIntegerField( + _('priority'), default=0, + help_text=_('Banners with higher priority come first.')) + since = models.DateTimeField(_('since'), null=True, blank=True) + until = models.DateTimeField(_('until'), null=True, blank=True) + show_members = models.BooleanField(_('show members'), default=False) + staff_preview = models.BooleanField(_('staff preview'), default=False) class Meta: verbose_name = _('banner') diff --git a/src/club/templates/club/membership_form.html b/src/club/templates/club/membership_form.html index def4539a8..959bc30c9 100644 --- a/src/club/templates/club/membership_form.html +++ b/src/club/templates/club/membership_form.html @@ -2,7 +2,8 @@ {% load chunks %} {% load thumbnail %} -{% block titleextra %}Towarzystwo Wolnych Lektur{% endblock %} +{% block titleextra %}Uwalniaj książki razem z nami!{% endblock %} +{% block metadescription %}„Wolne Lektury należy wspierać, bo są” - Filip Springer{% endblock %} {% block body %} -- 2.20.1