From d891cd280793404e5d44e0fe0a3d7e0c70564177 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 20 Jan 2021 14:52:05 +0100 Subject: [PATCH] Internationalize carousels and club progress bar. --- src/club/locale/de/LC_MESSAGES/django.po | 149 +++++++++------ src/club/locale/en/LC_MESSAGES/django.po | 149 +++++++++------ src/club/locale/es/LC_MESSAGES/django.po | 149 +++++++++------ src/club/locale/fr/LC_MESSAGES/django.po | 149 +++++++++------ src/club/locale/it/LC_MESSAGES/django.po | 149 +++++++++------ src/club/locale/lt/LC_MESSAGES/django.po | 153 +++++++++------ src/club/locale/pl/LC_MESSAGES/django.mo | Bin 6215 -> 7601 bytes src/club/locale/pl/LC_MESSAGES/django.po | 175 ++++++++++++------ src/club/locale/ru/LC_MESSAGES/django.po | 153 +++++++++------ src/club/locale/uk/LC_MESSAGES/django.po | 153 +++++++++------ src/club/templates/club/membership_form.html | 20 +- src/social/admin.py | 1 + src/social/locale/de/LC_MESSAGES/django.po | 26 ++- src/social/locale/en/LC_MESSAGES/django.po | 26 ++- src/social/locale/es/LC_MESSAGES/django.po | 26 ++- src/social/locale/fr/LC_MESSAGES/django.po | 26 ++- src/social/locale/it/LC_MESSAGES/django.po | 26 ++- src/social/locale/lt/LC_MESSAGES/django.po | 26 ++- src/social/locale/pl/LC_MESSAGES/django.mo | Bin 3286 -> 3375 bytes src/social/locale/pl/LC_MESSAGES/django.po | 35 ++-- src/social/locale/ru/LC_MESSAGES/django.po | 26 ++- src/social/locale/uk/LC_MESSAGES/django.po | 26 ++- .../migrations/0012_auto_20210120_1444.py | 32 ++++ .../migrations/0013_auto_20210120_1445.py | 18 ++ src/social/models.py | 20 +- src/social/templates/social/carousel.html | 2 +- src/social/templatetags/social_tags.py | 9 +- 27 files changed, 1101 insertions(+), 623 deletions(-) create mode 100644 src/social/migrations/0012_auto_20210120_1444.py create mode 100644 src/social/migrations/0013_auto_20210120_1445.py diff --git a/src/club/locale/de/LC_MESSAGES/django.po b/src/club/locale/de/LC_MESSAGES/django.po index ae1bb3da9..b0d70e663 100644 --- a/src/club/locale/de/LC_MESSAGES/django.po +++ b/src/club/locale/de/LC_MESSAGES/django.po @@ -66,133 +66,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -298,66 +298,99 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/en/LC_MESSAGES/django.po b/src/club/locale/en/LC_MESSAGES/django.po index ae1bb3da9..b0d70e663 100644 --- a/src/club/locale/en/LC_MESSAGES/django.po +++ b/src/club/locale/en/LC_MESSAGES/django.po @@ -66,133 +66,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -298,66 +298,99 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/es/LC_MESSAGES/django.po b/src/club/locale/es/LC_MESSAGES/django.po index ae1bb3da9..b0d70e663 100644 --- a/src/club/locale/es/LC_MESSAGES/django.po +++ b/src/club/locale/es/LC_MESSAGES/django.po @@ -66,133 +66,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -298,66 +298,99 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/fr/LC_MESSAGES/django.po b/src/club/locale/fr/LC_MESSAGES/django.po index b6540a7a8..74a58dc4a 100644 --- a/src/club/locale/fr/LC_MESSAGES/django.po +++ b/src/club/locale/fr/LC_MESSAGES/django.po @@ -66,133 +66,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -298,66 +298,99 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/it/LC_MESSAGES/django.po b/src/club/locale/it/LC_MESSAGES/django.po index ae1bb3da9..b0d70e663 100644 --- a/src/club/locale/it/LC_MESSAGES/django.po +++ b/src/club/locale/it/LC_MESSAGES/django.po @@ -66,133 +66,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -298,66 +298,99 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/lt/LC_MESSAGES/django.po b/src/club/locale/lt/LC_MESSAGES/django.po index 11618bbdb..e70c69412 100644 --- a/src/club/locale/lt/LC_MESSAGES/django.po +++ b/src/club/locale/lt/LC_MESSAGES/django.po @@ -68,133 +68,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -300,66 +300,103 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/pl/LC_MESSAGES/django.mo b/src/club/locale/pl/LC_MESSAGES/django.mo index 9bce02c802a8801bdb85cd69967a28206df98484..902a989b00848cf88d557e785749163666d7bd18 100644 GIT binary patch literal 7601 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 diff --git a/src/club/locale/pl/LC_MESSAGES/django.po b/src/club/locale/pl/LC_MESSAGES/django.po index 43a31fb81..e56693950 100644 --- a/src/club/locale/pl/LC_MESSAGES/django.po +++ b/src/club/locale/pl/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-11-26 12:47+0100\n" +"PO-Revision-Date: 2021-01-20 14:34+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: pl\n" @@ -68,103 +68,103 @@ msgstr "towarzystwo" msgid "clubs" msgstr "towarzystwa" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "klucz" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "email" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "członkostwo" +#: club/models.py:50 +msgid "payed at" +msgstr "opłacona" + #: club/models.py:51 +msgid "expires_at" +msgstr "wygasa" + +#: club/models.py:71 msgid "amount" msgstr "kwota" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "miesięcznie" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "rocznie" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "anulowany" -#: club/models.py:56 -msgid "payed at" -msgstr "opłacona" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "start" -#: club/models.py:58 -msgid "expires_at" -msgstr "wygasa" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "harmonogram" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "harmonogramy" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "użytkownik" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "utworzone" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "nazwisko" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "ustawiony ręcznie" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "notatki" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "aktualizacja" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "członkostwa" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "dni przed" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "temat" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "treść" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "email z przypomnieniem" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "emaile z przypomnieniem" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" @@ -173,7 +173,7 @@ msgstr[1] "%d dni przed wygaśnięciem" msgstr[2] "%d dni przed wygaśnięciem" msgstr[3] "%d dni przed wygaśnięciem" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" @@ -182,23 +182,23 @@ msgstr[1] "%d dni po wygaśnięciu" msgstr[2] "%d dni po wygaśnięciu" msgstr[3] "%d dni przed wygaśnięciem" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "zdjęcie" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "tekst" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "ambasador" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "ambasadorowie" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -304,49 +304,115 @@ msgstr "Uwalniaj książki razem z nami!" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "Wspieraj Wolne Lektury" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" "Dziękujemy za Twoje dotychczasowe zaangażowanie! Wesprzyj nas ponownie!" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "Dziękujemy, że chcesz razem z nami uwalniać książki!" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "Zobacz swoje dotychczasowe wsparcie." -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "Pomóż nam zdobyć 100 nowych Przyjaciół do końca semestru szkolnego." + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +"\n" +"Od początku tej kampanii stałą wpłatą wsparła nas już %(supporters)s czytelniczka lub czytelnik," +msgstr[1] "" +"\n" +"Od początku tej kampanii stałą wpłatą wsparli nas już %(supporters)s czytelnicy i czytelniczki," +msgstr[2] "" +"\n" +"Od początku tej kampanii stałą wpłatą wsparło nas już %(supporters)s czytelników i czytelniczek," +msgstr[3] "" +"\n" +"Od początku tej kampanii stałą wpłatą wsparło nas już %(supporters)s czytelników i czytelniczek," + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +"\n" +"brakuje %(missing_supporters)s." +msgstr[1] "" +"\n" +"brakuje %(missing_supporters)s." +msgstr[2] "" +"\n" +"brakuje %(missing_supporters)s." +msgstr[3] "" +"\n" +"brakuje %(missing_supporters)s." + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "Bezpieczne wpłaty" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "przelew" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "Wybierz rodzaj wsparcia" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "jednorazowo" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "Wybierz kwotę" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "inna kwota" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "Podaj adres e-mail" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "Chcę dostawać informacje o nowościach" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." @@ -355,19 +421,10 @@ msgstr "" "\" href=\"https://nowoczesnapolska.org.pl/prywatnosc/\">polityce " "prywatności." -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "Wpłać" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "Bezpieczne wpłaty" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "przelew" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "Dziękujemy" diff --git a/src/club/locale/ru/LC_MESSAGES/django.po b/src/club/locale/ru/LC_MESSAGES/django.po index bc85ffa59..eaf7afdd4 100644 --- a/src/club/locale/ru/LC_MESSAGES/django.po +++ b/src/club/locale/ru/LC_MESSAGES/django.po @@ -68,133 +68,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -300,66 +300,103 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/locale/uk/LC_MESSAGES/django.po b/src/club/locale/uk/LC_MESSAGES/django.po index 4bb56cb1b..cc5c64687 100644 --- a/src/club/locale/uk/LC_MESSAGES/django.po +++ b/src/club/locale/uk/LC_MESSAGES/django.po @@ -69,133 +69,133 @@ msgstr "" msgid "clubs" msgstr "" -#: club/models.py:48 +#: club/models.py:47 msgid "key" msgstr "" -#: club/models.py:49 +#: club/models.py:48 msgid "email" msgstr "" -#: club/models.py:50 club/models.py:141 +#: club/models.py:49 club/models.py:155 msgid "membership" msgstr "" +#: club/models.py:50 +msgid "payed at" +msgstr "" + #: club/models.py:51 +msgid "expires_at" +msgstr "" + +#: club/models.py:71 msgid "amount" msgstr "" -#: club/models.py:52 club/templates/club/membership_form.html:185 +#: club/models.py:72 club/templates/club/payment_form.html:21 msgid "monthly" msgstr "" -#: club/models.py:53 +#: club/models.py:73 msgid "yearly" msgstr "" -#: club/models.py:55 +#: club/models.py:75 msgid "cancelled" msgstr "" -#: club/models.py:56 -msgid "payed at" -msgstr "" - -#: club/models.py:57 +#: club/models.py:76 msgid "started at" msgstr "" -#: club/models.py:58 -msgid "expires_at" -msgstr "" - -#: club/models.py:62 +#: club/models.py:79 msgid "schedule" msgstr "" -#: club/models.py:63 +#: club/models.py:80 msgid "schedules" msgstr "" -#: club/models.py:133 +#: club/models.py:147 msgid "user" msgstr "" -#: club/models.py:134 +#: club/models.py:148 msgid "created at" msgstr "" -#: club/models.py:135 club/models.py:196 +#: club/models.py:149 club/models.py:210 msgid "name" msgstr "" -#: club/models.py:136 +#: club/models.py:150 msgid "manual" msgstr "" -#: club/models.py:137 +#: club/models.py:151 msgid "notes" msgstr "" -#: club/models.py:138 +#: club/models.py:152 msgid "updated at" msgstr "" -#: club/models.py:142 +#: club/models.py:156 msgid "memberships" msgstr "" -#: club/models.py:179 +#: club/models.py:193 msgid "days before" msgstr "" -#: club/models.py:180 +#: club/models.py:194 msgid "subject" msgstr "" -#: club/models.py:181 club/payu/models.py:140 +#: club/models.py:195 club/payu/models.py:140 msgid "body" msgstr "" -#: club/models.py:184 +#: club/models.py:198 msgid "reminder email" msgstr "" -#: club/models.py:185 +#: club/models.py:199 msgid "reminder emails" msgstr "" -#: club/models.py:190 +#: club/models.py:204 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:192 +#: club/models.py:206 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" msgstr[0] "" msgstr[1] "" -#: club/models.py:197 +#: club/models.py:211 msgid "photo" msgstr "" -#: club/models.py:198 +#: club/models.py:212 msgid "text" msgstr "" -#: club/models.py:201 +#: club/models.py:215 msgid "ambassador" msgstr "" -#: club/models.py:202 +#: club/models.py:216 msgid "ambassadors" msgstr "" -#: club/models.py:233 club/templates/club/index.html:7 +#: club/models.py:247 club/templates/club/index.html:7 #: club/templates/club/index.html:13 club/templates/club/thanks.html:6 #: club/templates/payu/rec_payment.html:5 msgid "Towarzystwo Przyjaciół Wolnych Lektur" @@ -301,66 +301,103 @@ msgstr "" msgid "„Wolne Lektury należy wspierać, bo są” - Filip Springer" msgstr "" -#: club/templates/club/membership_form.html:144 +#: club/templates/club/membership_form.html:14 msgid "Support Wolne Lektury" msgstr "" -#: club/templates/club/membership_form.html:148 +#: club/templates/club/membership_form.html:18 msgid "Thank you for your support! Support us again!" msgstr "" -#: club/templates/club/membership_form.html:151 +#: club/templates/club/membership_form.html:21 msgid "Thank you for wanting to free the books with us!" msgstr "" -#: club/templates/club/membership_form.html:156 +#: club/templates/club/membership_form.html:26 msgid "See your past support." msgstr "" -#: club/templates/club/membership_form.html:179 +#: club/templates/club/membership_form.html:40 +msgid "Help us get 100 new Friends by the end of the school semester." +msgstr "" + +#: club/templates/club/membership_form.html:41 +#, python-format +msgid "" +"\n" +"\t So far %(supporters)s reader has " +"already supported us with a regular donation,\n" +"\t " +msgid_plural "" +"\n" +"\t So far %(supporters)s readers have " +"already supported us with a regular donation,\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/membership_form.html:46 +#, python-format +msgid "" +"\n" +"\t %(missing_supporters)s is missing.\n" +" " +msgid_plural "" +"\n" +" %(missing_supporters)s are " +"missing.\n" +"\t " +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" + +#: club/templates/club/payment/payu-re.html:4 +#: club/templates/club/payment/payu.html:4 +msgid "Safe payments" +msgstr "" + +#: club/templates/club/payment/payu.html:10 +msgid "transfer" +msgstr "" + +#: club/templates/club/payment_form.html:15 msgid "Choose your type of support" msgstr "" -#: club/templates/club/membership_form.html:184 +#: club/templates/club/payment_form.html:20 msgid "one-time" msgstr "" -#: club/templates/club/membership_form.html:188 +#: club/templates/club/payment_form.html:24 msgid "Choose the amount" msgstr "" -#: club/templates/club/membership_form.html:196 -#: club/templates/club/membership_form.html:209 +#: club/templates/club/payment_form.html:32 +#: club/templates/club/payment_form.html:45 msgid "different amount" msgstr "" -#: club/templates/club/membership_form.html:215 +#: club/templates/club/payment_form.html:51 msgid "Provide an e-mail address" msgstr "" -#: club/templates/club/membership_form.html:222 +#: club/templates/club/payment_form.html:58 msgid "I'd like to receive informations about new publications." msgstr "" -#: club/templates/club/membership_form.html:226 +#: club/templates/club/payment_form.html:62 msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -#: club/templates/club/membership_form.html:228 +#: club/templates/club/payment_form.html:64 msgid "Donate" msgstr "" -#: club/templates/club/payment/payu-re.html:4 -#: club/templates/club/payment/payu.html:4 -msgid "Safe payments" -msgstr "" - -#: club/templates/club/payment/payu.html:10 -msgid "transfer" -msgstr "" - #: club/templates/club/thanks.html:14 msgid "Thank you" msgstr "" diff --git a/src/club/templates/club/membership_form.html b/src/club/templates/club/membership_form.html index fe85c1c88..04a3e109b 100644 --- a/src/club/templates/club/membership_form.html +++ b/src/club/templates/club/membership_form.html @@ -34,10 +34,22 @@ {% chunk 'club_form_top' %} - {% club_monthly_since '2020-12-01' as cc %} - {% club_monthly_missing_since '2020-12-01' 100 as cm %} -

Pomóż nam zdobyć 100 nowych Przyjaciół do końca roku. W grudniu stałą wpłatą wsparło nas już {{ cc }} czytelników i czytelniczek, brakuje {{ cm }}.

-
 {{ cc }}{{ cm }} 
+ {% club_monthly_since '2020-12-01' as supporters %} + {% club_monthly_missing_since '2020-12-01' 100 as missing_supporters %} +

+ {% blocktrans %}Help us get 100 new Friends by the end of the school semester.{% endblocktrans %} + {% blocktrans count supporters=supporters %} + So far {{ supporters }} reader has already supported us with a regular donation, + {% plural %} + So far {{ supporters }} readers have already supported us with a regular donation, + {% endblocktrans %} + {% blocktrans count missing_supporters=missing_supporters %} + {{ missing_supporters }} is missing. + {% plural %} + {{ missing_supporters }} are missing. + {% endblocktrans %} +

+
 {{ supporters }}{{ missing_supporters }} 
{% include "club/payment_form.html" %} diff --git a/src/social/admin.py b/src/social/admin.py index 6e5bf3ab5..91ebcdba0 100644 --- a/src/social/admin.py +++ b/src/social/admin.py @@ -72,6 +72,7 @@ class CarouselItemInline(OrderableAdmin, admin.TabularInline): class CarouselAdmin(admin.ModelAdmin): + list_display = ['placement', 'priority', 'language'] inlines = [CarouselItemInline] diff --git a/src/social/locale/de/LC_MESSAGES/django.po b/src/social/locale/de/LC_MESSAGES/django.po index 365800e5e..b5986dc15 100644 --- a/src/social/locale/de/LC_MESSAGES/django.po +++ b/src/social/locale/de/LC_MESSAGES/django.po @@ -53,7 +53,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -161,7 +161,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -170,30 +170,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/en/LC_MESSAGES/django.po b/src/social/locale/en/LC_MESSAGES/django.po index bb85ba638..89d9594eb 100644 --- a/src/social/locale/en/LC_MESSAGES/django.po +++ b/src/social/locale/en/LC_MESSAGES/django.po @@ -52,7 +52,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -160,7 +160,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -169,30 +169,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/es/LC_MESSAGES/django.po b/src/social/locale/es/LC_MESSAGES/django.po index 365800e5e..b5986dc15 100644 --- a/src/social/locale/es/LC_MESSAGES/django.po +++ b/src/social/locale/es/LC_MESSAGES/django.po @@ -53,7 +53,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -161,7 +161,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -170,30 +170,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/fr/LC_MESSAGES/django.po b/src/social/locale/fr/LC_MESSAGES/django.po index ec609287b..fc19ce0bc 100644 --- a/src/social/locale/fr/LC_MESSAGES/django.po +++ b/src/social/locale/fr/LC_MESSAGES/django.po @@ -53,7 +53,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -161,7 +161,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -170,30 +170,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/it/LC_MESSAGES/django.po b/src/social/locale/it/LC_MESSAGES/django.po index 365800e5e..b5986dc15 100644 --- a/src/social/locale/it/LC_MESSAGES/django.po +++ b/src/social/locale/it/LC_MESSAGES/django.po @@ -53,7 +53,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -161,7 +161,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -170,30 +170,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/lt/LC_MESSAGES/django.po b/src/social/locale/lt/LC_MESSAGES/django.po index ec853fe58..12ea6ce7c 100644 --- a/src/social/locale/lt/LC_MESSAGES/django.po +++ b/src/social/locale/lt/LC_MESSAGES/django.po @@ -54,7 +54,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -162,7 +162,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -171,30 +171,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/pl/LC_MESSAGES/django.mo b/src/social/locale/pl/LC_MESSAGES/django.mo index e0abbc65c928db0c462c736271512d3e6d1d4ed6..aac859476c43d68755c14a3be5ccb60d06245530 100644 GIT binary patch delta 1316 zcmYk*OGs2v9LMpaPQJ!U%|~kKlvcjRW^^{{CZTX)NRSlKYMi;)_?WSoF_|_K5wuY% zrl1zK2qMTL!N72>v?5A%7}Jj@^El8hxQv;?2o~cy`tTbTVBHR5TCouua1aYIij_Ex6*!9r@c~xh zDl$ddyyv8hj*nQ1KdgEA##D1%VQt6VTpvgMZwUDrheHXD<4#PW61$G%Xl|eqx^3^z z;V!P{v55K2GACNu3Np8OZCyh>_zpGD7wd+-zloaYC+@|+sDUf#)QX#|-KYcyQ3;;M zB8*@u^P2=Gn&=uTky%tCcabs8eN+MuZU1AuNtqV#3H^PHrsp=X4}YT@d+F@JehlCx zR3h`Z2VY=XHG0KKGk(H)bn~>z--;?t2Xf0CvkqV_*JrF3Q6-tda-2gYzJMy(lJzB$ zvw4f!fps_gua$4mk*z&y!aUMceE%+>%Cs6aFQLz?g*Zfb2sM4y+f55p-Sx7n zy!zbJs+XERwMK#kWZPkm?ZnZo%j|ohQ>|J%qTTqv>3ujrXm>gZ?P4pTT|7dl`E=+D zhdtA=_*lY|jCoRv{Vpfh6^xEdWgg|vw1u1rCz>>q`_ zCP5Kh>=11zSP%ssiaK->f}n^l18*L|#={956i zHIxuhPt4^Ra|#1nxKO&i#-yx#wDtpE<&%6pvvUonukDJT77oe1;|X8{5&t%}xxV61akuIF34! zX*_@raI%rgJ1RQv71U9zB0uxjn$PHUw0+h9Y9;+xffrDTkD`t!Wt~EDHZw?W<{s)O z=1~8CTEhNo!Xkulj8>sni zp`N>6%Kj_!EFIeNMbyMEP!lZK_Iv9xauQ}2p_Tgy6|HKsXdI2HE#E9HR6>N_1HB_E z`U>>^ZDh7j4N4$~(XnU+Idm5K(}J`+TDgi| zR-L~-_u~#1l|97Xjau#{(x=x-93t9mzs^$Muy$snEV|waPi7^5x?v>Y9}Y)GW2t01 z5j80{l8ndQM0DJYkELUoy9F10p`M`A9dx?<9fx~6I@_F%OkUx+OtkQGrPJP3JP=OA z(&3mJJnx3%z5d0MMZY|mqovvUt8O%r91f=@60ZOH+o`0vmK<{<;oP|8WljG93u$+v diff --git a/src/social/locale/pl/LC_MESSAGES/django.po b/src/social/locale/pl/LC_MESSAGES/django.po index 8071d7025..4890b9e8f 100644 --- a/src/social/locale/pl/LC_MESSAGES/django.po +++ b/src/social/locale/pl/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-08-06 23:24+0200\n" +"PO-Revision-Date: 2021-01-20 14:49+0100\n" "Last-Translator: Radek Czajka \n" "Language-Team: \n" "Language: pl\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.3\n" #: social/admin.py:28 msgid "Content" @@ -54,7 +54,7 @@ msgstr "nazwa" msgid "created at" msgstr "utworzone" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "grupa bannerów" @@ -162,7 +162,7 @@ msgstr "adres licencji obrazu tła" msgid "group" msgstr "grupa" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "banner" @@ -171,30 +171,38 @@ msgid "banners" msgstr "bannery" #: social/models.py:126 -msgid "slug" -msgstr "slug" +msgid "placement" +msgstr "miejsce" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "priorytet" + +#: social/models.py:130 +msgid "language" +msgstr "język" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "karuzela" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "karuzele" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "kolejność" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "element karuzeli" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "elementy karuzeli" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "Proszę wskazać banner albo grupę bannerów." @@ -220,6 +228,9 @@ msgstr "" msgid "Remove from my shelf" msgstr "Usuń z mojej półki" +#~ msgid "slug" +#~ msgstr "slug" + #~ msgid "Adjust size to image, ignore the text" #~ msgstr "Dostosuj wielkość do obrazu tła, zignoruj tekst." diff --git a/src/social/locale/ru/LC_MESSAGES/django.po b/src/social/locale/ru/LC_MESSAGES/django.po index 44fb04dd2..0eaafbd4c 100644 --- a/src/social/locale/ru/LC_MESSAGES/django.po +++ b/src/social/locale/ru/LC_MESSAGES/django.po @@ -54,7 +54,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -162,7 +162,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -171,30 +171,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/locale/uk/LC_MESSAGES/django.po b/src/social/locale/uk/LC_MESSAGES/django.po index 44fb04dd2..0eaafbd4c 100644 --- a/src/social/locale/uk/LC_MESSAGES/django.po +++ b/src/social/locale/uk/LC_MESSAGES/django.po @@ -54,7 +54,7 @@ msgstr "" msgid "created at" msgstr "" -#: social/models.py:20 social/models.py:140 +#: social/models.py:20 social/models.py:152 msgid "banner group" msgstr "" @@ -162,7 +162,7 @@ msgstr "" msgid "group" msgstr "" -#: social/models.py:72 social/models.py:139 +#: social/models.py:72 social/models.py:151 msgid "banner" msgstr "" @@ -171,30 +171,38 @@ msgid "banners" msgstr "" #: social/models.py:126 -msgid "slug" +msgid "placement" msgstr "" -#: social/models.py:130 social/models.py:138 +#: social/models.py:129 +msgid "priority" +msgstr "" + +#: social/models.py:130 +msgid "language" +msgstr "" + +#: social/models.py:134 social/models.py:150 msgid "carousel" msgstr "" -#: social/models.py:131 +#: social/models.py:135 msgid "carousels" msgstr "" -#: social/models.py:137 +#: social/models.py:149 msgid "order" msgstr "" -#: social/models.py:145 +#: social/models.py:157 msgid "carousel item" msgstr "" -#: social/models.py:146 +#: social/models.py:158 msgid "carousel items" msgstr "" -#: social/models.py:153 social/models.py:155 +#: social/models.py:165 social/models.py:167 msgid "Either banner or banner group is required." msgstr "" diff --git a/src/social/migrations/0012_auto_20210120_1444.py b/src/social/migrations/0012_auto_20210120_1444.py new file mode 100644 index 000000000..2f8182758 --- /dev/null +++ b/src/social/migrations/0012_auto_20210120_1444.py @@ -0,0 +1,32 @@ +# Generated by Django 2.2.16 on 2021-01-20 13:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('social', '0011_auto_20190807_1056'), + ] + + operations = [ + migrations.AlterModelOptions( + name='carousel', + options={'verbose_name': 'carousel', 'verbose_name_plural': 'carousels'}, + ), + migrations.AddField( + model_name='carousel', + name='language', + field=models.CharField(blank=True, choices=[('de', 'Deutsch'), ('en', 'English'), ('es', 'español'), ('fr', 'français'), ('it', 'italiano'), ('lt', 'lietuvių'), ('pl', 'polski'), ('ru', 'русский'), ('uk', 'українська')], default='', max_length=2, verbose_name='language'), + ), + migrations.AddField( + model_name='carousel', + name='priority', + field=models.SmallIntegerField(default=0, verbose_name='priority'), + ), + migrations.AlterField( + model_name='carousel', + name='slug', + field=models.SlugField(choices=[('main', 'main')], verbose_name='placement'), + ), + ] diff --git a/src/social/migrations/0013_auto_20210120_1445.py b/src/social/migrations/0013_auto_20210120_1445.py new file mode 100644 index 000000000..20e657f38 --- /dev/null +++ b/src/social/migrations/0013_auto_20210120_1445.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.16 on 2021-01-20 13:45 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('social', '0012_auto_20210120_1444'), + ] + + operations = [ + migrations.RenameField( + model_name='carousel', + old_name='slug', + new_name='placement', + ), + ] diff --git a/src/social/models.py b/src/social/models.py index 37cfecd24..4c8cd7430 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -6,7 +6,7 @@ from django.db import models from django.conf import settings from django.core.exceptions import ValidationError from django.urls import reverse -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext_lazy as _, get_language from catalogue.models import Book from wolnelektury.utils import cached_render, clear_cached_renders @@ -123,15 +123,27 @@ class Cite(models.Model): class Carousel(models.Model): - slug = models.SlugField(_('slug'), unique=True) + placement = models.SlugField(_('placement'), choices=[ + ('main', 'main'), + ]) + priority = models.SmallIntegerField(_('priority'), default=0) + language = models.CharField(_('language'), max_length=2, blank=True, default='', choices=settings.LANGUAGES) class Meta: - ordering = ('slug',) +# ordering = ('placement', '-priority') verbose_name = _('carousel') verbose_name_plural = _('carousels') def __str__(self): - return self.slug + return self.placement + + @classmethod + def get(cls, placement): + carousel = cls.objects.filter(models.Q(language='') | models.Q(language=get_language()), placement=placement).order_by('-priority', '?').first() + if carousel is None: + carousel = cls.objects.create(placement=placement) + return carousel + class CarouselItem(models.Model): order = models.PositiveSmallIntegerField(_('order'), unique=True) diff --git a/src/social/templates/social/carousel.html b/src/social/templates/social/carousel.html index c86d94daa..a76a435cb 100644 --- a/src/social/templates/social/carousel.html +++ b/src/social/templates/social/carousel.html @@ -1,6 +1,6 @@ {% spaceless %} -