From: Radek Czajka Date: Wed, 27 Jan 2021 09:53:07 +0000 (+0100) Subject: Content warnings. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/9574b970bdd6e28fc6178b736e8e17dfca15fd4e?hp=3d95fcd3649e33465314257c8b93ff139b95629f Content warnings. --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index f1b21fa83..225b205de 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -45,7 +45,7 @@ mutagen>=1.31 sorl-thumbnail==12.5.0 # home-brewed & dependencies -librarian==1.10 +librarian==1.12 # celery tasks celery[redis]==4.4.7 diff --git a/src/catalogue/locale/de/LC_MESSAGES/django.po b/src/catalogue/locale/de/LC_MESSAGES/django.po index f4a7ec6e5..c3b876faf 100644 --- a/src/catalogue/locale/de/LC_MESSAGES/django.po +++ b/src/catalogue/locale/de/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "Beschreibung" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "Erstellungsdatum" @@ -214,7 +214,7 @@ msgstr "Erstellungsdatum" msgid "parent number" msgstr "Elternnummer" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "zusätzliche Informationen" @@ -284,36 +284,36 @@ msgstr "Buch %s ist bereits vorhanden" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "%s XML-Datei" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "Typ" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "Name" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "Name" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 #, fuzzy msgid "file" msgstr "XML-Datei" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -572,11 +572,11 @@ msgstr "" msgid "Language" msgstr "Sprachenkode" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Online lesen" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -584,24 +584,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Herunterladen" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -631,20 +631,20 @@ msgstr "Zeige die Fußnoten nicht" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -703,7 +703,7 @@ msgstr[1] "" msgid "All collections" msgstr "Sammlungen" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "PDF-Datei herunterladen" @@ -867,6 +867,10 @@ msgstr "Sorry! Suchfrage muss zumindest zwei Buchstaben enthalten" msgid "Sorry! Search query must have at least two characters." msgstr "Sorry! Suchfrage muss zumindest zwei Buchstaben enthalten" +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 #, fuzzy msgid "Download a custom PDF" @@ -969,7 +973,13 @@ msgstr "" msgid "Loading" msgstr "Zeilenabstand" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "Sprachenkode" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -980,11 +990,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Buch wurde erfolgreich importiert" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Fehler beim Importieren der Datei: %r" diff --git a/src/catalogue/locale/en/LC_MESSAGES/django.po b/src/catalogue/locale/en/LC_MESSAGES/django.po index 932a6dffd..ba81501f2 100644 --- a/src/catalogue/locale/en/LC_MESSAGES/django.po +++ b/src/catalogue/locale/en/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "Description" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "creation date" @@ -214,7 +214,7 @@ msgstr "creation date" msgid "parent number" msgstr "Parent number" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "Additional information" @@ -284,35 +284,35 @@ msgstr "Book %s already exists" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "%s file" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "type" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "name" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "name" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "XML file" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -574,11 +574,11 @@ msgstr "" msgid "Language" msgstr "language code" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Read online" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -586,24 +586,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Download" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -633,20 +633,20 @@ msgstr "Don't show footnotes" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -705,7 +705,7 @@ msgstr[1] "" msgid "All collections" msgstr "collections" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Download custom PDF" @@ -869,6 +869,10 @@ msgstr "Sorry! Search query must have at least two characters." msgid "Sorry! Search query must have at least two characters." msgstr "Sorry! Search query must have at least two characters." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Download a custom PDF" @@ -970,7 +974,13 @@ msgstr "" msgid "Loading" msgstr "Leading" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "language code" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -981,11 +991,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Book imported succesfully" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "An error occured while importing file: %r" diff --git a/src/catalogue/locale/es/LC_MESSAGES/django.po b/src/catalogue/locale/es/LC_MESSAGES/django.po index 471186066..4e80a3dce 100644 --- a/src/catalogue/locale/es/LC_MESSAGES/django.po +++ b/src/catalogue/locale/es/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "descripción" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "fecha de creación" @@ -214,7 +214,7 @@ msgstr "fecha de creación" msgid "parent number" msgstr "cifra matriz" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "información adicional" @@ -284,35 +284,35 @@ msgstr "Libro %s ya existe" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "%s archivo" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "tipo" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "nombre" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "nombre" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "archivo" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "los medios de el libro" @@ -579,11 +579,11 @@ msgstr "" msgid "Language" msgstr "código de idioma" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Leer en línea" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -591,24 +591,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Descargar" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -639,20 +639,20 @@ msgstr "No mostres notas a pie de página" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -711,7 +711,7 @@ msgstr[1] "" msgid "All collections" msgstr "colecciones" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Descarga PDF personalizado" @@ -880,6 +880,10 @@ msgstr "" "¡Lo siento! La consulta de búsqueda tiene que consistir de dos caracteres " "como mínimo." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Descarga un PDF personalisado" @@ -981,9 +985,15 @@ msgstr "" msgid "Loading" msgstr "Interlineado" +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "código de idioma" + # msgid "Today is %(month)s, %(day)s." # msgstr "Hoy es el %(día)s de %(mes)es" -#: catalogue/views.py:351 +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -994,11 +1004,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "El libro ha sido importado con éxito" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Ha ocurrido un error al cargar el archivo: %r" diff --git a/src/catalogue/locale/fr/LC_MESSAGES/django.po b/src/catalogue/locale/fr/LC_MESSAGES/django.po index f7fe633b9..77752023a 100644 --- a/src/catalogue/locale/fr/LC_MESSAGES/django.po +++ b/src/catalogue/locale/fr/LC_MESSAGES/django.po @@ -198,7 +198,7 @@ msgstr "description" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "date de création" @@ -213,7 +213,7 @@ msgstr "date de création" msgid "parent number" msgstr "nombre de parent" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "information supplémentaire" @@ -283,35 +283,35 @@ msgstr "Livre %s existe déjà" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "fichier %s" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "type" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "nom" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "nom" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "fichier" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -573,11 +573,11 @@ msgstr "" msgid "Language" msgstr "code de langue" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Lire en ligne" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -585,24 +585,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Téléchargez" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -632,20 +632,20 @@ msgstr "Ne montre pas d'annotations" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -704,7 +704,7 @@ msgstr[1] "" msgid "All collections" msgstr "collections" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Téléchargez un PDF personnalisé" @@ -873,6 +873,10 @@ msgstr "" "Nous sommes désolés, pour effectuer la recherche il faut entrer au moins " "deux caractères." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Téléchargez un PDF pérsonnalisé" @@ -974,9 +978,15 @@ msgstr "" msgid "Loading" msgstr "Interligne" +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "code de langue" + # msgid "Today is %(month)s, %(day)s." # msgstr "Aujourd'hui nous sommes le" -#: catalogue/views.py:351 +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -987,11 +997,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Livre importé avec succès" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Erreur pendant l'importation du fichier: %r" diff --git a/src/catalogue/locale/it/LC_MESSAGES/django.po b/src/catalogue/locale/it/LC_MESSAGES/django.po index c3af4c21e..2de547327 100644 --- a/src/catalogue/locale/it/LC_MESSAGES/django.po +++ b/src/catalogue/locale/it/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "descrizione" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "data di creazione" @@ -214,7 +214,7 @@ msgstr "data di creazione" msgid "parent number" msgstr "numero del genitore" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr " ulteriori informazioni" @@ -284,35 +284,35 @@ msgstr "Il libro %s esiste già" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "i %s di file" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "tipo" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "nome" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "nome" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "file" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -576,11 +576,11 @@ msgstr "" msgid "Language" msgstr "codice della lingua" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Leggi online" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -588,24 +588,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Scarica" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -635,20 +635,20 @@ msgstr "Non mostrare le note" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -707,7 +707,7 @@ msgstr[1] "" msgid "All collections" msgstr " raccolte" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Scarica PDF personalizzato" @@ -876,6 +876,10 @@ msgstr "" "Siamo spiacenti! La ricerca viene effettuata su parole con almeno due " "caratteri." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr " Scarica un PDF personalizzato" @@ -977,7 +981,13 @@ msgstr "" msgid "Loading" msgstr "Interlinea" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "codice della lingua" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -988,11 +998,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Libro scaricato con successo" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Errore dell'importazione del file: %r" diff --git a/src/catalogue/locale/lt/LC_MESSAGES/django.po b/src/catalogue/locale/lt/LC_MESSAGES/django.po index 101965025..37e5f4961 100644 --- a/src/catalogue/locale/lt/LC_MESSAGES/django.po +++ b/src/catalogue/locale/lt/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "aprašymas" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "sukūrimo data" @@ -215,7 +215,7 @@ msgstr "sukūrimo data" msgid "parent number" msgstr "pirminis numeris" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "papildomos informacijos" @@ -285,35 +285,35 @@ msgstr "Knyga %s jau egzistuoja" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "%s failas " -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "tipas" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "pavadinimas" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "pavadinimas" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "failas " -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -576,11 +576,11 @@ msgstr "" msgid "Language" msgstr "kalbos kodas" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Skaityti online" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -588,24 +588,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Atsisiųsti" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -635,20 +635,20 @@ msgstr "Nerodyti išnašų" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -707,7 +707,7 @@ msgstr[1] "" msgid "All collections" msgstr "kolekcijos" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Sukurti ir atsisiųsti PDF failą" @@ -874,6 +874,10 @@ msgid "Sorry! Search query must have at least two characters." msgstr "" "Atsiprašome! Paieškos užklausa turi susidėti mažiausiai iš dviejų simbolių." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Sukurti ir atsisiųsti PDF failą" @@ -975,7 +979,13 @@ msgstr "" msgid "Loading" msgstr "eilučių intervalas" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "kalbos kodas" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -986,11 +996,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Knyga buvo sėkmingai importuota" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Importuojant failą įvyko klaida: %r" diff --git a/src/catalogue/locale/pl/LC_MESSAGES/django.mo b/src/catalogue/locale/pl/LC_MESSAGES/django.mo index 6012b3589..edd1fa1ac 100644 Binary files a/src/catalogue/locale/pl/LC_MESSAGES/django.mo and b/src/catalogue/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/catalogue/locale/pl/LC_MESSAGES/django.po b/src/catalogue/locale/pl/LC_MESSAGES/django.po index a5ddcbca5..29a62a9dc 100644 --- a/src/catalogue/locale/pl/LC_MESSAGES/django.po +++ b/src/catalogue/locale/pl/LC_MESSAGES/django.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: WolneLektury\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-11-09 00:53+0100\n" +"PO-Revision-Date: 2021-01-27 10:47+0100\n" "Last-Translator: Radek Czajka \n" "Language-Team: Fundacja Nowoczesna Polska \n" @@ -174,7 +174,7 @@ msgstr "opis" msgid "abstract" msgstr "abstrakt" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "data utworzenia" @@ -187,7 +187,7 @@ msgstr "data modyfikacji" msgid "parent number" msgstr "numer rodzica" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "dodatkowe informacje" @@ -257,33 +257,33 @@ msgstr "Książka %s już istnieje" msgid "This work needs modernisation" msgstr "Ten utwór wymaga uwspółcześnienia" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "plik %s" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "typ" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "nazwa" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 msgid "part name" msgstr "nazwa części" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "indeks" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "plik" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "media książki" @@ -520,11 +520,11 @@ msgstr "Region" msgid "Language" msgstr "Język" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Czytaj online" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -532,24 +532,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "Druk na żądanie z" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Pobierz" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "więcej" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "mniej" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "Jak na razie ten utwór jest dostępny wyłącznie dla naszych Przyjaciół." @@ -577,20 +577,20 @@ msgstr "Przypisy" msgid "References" msgstr "Odniesienia" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "Zamknij" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "Proszę czekać…" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "Inne wersje utworu" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "Zamknij drugą wersję" @@ -642,7 +642,7 @@ msgstr[2] "oraz %(c)s innych" msgid "All collections" msgstr "Wszystkie kolekcje" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Stwórz własny PDF" @@ -801,6 +801,10 @@ msgstr "Przepraszamy! Zapytanie jest zbyt długie." msgid "Sorry! Search query must have at least two characters." msgstr "Przepraszamy! Zapytanie musi zawierać co najmniej dwa znaki." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "Uwaga, tekst zawiera" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Stwórz własny plik PDF" @@ -890,7 +894,11 @@ msgstr "w Culture.pl" msgid "Loading" msgstr "Ładowanie" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +msgid "vulgar language" +msgstr "wulgaryzmy" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -901,11 +909,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Książka zaimportowana" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Błąd podczas importowania pliku: %r" diff --git a/src/catalogue/locale/ru/LC_MESSAGES/django.po b/src/catalogue/locale/ru/LC_MESSAGES/django.po index 5a2238bb4..704d49886 100644 --- a/src/catalogue/locale/ru/LC_MESSAGES/django.po +++ b/src/catalogue/locale/ru/LC_MESSAGES/django.po @@ -199,7 +199,7 @@ msgstr "описание" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "дата создания" @@ -214,7 +214,7 @@ msgstr "дата создания" msgid "parent number" msgstr "номер родителя" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "дополнительная информация" @@ -284,36 +284,36 @@ msgstr "Книга %s уже существует" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, fuzzy, python-format msgid "%s file" msgstr "XML файл" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "тип" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "название" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "название" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 #, fuzzy msgid "file" msgstr "XML файл" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "аудиокнига" @@ -578,11 +578,11 @@ msgstr "" msgid "Language" msgstr "код языка" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Читать онлайн" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -590,24 +590,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Загрузить" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -637,20 +637,20 @@ msgstr "Не показывать сноски" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -709,7 +709,7 @@ msgstr[1] "" msgid "All collections" msgstr "сборы" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Скачать PDF пользователя" @@ -876,6 +876,10 @@ msgid "Sorry! Search query must have at least two characters." msgstr "" "Извините! У искаемого вопроса должны быть по крайней мере два свойства." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Скачать PDF" @@ -977,7 +981,13 @@ msgstr "" msgid "Loading" msgstr "Ведение" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "код языка" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -988,11 +998,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Вы удачно заимпортировали книгу" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Ошибка импорта файла: %r" diff --git a/src/catalogue/locale/uk/LC_MESSAGES/django.po b/src/catalogue/locale/uk/LC_MESSAGES/django.po index d3787770b..629ca15e2 100644 --- a/src/catalogue/locale/uk/LC_MESSAGES/django.po +++ b/src/catalogue/locale/uk/LC_MESSAGES/django.po @@ -198,7 +198,7 @@ msgstr "опис" msgid "abstract" msgstr "" -#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:34 +#: catalogue/models/book.py:66 catalogue/models/bookmedia.py:40 #: catalogue/models/tag.py:71 catalogue/models/tag.py:72 msgid "creation date" msgstr "дата створення" @@ -213,7 +213,7 @@ msgstr "дата створення" msgid "parent number" msgstr "номер батька" -#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:35 +#: catalogue/models/book.py:69 catalogue/models/bookmedia.py:41 msgid "extra information" msgstr "додаткова інформація" @@ -283,35 +283,35 @@ msgstr "Книжка %s вже існує" msgid "This work needs modernisation" msgstr "" -#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:27 +#: catalogue/models/book.py:932 catalogue/models/bookmedia.py:33 #, python-format msgid "%s file" msgstr "файл %s" -#: catalogue/models/bookmedia.py:29 +#: catalogue/models/bookmedia.py:35 msgid "type" msgstr "тип" -#: catalogue/models/bookmedia.py:30 catalogue/models/source.py:11 +#: catalogue/models/bookmedia.py:36 catalogue/models/source.py:11 #: catalogue/models/tag.py:56 msgid "name" msgstr "назва" -#: catalogue/models/bookmedia.py:31 +#: catalogue/models/bookmedia.py:37 #, fuzzy #| msgid "name" msgid "part name" msgstr "назва" -#: catalogue/models/bookmedia.py:32 +#: catalogue/models/bookmedia.py:38 msgid "index" msgstr "" -#: catalogue/models/bookmedia.py:33 +#: catalogue/models/bookmedia.py:39 msgid "file" msgstr "файл" -#: catalogue/models/bookmedia.py:44 catalogue/models/bookmedia.py:45 +#: catalogue/models/bookmedia.py:50 catalogue/models/bookmedia.py:51 msgid "book media" msgstr "book media" @@ -575,11 +575,11 @@ msgstr "" msgid "Language" msgstr "мовний код" -#: catalogue/templates/catalogue/book_short.html:111 +#: catalogue/templates/catalogue/book_short.html:112 msgid "Read online" msgstr "Читати онлайн" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -587,24 +587,24 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:114 +#: catalogue/templates/catalogue/book_short.html:123 msgid "Print on demand –" msgstr "" -#: catalogue/templates/catalogue/book_short.html:119 -#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:401 +#: catalogue/templates/catalogue/book_short.html:128 +#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:404 msgid "Download" msgstr "Завантажити" -#: catalogue/templates/catalogue/book_short.html:133 +#: catalogue/templates/catalogue/book_short.html:142 msgid "more" msgstr "" -#: catalogue/templates/catalogue/book_short.html:144 +#: catalogue/templates/catalogue/book_short.html:153 msgid "less" msgstr "" -#: catalogue/templates/catalogue/book_short.html:150 +#: catalogue/templates/catalogue/book_short.html:161 msgid "For now this work is only available for our subscribers." msgstr "" @@ -634,20 +634,20 @@ msgstr "Сховати примітки" msgid "References" msgstr "" -#: catalogue/templates/catalogue/book_text.html:93 +#: catalogue/templates/catalogue/book_text.html:96 #: catalogue/templates/catalogue/viewer_base.html:54 msgid "Close" msgstr "" -#: catalogue/templates/catalogue/book_text.html:94 +#: catalogue/templates/catalogue/book_text.html:97 msgid "Please wait..." msgstr "" -#: catalogue/templates/catalogue/book_text.html:149 +#: catalogue/templates/catalogue/book_text.html:152 msgid "Other versions of the book" msgstr "" -#: catalogue/templates/catalogue/book_text.html:150 +#: catalogue/templates/catalogue/book_text.html:153 msgid "Close the other version" msgstr "" @@ -706,7 +706,7 @@ msgstr[1] "" msgid "All collections" msgstr "колекції" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:400 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:403 msgid "Download custom PDF" msgstr "Завантажити настроюваний PDF" @@ -870,6 +870,10 @@ msgstr "На жаль, для пошуку потрібно ввести щон msgid "Sorry! Search query must have at least two characters." msgstr "На жаль, для пошуку потрібно ввести щонайменше два знаки." +#: catalogue/templates/catalogue/snippets/content_warning.html:4 +msgid "Caution: text contains" +msgstr "" + #: catalogue/templates/catalogue/snippets/custom_pdf_link_li.html:3 msgid "Download a custom PDF" msgstr "Завантажити настроюваний PDF" @@ -971,7 +975,13 @@ msgstr "" msgid "Loading" msgstr "Leading" -#: catalogue/views.py:351 +#: catalogue/templatetags/catalogue_tags.py:504 +#, fuzzy +#| msgid "language code" +msgid "vulgar language" +msgstr "мовний код" + +#: catalogue/views.py:354 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -982,11 +992,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:356 +#: catalogue/views.py:359 msgid "Book imported successfully" msgstr "Книжку успішно завантажено" -#: catalogue/views.py:357 +#: catalogue/views.py:360 #, python-format msgid "Error importing file: %r" msgstr "Помилка в завантаженні файла: %r" diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 4c69492f8..1df91ca42 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -108,6 +108,7 @@
  • {% if book.html_file %} +
    {% content_warning book %}
    {% trans "Read online" %} {% endif %} {% if book.print_on_demand %} @@ -152,6 +153,7 @@ {% trans "For now this work is only available for our subscribers." %} Dołącz do Towarzystwa Przyjaciół Wolnych Lektur

    +
    {% content_warning book %}
    {% endblock %} {% endif %} {% endcache %} diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html index a771c1778..27601d87d 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -82,6 +82,9 @@ {% if prev %} ← {{ prev.title }} {% endif %} +
    + {% content_warning book %} +
    {{ book_text|safe }} {% endwith %} diff --git a/src/catalogue/templates/catalogue/snippets/content_warning.html b/src/catalogue/templates/catalogue/snippets/content_warning.html new file mode 100644 index 000000000..8bee24dcc --- /dev/null +++ b/src/catalogue/templates/catalogue/snippets/content_warning.html @@ -0,0 +1,8 @@ +{% load i18n %} +{% if warnings %} +

    + {% trans "Caution: text contains" %} + {% for w in warnings %}{% if forloop.counter > 1 %},{% endif %} + {{ w }}{% endfor %}. +

    +{% endif %} diff --git a/src/catalogue/templatetags/catalogue_tags.py b/src/catalogue/templatetags/catalogue_tags.py index d9b0faadc..25976dbc6 100644 --- a/src/catalogue/templatetags/catalogue_tags.py +++ b/src/catalogue/templatetags/catalogue_tags.py @@ -496,3 +496,18 @@ def status(book, user): return 'preview' else: return 'closed' + + +@register.inclusion_tag('catalogue/snippets/content_warning.html') +def content_warning(book): + warnings_def = { + 'wulgaryzmy': _('vulgar language'), + } + warnings = book.get_extra_info_json().get('content_warnings') + warnings = sorted( + warnings_def.get(w, w) + for w in warnings + ) + return { + "warnings": warnings + }