From 9574b970bdd6e28fc6178b736e8e17dfca15fd4e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 27 Jan 2021 10:53:07 +0100 Subject: [PATCH] Content warnings. --- requirements/requirements.txt | 2 +- src/catalogue/locale/de/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/en/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/es/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/fr/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/it/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/lt/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/pl/LC_MESSAGES/django.mo | Bin 12496 -> 12599 bytes src/catalogue/locale/pl/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/ru/LC_MESSAGES/django.po | 60 ++++++++++-------- src/catalogue/locale/uk/LC_MESSAGES/django.po | 60 ++++++++++-------- .../templates/catalogue/book_short.html | 2 + .../templates/catalogue/book_text.html | 3 + .../catalogue/snippets/content_warning.html | 8 +++ src/catalogue/templatetags/catalogue_tags.py | 15 +++++ 15 files changed, 343 insertions(+), 227 deletions(-) create mode 100644 src/catalogue/templates/catalogue/snippets/content_warning.html 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 6012b35891a477a793b84cd2c8cf2fc200347a47..edd1fa1ac71acfd61d0504bf7a3eae3775e758b0 100644 GIT binary patch delta 4391 zcmYk;2~bs40LJkHJ`opQDv}9_4+(|D1Vl)Z7R`d(GNf|JdKw~vpn{;7Uad4u&FI;x zm0OBhSW=Oc=2m1)tBsnLOUu+al~LI`WBtE(4^4Oc-tV0I?mg>$7eDehOma?k_B?7h z4v|aA-C@Q=gc$RD2c0$MbVp+@!86zf|HAed+R2!U(2MOb)|!NEsi$LSyc)xCwEcdZ zwE(%!F*7J6azQn=!i}howxAl`fqB@7gV9T?{c$uhRn?S@|LkDAe7jKX24j{L|iW;!O|BGf>(ptfqKt-psX znmK}+(08a6`w?~Bd31t%Nb8zutThp@q@IRcV~SBDUWjUFC90tSM&MHzi?yhkHeob= zh#owPy6+rnLg!H{cp-}Q*9{l5zPce6wE_cC9p|BDHWhVUIjX~XsF^K8O<)ab#kQj+ z(un*s2l-IPCs5a&L0#93>d$m#{WZcEhQpwY4|PEXYKey;*P5}Yfy}^OI1jZI8<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0)PId^Q~uJr+GDT`4ReHyzRmqv{^7&U`x)<`VN zehda+5^7*=QT2PEmU@77IO_VbNIl0)rJ#|_wI?#{{tDDU)}b28Ms;)))!<3g!*mV< z@hc3%yQublK@H@0d)z0^y}mqZWx~*3?|&l-8c{QAYt+m;VK8<>J-tIw1DRu8j3wD$ zgQ}m2>NpEE!0o8|dr$*EVvpyduFJsYKf}7qb9!$QV+Oyic;oETZj{i&<{fOYs>wNsc7* zQ09MQ1IgDWnalMJkex07g\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 + } -- 2.20.1