fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d95fcd
)
Content warnings.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 27 Jan 2021 09:53:07 +0000
(10:53 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 27 Jan 2021 09:53:07 +0000
(10:53 +0100)
15 files changed:
requirements/requirements.txt
patch
|
blob
|
history
src/catalogue/locale/de/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/en/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/es/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/fr/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/it/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/lt/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/pl/LC_MESSAGES/django.mo
patch
|
blob
|
history
src/catalogue/locale/pl/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/ru/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/locale/uk/LC_MESSAGES/django.po
patch
|
blob
|
history
src/catalogue/templates/catalogue/book_short.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/book_text.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/snippets/content_warning.html
[new file with mode: 0644]
patch
|
blob
src/catalogue/templatetags/catalogue_tags.py
patch
|
blob
|
history
diff --git
a/requirements/requirements.txt
b/requirements/requirements.txt
index
f1b21fa
..
225b205
100644
(file)
--- a/
requirements/requirements.txt
+++ b/
requirements/requirements.txt
@@
-45,7
+45,7
@@
mutagen>=1.31
sorl-thumbnail==12.5.0
# home-brewed & dependencies
sorl-thumbnail==12.5.0
# home-brewed & dependencies
-librarian==1.1
0
+librarian==1.1
2
# celery tasks
celery[redis]==4.4.7
# 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
f4a7ec6
..
c3b876f
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr "zusätzliche Informationen"
@@
-284,36
+284,36
@@
msgstr "Buch %s ist bereits vorhanden"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "%s XML-Datei"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "Typ"
msgid "type"
msgstr "Typ"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "Name"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "Name"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "Name"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "Name"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
#, fuzzy
msgid "file"
msgstr "XML-Datei"
#, 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"
msgid "book media"
msgstr "book media"
@@
-572,11
+572,11
@@
msgstr ""
msgid "Language"
msgstr "Sprachenkode"
msgid "Language"
msgstr "Sprachenkode"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Online lesen"
msgid "Read online"
msgstr "Online lesen"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-584,24
+584,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Herunterladen"
msgid "Download"
msgstr "Herunterladen"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
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 ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-703,7
+703,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "Sammlungen"
msgid "All collections"
msgstr "Sammlungen"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "PDF-Datei herunterladen"
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"
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"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-980,11
+990,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Buch wurde erfolgreich importiert"
msgid "Book imported successfully"
msgstr "Buch wurde erfolgreich importiert"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Fehler beim Importieren der Datei: %r"
#, 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
932a6df
..
ba81501
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr "Additional information"
@@
-284,35
+284,35
@@
msgstr "Book %s already exists"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "%s file"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "type"
msgid "type"
msgstr "type"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "name"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "name"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "name"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "name"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "XML file"
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"
msgid "book media"
msgstr "book media"
@@
-574,11
+574,11
@@
msgstr ""
msgid "Language"
msgstr "language code"
msgid "Language"
msgstr "language code"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Read online"
msgid "Read online"
msgstr "Read online"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-586,24
+586,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Download"
msgid "Download"
msgstr "Download"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
msgid "For now this work is only available for our subscribers."
msgstr ""
@@
-633,20
+633,20
@@
msgstr "Don't show footnotes"
msgid "References"
msgstr ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-705,7
+705,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "collections"
msgid "All collections"
msgstr "collections"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Download custom PDF"
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."
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"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-981,11
+991,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Book imported succesfully"
msgid "Book imported successfully"
msgstr "Book imported succesfully"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "An error occured while importing file: %r"
#, 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
4711860
..
4e80a3d
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr "información adicional"
@@
-284,35
+284,35
@@
msgstr "Libro %s ya existe"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "%s archivo"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "tipo"
msgid "type"
msgstr "tipo"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nombre"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nombre"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nombre"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nombre"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "archivo"
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"
msgid "book media"
msgstr "los medios de el libro"
@@
-579,11
+579,11
@@
msgstr ""
msgid "Language"
msgstr "código de idioma"
msgid "Language"
msgstr "código de idioma"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Leer en línea"
msgid "Read online"
msgstr "Leer en línea"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-591,24
+591,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Descargar"
msgid "Download"
msgstr "Descargar"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
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 ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-711,7
+711,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "colecciones"
msgid "All collections"
msgstr "colecciones"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Descarga PDF personalizado"
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."
"¡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"
#: 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"
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"
# msgid "Today is %(month)s, %(day)s."
# msgstr "Hoy es el %(día)s de %(mes)es"
-#: catalogue/views.py:35
1
+#: catalogue/views.py:35
4
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-994,11
+1004,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "El libro ha sido importado con éxito"
msgid "Book imported successfully"
msgstr "El libro ha sido importado con éxito"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Ha ocurrido un error al cargar el archivo: %r"
#, 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
f7fe633
..
7775202
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr "information supplémentaire"
@@
-283,35
+283,35
@@
msgstr "Livre %s existe déjà"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "fichier %s"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "type"
msgid "type"
msgstr "type"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nom"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nom"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nom"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nom"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "fichier"
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"
msgid "book media"
msgstr "book media"
@@
-573,11
+573,11
@@
msgstr ""
msgid "Language"
msgstr "code de langue"
msgid "Language"
msgstr "code de langue"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Lire en ligne"
msgid "Read online"
msgstr "Lire en ligne"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-585,24
+585,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Téléchargez"
msgid "Download"
msgstr "Téléchargez"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
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 ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-704,7
+704,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "collections"
msgid "All collections"
msgstr "collections"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Téléchargez un PDF personnalisé"
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."
"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é"
#: 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"
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"
# msgid "Today is %(month)s, %(day)s."
# msgstr "Aujourd'hui nous sommes le"
-#: catalogue/views.py:35
1
+#: catalogue/views.py:35
4
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-987,11
+997,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Livre importé avec succès"
msgid "Book imported successfully"
msgstr "Livre importé avec succès"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Erreur pendant l'importation du fichier: %r"
#, 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
c3af4c2
..
2de5473
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr " ulteriori informazioni"
@@
-284,35
+284,35
@@
msgstr "Il libro %s esiste già"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "i %s di file"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "tipo"
msgid "type"
msgstr "tipo"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nome"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nome"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nome"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "nome"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "file"
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"
msgid "book media"
msgstr "book media"
@@
-576,11
+576,11
@@
msgstr ""
msgid "Language"
msgstr "codice della lingua"
msgid "Language"
msgstr "codice della lingua"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Leggi online"
msgid "Read online"
msgstr "Leggi online"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-588,24
+588,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Scarica"
msgid "Download"
msgstr "Scarica"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
msgid "For now this work is only available for our subscribers."
msgstr ""
@@
-635,20
+635,20
@@
msgstr "Non mostrare le note"
msgid "References"
msgstr ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-707,7
+707,7
@@
msgstr[1] ""
msgid "All collections"
msgstr " raccolte"
msgid "All collections"
msgstr " raccolte"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Scarica PDF personalizzato"
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."
"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"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-988,11
+998,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Libro scaricato con successo"
msgid "Book imported successfully"
msgstr "Libro scaricato con successo"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Errore dell'importazione del file: %r"
#, 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
1019650
..
37e5f49
100644
(file)
--- 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 ""
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"
#: 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"
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"
msgid "extra information"
msgstr "papildomos informacijos"
@@
-285,35
+285,35
@@
msgstr "Knyga %s jau egzistuoja"
msgid "This work needs modernisation"
msgstr ""
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 "
#, python-format
msgid "%s file"
msgstr "%s failas "
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "tipas"
msgid "type"
msgstr "tipas"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "pavadinimas"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "pavadinimas"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "pavadinimas"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "pavadinimas"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "failas "
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"
msgid "book media"
msgstr "book media"
@@
-576,11
+576,11
@@
msgstr ""
msgid "Language"
msgstr "kalbos kodas"
msgid "Language"
msgstr "kalbos kodas"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Skaityti online"
msgid "Read online"
msgstr "Skaityti online"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-588,24
+588,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Atsisiųsti"
msgid "Download"
msgstr "Atsisiųsti"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
msgid "For now this work is only available for our subscribers."
msgstr ""
@@
-635,20
+635,20
@@
msgstr "Nerodyti išnašų"
msgid "References"
msgstr ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-707,7
+707,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "kolekcijos"
msgid "All collections"
msgstr "kolekcijos"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Sukurti ir atsisiųsti PDF failą"
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ų."
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ą"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-986,11
+996,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Knyga buvo sėkmingai importuota"
msgid "Book imported successfully"
msgstr "Knyga buvo sėkmingai importuota"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Importuojant failą įvyko klaida: %r"
#, 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
6012b35
..
edd1fa1
100644
(file)
Binary files a/src/catalogue/locale/pl/LC_MESSAGES/django.mo and b/src/catalogue/locale/pl/LC_MESSAGES/django.mo differ
diff --git
a/src/catalogue/locale/pl/LC_MESSAGES/django.po
b/src/catalogue/locale/pl/LC_MESSAGES/django.po
index
a5ddcbc
..
29a62a9
100644
(file)
--- a/
src/catalogue/locale/pl/LC_MESSAGES/django.po
+++ b/
src/catalogue/locale/pl/LC_MESSAGES/django.po
@@
-5,7
+5,7
@@
msgid ""
msgstr ""
"Project-Id-Version: WolneLektury\n"
"Report-Msgid-Bugs-To: \n"
msgstr ""
"Project-Id-Version: WolneLektury\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 202
0-11-09 00:53
+0100\n"
+"PO-Revision-Date: 202
1-01-27 10:47
+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org."
"pl>\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org."
"pl>\n"
@@
-174,7
+174,7
@@
msgstr "opis"
msgid "abstract"
msgstr "abstrakt"
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"
#: 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"
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"
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"
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"
#, python-format
msgid "%s file"
msgstr "plik %s"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "typ"
msgid "type"
msgstr "typ"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nazwa"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "nazwa"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
msgid "part name"
msgstr "nazwa części"
msgid "part name"
msgstr "nazwa części"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr "indeks"
msgid "index"
msgstr "indeks"
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "plik"
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"
msgid "book media"
msgstr "media książki"
@@
-520,11
+520,11
@@
msgstr "Region"
msgid "Language"
msgstr "Język"
msgid "Language"
msgstr "Język"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Czytaj online"
msgid "Read online"
msgstr "Czytaj online"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-532,24
+532,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr "Druk na żądanie z"
msgid "Print on demand –"
msgstr "Druk na żądanie z"
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Pobierz"
msgid "Download"
msgstr "Pobierz"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr "więcej"
msgid "more"
msgstr "więcej"
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr "mniej"
msgid "less"
msgstr "mniej"
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
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ół."
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"
msgid "References"
msgstr "Odniesienia"
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr "Zamknij"
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr "Zamknij"
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr "Proszę czekać…"
msgid "Please wait..."
msgstr "Proszę czekać…"
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr "Inne wersje utworu"
msgid "Other versions of the book"
msgstr "Inne wersje utworu"
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr "Zamknij drugą wersję"
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"
msgid "All collections"
msgstr "Wszystkie kolekcje"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Stwórz własny PDF"
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."
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"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-901,11
+909,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Książka zaimportowana"
msgid "Book imported successfully"
msgstr "Książka zaimportowana"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Błąd podczas importowania pliku: %r"
#, 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
5a2238b
..
704d498
100644
(file)
--- 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 ""
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 "дата создания"
#: catalogue/models/tag.py:71 catalogue/models/tag.py:72
msgid "creation date"
msgstr "дата создания"
@@
-214,7
+214,7
@@
msgstr "дата создания"
msgid "parent number"
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 "дополнительная информация"
msgid "extra information"
msgstr "дополнительная информация"
@@
-284,36
+284,36
@@
msgstr "Книга %s уже существует"
msgid "This work needs modernisation"
msgstr ""
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 файл"
#, fuzzy, python-format
msgid "%s file"
msgstr "XML файл"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "тип"
msgid "type"
msgstr "тип"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "название"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "название"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "название"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "название"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
#, fuzzy
msgid "file"
msgstr "XML файл"
#, 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 "аудиокнига"
msgid "book media"
msgstr "аудиокнига"
@@
-578,11
+578,11
@@
msgstr ""
msgid "Language"
msgstr "код языка"
msgid "Language"
msgstr "код языка"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Читать онлайн"
msgid "Read online"
msgstr "Читать онлайн"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-590,24
+590,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Загрузить"
msgid "Download"
msgstr "Загрузить"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
msgid "For now this work is only available for our subscribers."
msgstr ""
@@
-637,20
+637,20
@@
msgstr "Не показывать сноски"
msgid "References"
msgstr ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-709,7
+709,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "сборы"
msgid "All collections"
msgstr "сборы"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Скачать PDF пользователя"
msgid "Download custom PDF"
msgstr "Скачать PDF пользователя"
@@
-876,6
+876,10
@@
msgid "Sorry! Search query must have at least two characters."
msgstr ""
"Извините! У искаемого вопроса должны быть по крайней мере два свойства."
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"
#: 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 "Ведение"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-988,11
+998,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Вы удачно заимпортировали книгу"
msgid "Book imported successfully"
msgstr "Вы удачно заимпортировали книгу"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Ошибка импорта файла: %r"
#, 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
d378777
..
629ca15
100644
(file)
--- 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 ""
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 "дата створення"
#: catalogue/models/tag.py:71 catalogue/models/tag.py:72
msgid "creation date"
msgstr "дата створення"
@@
-213,7
+213,7
@@
msgstr "дата створення"
msgid "parent number"
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 "додаткова інформація"
msgid "extra information"
msgstr "додаткова інформація"
@@
-283,35
+283,35
@@
msgstr "Книжка %s вже існує"
msgid "This work needs modernisation"
msgstr ""
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"
#, python-format
msgid "%s file"
msgstr "файл %s"
-#: catalogue/models/bookmedia.py:
29
+#: catalogue/models/bookmedia.py:
35
msgid "type"
msgstr "тип"
msgid "type"
msgstr "тип"
-#: catalogue/models/bookmedia.py:3
0
catalogue/models/source.py:11
+#: catalogue/models/bookmedia.py:3
6
catalogue/models/source.py:11
#: catalogue/models/tag.py:56
msgid "name"
msgstr "назва"
#: catalogue/models/tag.py:56
msgid "name"
msgstr "назва"
-#: catalogue/models/bookmedia.py:3
1
+#: catalogue/models/bookmedia.py:3
7
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "назва"
#, fuzzy
#| msgid "name"
msgid "part name"
msgstr "назва"
-#: catalogue/models/bookmedia.py:3
2
+#: catalogue/models/bookmedia.py:3
8
msgid "index"
msgstr ""
msgid "index"
msgstr ""
-#: catalogue/models/bookmedia.py:3
3
+#: catalogue/models/bookmedia.py:3
9
msgid "file"
msgstr "файл"
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"
msgid "book media"
msgstr "book media"
@@
-575,11
+575,11
@@
msgstr ""
msgid "Language"
msgstr "мовний код"
msgid "Language"
msgstr "мовний код"
-#: catalogue/templates/catalogue/book_short.html:11
1
+#: catalogue/templates/catalogue/book_short.html:11
2
msgid "Read online"
msgstr "Читати онлайн"
msgid "Read online"
msgstr "Читати онлайн"
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
msgid ""
"Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem "
"upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia."
@@
-587,24
+587,24
@@
msgid ""
"bezpłatnie."
msgstr ""
"bezpłatnie."
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
14
+#: catalogue/templates/catalogue/book_short.html:1
23
msgid "Print on demand –"
msgstr ""
msgid "Print on demand –"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
19
-#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
1
+#: catalogue/templates/catalogue/book_short.html:1
28
+#: catalogue/templates/catalogue/custom_pdf_form.html:18 catalogue/views.py:40
4
msgid "Download"
msgstr "Завантажити"
msgid "Download"
msgstr "Завантажити"
-#: catalogue/templates/catalogue/book_short.html:1
33
+#: catalogue/templates/catalogue/book_short.html:1
42
msgid "more"
msgstr ""
msgid "more"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
44
+#: catalogue/templates/catalogue/book_short.html:1
53
msgid "less"
msgstr ""
msgid "less"
msgstr ""
-#: catalogue/templates/catalogue/book_short.html:1
50
+#: catalogue/templates/catalogue/book_short.html:1
61
msgid "For now this work is only available for our subscribers."
msgstr ""
msgid "For now this work is only available for our subscribers."
msgstr ""
@@
-634,20
+634,20
@@
msgstr "Сховати примітки"
msgid "References"
msgstr ""
msgid "References"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
3
+#: catalogue/templates/catalogue/book_text.html:9
6
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
#: catalogue/templates/catalogue/viewer_base.html:54
msgid "Close"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:9
4
+#: catalogue/templates/catalogue/book_text.html:9
7
msgid "Please wait..."
msgstr ""
msgid "Please wait..."
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:1
49
+#: catalogue/templates/catalogue/book_text.html:1
52
msgid "Other versions of the book"
msgstr ""
msgid "Other versions of the book"
msgstr ""
-#: catalogue/templates/catalogue/book_text.html:15
0
+#: catalogue/templates/catalogue/book_text.html:15
3
msgid "Close the other version"
msgstr ""
msgid "Close the other version"
msgstr ""
@@
-706,7
+706,7
@@
msgstr[1] ""
msgid "All collections"
msgstr "колекції"
msgid "All collections"
msgstr "колекції"
-#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
0
+#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:40
3
msgid "Download custom PDF"
msgstr "Завантажити настроюваний PDF"
msgid "Download custom PDF"
msgstr "Завантажити настроюваний PDF"
@@
-870,6
+870,10
@@
msgstr "На жаль, для пошуку потрібно ввести щон
msgid "Sorry! Search query must have at least two characters."
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"
#: 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"
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"
#, python-format
msgid ""
"An error occurred: %(exception)s\n"
@@
-982,11
+992,11
@@
msgstr ""
"\n"
"%(tb)s"
"\n"
"%(tb)s"
-#: catalogue/views.py:35
6
+#: catalogue/views.py:35
9
msgid "Book imported successfully"
msgstr "Книжку успішно завантажено"
msgid "Book imported successfully"
msgstr "Книжку успішно завантажено"
-#: catalogue/views.py:3
57
+#: catalogue/views.py:3
60
#, python-format
msgid "Error importing file: %r"
msgstr "Помилка в завантаженні файла: %r"
#, 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
4c69492
..
1df91ca
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_short.html
+++ b/
src/catalogue/templates/catalogue/book_short.html
@@
-108,6
+108,7
@@
<ul class="book-box-tools">
<li class="book-box-read">
{% if book.html_file %}
<ul class="book-box-tools">
<li class="book-box-read">
{% if book.html_file %}
+ <div>{% content_warning book %}</div>
<a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
{% endif %}
{% if book.print_on_demand %}
<a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
{% endif %}
{% if book.print_on_demand %}
@@
-152,6
+153,7
@@
{% trans "For now this work is only available for our subscribers." %}
<a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
</p>
{% trans "For now this work is only available for our subscribers." %}
<a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
</p>
+ <div>{% content_warning book %}</div>
{% endblock %}
{% endif %}
{% endcache %}
{% endblock %}
{% endif %}
{% endcache %}
diff --git
a/src/catalogue/templates/catalogue/book_text.html
b/src/catalogue/templates/catalogue/book_text.html
index
a771c17
..
27601d8
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_text.html
+++ b/
src/catalogue/templates/catalogue/book_text.html
@@
-82,6
+82,9
@@
{% if prev %}
<a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
{% endif %}
{% if prev %}
<a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
{% endif %}
+ <div style="text-align:center; margin-top:1em;">
+ {% content_warning book %}
+ </div>
<div style="clear:both;"></div>
{{ book_text|safe }}
{% endwith %}
<div style="clear:both;"></div>
{{ 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
(file)
index 0000000..
8bee24d
--- /dev/null
+++ b/
src/catalogue/templates/catalogue/snippets/content_warning.html
@@ -0,0
+1,8
@@
+{% load i18n %}
+{% if warnings %}
+<p class="content-warning" style="background-color: #9e3610; color:white; display:inline-block; padding: 5px 10px; border-radius: 1em;">
+ {% trans "Caution: text contains" %}
+ {% for w in warnings %}{% if forloop.counter > 1 %},{% endif %}
+ {{ w }}{% endfor %}.
+</p>
+{% endif %}
diff --git
a/src/catalogue/templatetags/catalogue_tags.py
b/src/catalogue/templatetags/catalogue_tags.py
index
d9b0faa
..
25976db
100644
(file)
--- 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'
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
+ }