From 9574b970bdd6e28fc6178b736e8e17dfca15fd4e Mon Sep 17 00:00:00 2001
From: Radek Czajka
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$uhR
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 @@
+ {% 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