Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BK-563 present the delete option for books on the book_info page

  • Loading branch information...
commit a984affef9421b4349048818b6fd6f5f7c411eab 1 parent 0000612
Aleksandar Erkalović aerkalov authored
Showing with 621 additions and 261 deletions.
  1. +1 −0  lib/booki/editor/urls.py
  2. BIN  lib/booki/locale/en/LC_MESSAGES/django.mo
  3. +47 −29 lib/booki/locale/en/LC_MESSAGES/django.po
  4. BIN  lib/booki/locale/es/LC_MESSAGES/django.mo
  5. +49 −29 lib/booki/locale/es/LC_MESSAGES/django.po
  6. BIN  lib/booki/locale/fi/LC_MESSAGES/django.mo
  7. +49 −29 lib/booki/locale/fi/LC_MESSAGES/django.po
  8. BIN  lib/booki/locale/fr/LC_MESSAGES/django.mo
  9. +49 −29 lib/booki/locale/fr/LC_MESSAGES/django.po
  10. BIN  lib/booki/locale/it/LC_MESSAGES/django.mo
  11. +49 −29 lib/booki/locale/it/LC_MESSAGES/django.po
  12. BIN  lib/booki/locale/pl/LC_MESSAGES/django.mo
  13. +47 −29 lib/booki/locale/pl/LC_MESSAGES/django.po
  14. BIN  lib/booki/locale/pt/LC_MESSAGES/django.mo
  15. +49 −29 lib/booki/locale/pt/LC_MESSAGES/django.po
  16. BIN  lib/booki/locale/ru/LC_MESSAGES/django.mo
  17. +49 −29 lib/booki/locale/ru/LC_MESSAGES/django.po
  18. BIN  lib/booki/locale/sq/LC_MESSAGES/django.mo
  19. +49 −29 lib/booki/locale/sq/LC_MESSAGES/django.po
  20. +1 −0  lib/booki/portal/templates/base.html
  21. +10 −0 lib/booki/reader/templates/reader/book_delete.html
  22. +11 −0 lib/booki/reader/templates/reader/book_delete_error.html
  23. +12 −0 lib/booki/reader/templates/reader/book_delete_redirect.html
  24. +3 −0  lib/booki/reader/templates/reader/book_info.html
  25. +66 −0 lib/booki/reader/views.py
  26. +80 −0 lib/booki/site_static/js/general.js
1  lib/booki/editor/urls.py
View
@@ -53,6 +53,7 @@
url(r'^_info/$', 'booki.reader.views.book_info', name='book_info'),
url(r'^_info/cover.jpg$', 'booki.reader.views.book_cover', name='book_cover'),
url(r'^_info/edit/$', 'booki.reader.views.edit_info', name='edit_info'),
+ url(r'^_info/delete/$', 'booki.reader.views.book_delete', name='book_delete'),
# this should be
url(r'^(?P<chapter>[\w\s\_\.\-]+)/$', 'booki.reader.views.book_chapter', name='book_chapter'),
BIN  lib/booki/locale/en/LC_MESSAGES/django.mo
View
Binary file not shown
76 lib/booki/locale/en/LC_MESSAGES/django.po
View
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:20+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-08 17:29+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: English Localization <contact@sourcefabric.org>\n"
@@ -1666,7 +1666,7 @@ msgstr ""
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr ""
@@ -2099,12 +2099,12 @@ msgid "Split"
msgstr ""
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr ""
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr ""
@@ -3231,7 +3231,7 @@ msgstr ""
msgid "Message from %s"
msgstr ""
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr ""
@@ -3322,6 +3322,10 @@ msgstr ""
msgid "Couldn't create a group!"
msgstr ""
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+msgid "Delete book"
+msgstr ""
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr ""
@@ -3352,7 +3356,7 @@ msgid "Welcome to Booktype"
msgstr ""
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr ""
@@ -3463,6 +3467,20 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr ""
+#: reader/templates/reader/book_delete.html:3
+msgid "Delete Book"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3470,95 +3488,95 @@ msgstr ""
msgid "/book: %(booktitle)s"
msgstr ""
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr ""
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr ""
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr ""
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr ""
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr ""
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr ""
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr ""
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr ""
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr ""
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr ""
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr ""
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr ""
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr ""
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr ""
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr ""
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr ""
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr ""
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr ""
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr ""
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr ""
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr ""
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr ""
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr ""
BIN  lib/booki/locale/es/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/es/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:20+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-12 11:11+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Spanish Localization <contact@sourcefabric.org>\n"
@@ -1726,7 +1726,7 @@ msgstr "Historial"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versiones"
@@ -2181,12 +2181,12 @@ msgid "Split"
msgstr "Dividir"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Crear sección"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Crear libro"
@@ -3328,7 +3328,7 @@ msgstr "Seguimientos"
msgid "Message from %s"
msgstr "Mensaje de %s"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr "Error"
@@ -3419,6 +3419,11 @@ msgstr "Centro de Control"
msgid "Couldn't create a group!"
msgstr "No fue posible crear un grupo"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Eliminar"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Grupo no encontrado!"
@@ -3449,7 +3454,7 @@ msgid "Welcome to Booktype"
msgstr "Bienvenido/a a Booktype"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Actividad reciente"
@@ -3560,6 +3565,21 @@ msgstr "Hay más de un capítulo titulado - \"%(chapter_name)s\". No"
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/capítulo: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Eliminar"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3567,95 +3587,95 @@ msgstr "/capítulo: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/libro: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Editar este libro"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Ver borrador"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Editar información del libro"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Detalles del libro"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Propietario:"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Estado:"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(este libro no es visible para otros)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(este libro es visible para todos)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Miembro de grupo:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Versión actual:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Creado:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Publicado:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Colaboradores:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Edición en línea:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Crear capítulo"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Guardar capítulo"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Renombrar capítulo"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Reordenar capítulo"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Dividir capítulo"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Versión menor"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Versión mayor"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Cargado"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Seguir cambios"
BIN  lib/booki/locale/fi/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/fi/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:20+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-11 11:46+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Finnish FLOSS Manuals <tomi@flossmanuals.net>\n"
@@ -1754,7 +1754,7 @@ msgstr "Historia"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versiot"
@@ -2210,12 +2210,12 @@ msgid "Split"
msgstr "Jaa"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Luo osa"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Luo kirja"
@@ -3366,7 +3366,7 @@ msgstr "Seuraamiset"
msgid "Message from %s"
msgstr "Viesti käyttäjältä %s Booktypessä"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr ""
@@ -3461,6 +3461,11 @@ msgstr ""
msgid "Couldn't create a group!"
msgstr "Luo ryhmä"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Poista"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Ryhmää ei löydy! "
@@ -3492,7 +3497,7 @@ msgid "Welcome to Booktype"
msgstr "Tervetuloa Booktypeen"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Uusimmat toiminnot"
@@ -3606,6 +3611,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/luku: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Poista"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3613,95 +3633,95 @@ msgstr "/luku: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/kirja: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Muokkaa tätä kirjaa"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Katso luonnosta"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Muokkaa kirjan tietoa"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Kirjan yksityiskohdat"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Omistaja:"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Tila"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(tämä kirja on piilossa muilta)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(tämä kirja näkyy muille)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Ryhmän jäsen:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Nykyinen versio:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Luotu:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Julkaistu:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Kirjoittajat:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Muokkaamassa nyt:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Luo luku"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Tallenna luku"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Luvun nimeäminen uudelleen"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Luvun järjestäminen"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Luvun jakaminen"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Pieni versio"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Suuri versio"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Ladattu"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Seuraa muutoksia"
BIN  lib/booki/locale/fr/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/fr/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:20+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-29 10:16+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: French Localization <elisa.dcg@gmail.com>\n"
@@ -1748,7 +1748,7 @@ msgstr "Historique"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versions"
@@ -2212,12 +2212,12 @@ msgid "Split"
msgstr "Diviser"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Créer une section"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Créer un livre"
@@ -3376,7 +3376,7 @@ msgstr "Abonnements"
msgid "Message from %s"
msgstr "Message de %s sur Booki"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr ""
@@ -3473,6 +3473,11 @@ msgstr ""
msgid "Couldn't create a group!"
msgstr "Créer un nouveau groupe"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Supprimer"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Groupe non trouvé !"
@@ -3506,7 +3511,7 @@ msgid "Welcome to Booktype"
msgstr "Bienvenue sur Booki"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Activité récente"
@@ -3621,6 +3626,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/chapitre : %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Supprimer"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3628,98 +3648,98 @@ msgstr "/chapitre : %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/livre : %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
#, fuzzy
msgid "Edit this Book"
msgstr "Publier ce livre"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
#, fuzzy
msgid "View draft"
msgstr "Voir le chapitre"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
#, fuzzy
msgid "Edit book info"
msgstr "Saisissez l'identifiant du livre"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Détails du livre"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Propriétaire :"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "État :"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(ce livre est caché aux autres contributeurs)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(ce livre est visible par tout le monde)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Membre du groupe :"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Version actuelle :"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Créé le :"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Publié le :"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Contributeurs :"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Actuellement en édition :"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Création d'un chapitre"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Enregistrement d'un chapitre"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Renommage d'un chapitre"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Réorganisation"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Division d'un chapitre"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Version mineure"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Version majeure"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Téléchargement"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Suivre les changements"
BIN  lib/booki/locale/it/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/it/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:20+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-11 12:04+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Italian Localization <contact@sourcefabric.org>\n"
@@ -1749,7 +1749,7 @@ msgstr "Storia"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versioni"
@@ -2201,12 +2201,12 @@ msgid "Split"
msgstr "Dividi"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Crea sezione"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Crea Libro"
@@ -3349,7 +3349,7 @@ msgstr "Segui i cambiamenti"
msgid "Message from %s"
msgstr "Messaggi da %s"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr ""
@@ -3440,6 +3440,11 @@ msgstr "Centro di Controllo"
msgid "Couldn't create a group!"
msgstr "Non è possibile creare il gruppo!"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Cancella"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Gruppo non trovato"
@@ -3470,7 +3475,7 @@ msgid "Welcome to Booktype"
msgstr "Benvenuto in Booktype"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Attività recenti"
@@ -3584,6 +3589,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/capitolo: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Cancella"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3591,95 +3611,95 @@ msgstr "/capitolo: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/libro: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Modifica questo Libro"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Visualizza bozza"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Modifica i dettagli del Libro"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Dettagli Libro"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Proprietario:"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Stato:"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(questo libro è nascosto agli altri utenti)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(questo libro è visibile a tutti)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Membri del gruppo:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Versione corrente:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Creato:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Pubblicato:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Collaboratori:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Editing online:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Crea Capitolo"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Salva Capitolo"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Rinomina Capitolo"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Riordina Capitolo"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Dividi capitolo"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Versione minore"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Versione principale"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Caricato"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Segui i cambiamenti"
BIN  lib/booki/locale/pl/LC_MESSAGES/django.mo
View
Binary file not shown
76 lib/booki/locale/pl/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:21+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-11 12:25+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Polish Localization <contact@sourcefabric.org>\n"
@@ -1659,7 +1659,7 @@ msgstr ""
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr ""
@@ -2092,12 +2092,12 @@ msgid "Split"
msgstr ""
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr ""
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr ""
@@ -3224,7 +3224,7 @@ msgstr ""
msgid "Message from %s"
msgstr ""
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr ""
@@ -3315,6 +3315,10 @@ msgstr ""
msgid "Couldn't create a group!"
msgstr ""
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+msgid "Delete book"
+msgstr ""
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr ""
@@ -3345,7 +3349,7 @@ msgid "Welcome to Booktype"
msgstr ""
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr ""
@@ -3456,6 +3460,20 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr ""
+#: reader/templates/reader/book_delete.html:3
+msgid "Delete Book"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3463,95 +3481,95 @@ msgstr ""
msgid "/book: %(booktitle)s"
msgstr ""
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr ""
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr ""
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr ""
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr ""
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr ""
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr ""
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr ""
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr ""
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr ""
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr ""
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr ""
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr ""
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr ""
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr ""
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr ""
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr ""
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr ""
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr ""
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr ""
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr ""
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr ""
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr ""
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr ""
BIN  lib/booki/locale/pt/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/pt/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:21+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-16 10:51+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Portuguese Localization <contact@sourcefabric.org>\n"
@@ -1722,7 +1722,7 @@ msgstr "Histórico"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versões"
@@ -2176,12 +2176,12 @@ msgid "Split"
msgstr "Dividir"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Criar secção"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Criar livro"
@@ -3319,7 +3319,7 @@ msgstr "Seguimentos"
msgid "Message from %s"
msgstr "Mensagem do %s"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr "Erro"
@@ -3410,6 +3410,11 @@ msgstr "Centro de Controlo"
msgid "Couldn't create a group!"
msgstr "Não foi possível criar grupo!"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Apagar"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Grupo não encontrado!"
@@ -3440,7 +3445,7 @@ msgid "Welcome to Booktype"
msgstr "Bem-vindo ao Booktype"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Atividade recente"
@@ -3552,6 +3557,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/capítulo: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Apagar"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3559,95 +3579,95 @@ msgstr "/capítulo: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/livro: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Editar este Livro"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Ver rascunho"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Editar informações do livro"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Detalhes do livro"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Proprietário"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Estado:"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(este livro está escondido dos outros)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(este livro está visível para todos)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Membro do grupo:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Versão atual:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Criado:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Publicadas:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Colaboradores:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Edição on-line:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Criar capítulo"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Guardar Capítulo"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Renomear capítulo "
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Reordenar capítulo"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Dividir capítulo"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Versão secundária"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Versão principal"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Carregado"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Siga as alterações"
BIN  lib/booki/locale/ru/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/ru/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:21+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-12 16:03+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Russian Localization <contact@sourcefabric.org>\n"
@@ -1724,7 +1724,7 @@ msgstr "История"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Версии"
@@ -2179,12 +2179,12 @@ msgid "Split"
msgstr "Разделить"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Создание раздела"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Создание книги"
@@ -3322,7 +3322,7 @@ msgstr "Следующие"
msgid "Message from %s"
msgstr "Сообщение от %s"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr "Ошибка"
@@ -3413,6 +3413,11 @@ msgstr "Центр управления"
msgid "Couldn't create a group!"
msgstr "Не получилось создать группу!"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Удалить"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Группа не найдена!"
@@ -3443,7 +3448,7 @@ msgid "Welcome to Booktype"
msgstr "Добро пожаловать в Booktype"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Последние действия"
@@ -3556,6 +3561,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/глава: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Удалить"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3563,95 +3583,95 @@ msgstr "/глава: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/книга: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Редактировать эту книгу"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Просмотреть черновик"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Редактировать информацию о книге"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Подробности о книге"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Владелец:"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Статус:"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(эта книга скрыта от остальных пользователей)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(эта книга видна всем)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Член группы:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Текущая версия:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Создана:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Опубликована:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Авторы:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Онлайн-редактирование:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Создание главы"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Сохранение главы"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Переименование главы"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Изменение порядка глав"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Деление главы"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Второстепенная версия"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Главная версия"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "Загружено"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Отслеживать изменения"
BIN  lib/booki/locale/sq/LC_MESSAGES/django.mo
View
Binary file not shown
78 lib/booki/locale/sq/LC_MESSAGES/django.po
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-02 15:21+0200\n"
+"POT-Creation-Date: 2013-05-02 23:29+0200\n"
"PO-Revision-Date: 2013-04-16 23:02+0200\n"
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>\n"
"Language-Team: Albanian Localization <contact@sourcefabric.org>\n"
@@ -1731,7 +1731,7 @@ msgstr "Historik"
#: editor/templates/editor/edit_book.html:114
#: editor/templates/editor/edit_book.html:373
-#: reader/templates/reader/book_info.html:116
+#: reader/templates/reader/book_info.html:119
msgid "Versions"
msgstr "Versione"
@@ -2187,12 +2187,12 @@ msgid "Split"
msgstr "Ndaji"
#: editor/templates/editor/edit_book.html:651
-#: reader/templates/reader/book_info.html:159
+#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Krijim ndarjeje"
#: editor/templates/editor/edit_book.html:652
-#: reader/templates/reader/book_info.html:166
+#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Krijim libri"
@@ -3331,7 +3331,7 @@ msgstr "Ndjekje"
msgid "Message from %s"
msgstr "Mesazh prej %s"
-#: messaging/views.py:171
+#: messaging/views.py:171 reader/templates/reader/book_delete_error.html:7
msgid "Error"
msgstr "Gabim"
@@ -3422,6 +3422,11 @@ msgstr "Qendër Kontrollesh"
msgid "Couldn't create a group!"
msgstr "Nuk u krijua dot grupi!"
+#: portal/templates/base.html:204 reader/templates/reader/book_info.html:74
+#, fuzzy
+msgid "Delete book"
+msgstr "Fshije"
+
#: portal/templates/errors/group_does_not_exist.html:8
msgid "Group not found!"
msgstr "Nuk u gjet grup!"
@@ -3452,7 +3457,7 @@ msgid "Welcome to Booktype"
msgstr "Mirë se vini te Booktype"
#: portal/templates/portal/frontpage.html:38
-#: reader/templates/reader/book_info.html:123
+#: reader/templates/reader/book_info.html:126
msgid "Recent activity"
msgstr "Veprimtari së fundmi"
@@ -3565,6 +3570,21 @@ msgstr ""
msgid "/chapter: %(chaptertitle)s / %(booktitle)s"
msgstr "/kreu: %(chaptertitle)s / %(booktitle)s"
+#: reader/templates/reader/book_delete.html:3
+#, fuzzy
+msgid "Delete Book"
+msgstr "Fshije"
+
+#: reader/templates/reader/book_delete.html:6
+msgid ""
+"Are you sure you would like to delete this book? You will lose all data "
+"associated to this book and you will not be able to undo this operation!"
+msgstr ""
+
+#: reader/templates/reader/book_delete.html:7
+msgid "Type full title of the book to delete it"
+msgstr ""
+
#: reader/templates/reader/book_info.html:5
#: reader/templates/reader/book_view.html:5
#: reader/templates/reader/draft_book.html:5
@@ -3572,95 +3592,95 @@ msgstr "/kreu: %(chaptertitle)s / %(booktitle)s"
msgid "/book: %(booktitle)s"
msgstr "/libri: %(booktitle)s"
-#: reader/templates/reader/book_info.html:69
+#: reader/templates/reader/book_info.html:70
msgid "Edit this Book"
msgstr "Përpunojeni këtë Libër"
-#: reader/templates/reader/book_info.html:70
+#: reader/templates/reader/book_info.html:71
msgid "View draft"
msgstr "Shihni skicën"
-#: reader/templates/reader/book_info.html:72
+#: reader/templates/reader/book_info.html:73
msgid "Edit book info"
msgstr "Përpunoni të dhëna libri"
-#: reader/templates/reader/book_info.html:75
+#: reader/templates/reader/book_info.html:78
msgid "Book details"
msgstr "Hollësi libri"
-#: reader/templates/reader/book_info.html:80
+#: reader/templates/reader/book_info.html:83
msgid "Owner:"
msgstr "Pronar:"
-#: reader/templates/reader/book_info.html:81
+#: reader/templates/reader/book_info.html:84
msgid "Status:"
msgstr "Gjendje:"
-#: reader/templates/reader/book_info.html:84
+#: reader/templates/reader/book_info.html:87
msgid "(this book is hidden from others)"
msgstr "(ky libër u është fshehur të tjerëve)"
-#: reader/templates/reader/book_info.html:86
+#: reader/templates/reader/book_info.html:89
msgid "(this book is visible to everyone)"
msgstr "(ky libër është i dukshëm për këdo)"
-#: reader/templates/reader/book_info.html:90
+#: reader/templates/reader/book_info.html:93
msgid "Member of group:"
msgstr "Anëtar i grupit:"
-#: reader/templates/reader/book_info.html:92
+#: reader/templates/reader/book_info.html:95
msgid "Current version:"
msgstr "Versioni i tanishëm:"
-#: reader/templates/reader/book_info.html:95
+#: reader/templates/reader/book_info.html:98
msgid "Created:"
msgstr "Krijuar më:"
-#: reader/templates/reader/book_info.html:96
+#: reader/templates/reader/book_info.html:99
msgid "Published:"
msgstr "Botuar më:"
-#: reader/templates/reader/book_info.html:99
+#: reader/templates/reader/book_info.html:102
msgid "Collaborators:"
msgstr "Bashkëpunëtorë:"
-#: reader/templates/reader/book_info.html:107
+#: reader/templates/reader/book_info.html:110
msgid "Online editing:"
msgstr "Përpunim online:"
-#: reader/templates/reader/book_info.html:129
+#: reader/templates/reader/book_info.html:132
msgid "Chapter create"
msgstr "Krijim kreu"
-#: reader/templates/reader/book_info.html:135
+#: reader/templates/reader/book_info.html:138
msgid "Chapter save"
msgstr "Ruajtje kreu"
-#: reader/templates/reader/book_info.html:141
+#: reader/templates/reader/book_info.html:144
msgid "Chapter rename"
msgstr "Riemërtim kreu"
-#: reader/templates/reader/book_info.html:147
+#: reader/templates/reader/book_info.html:150
msgid "Chapter reorder"
msgstr "Rirenditje Kreu"
-#: reader/templates/reader/book_info.html:153
+#: reader/templates/reader/book_info.html:156
msgid "Split chapter"
msgstr "Ndarje kreu"
-#: reader/templates/reader/book_info.html:172
+#: reader/templates/reader/book_info.html:175
msgid "Minor version"
msgstr "Version i vogël"
-#: reader/templates/reader/book_info.html:178
+#: reader/templates/reader/book_info.html:181
msgid "Major version"
msgstr "Version i madh"
-#: reader/templates/reader/book_info.html:185
+#: reader/templates/reader/book_info.html:188
msgid "Uploaded"
msgstr "U ngarkua"
-#: reader/templates/reader/book_info.html:202
+#: reader/templates/reader/book_info.html:205
msgid "Follow changes"
msgstr "Ndiqi ndryshimet"
1  lib/booki/portal/templates/base.html
View
@@ -201,6 +201,7 @@
<li class="msgarchive">{% trans "enter Archive.org ID" %}</li>
<li class="msgwiki">{% trans "enter Wikibooks URL" %}</li>
<li class="msgbooktype">{% trans "enter Booktype URL" %}</li>
+ <li class="deletebook">{% trans "Delete book" %}</li>
</ul>
</body>
10 lib/booki/reader/templates/reader/book_delete.html
View
@@ -0,0 +1,10 @@
+{% load i18n %}
+
+<div class="dialog" title="{% trans "Delete Book" %}">
+ <iframe name="hidden_frame" style="border: 0px; width: 0px; height: 0px"></iframe>
+ <form method="post" action="{% url book_delete book.url_title %}" target="hidden_frame" enctype="multipart/form-data">
+ <p>{% trans "Are you sure you would like to delete this book? You will lose all data associated to this book and you will not be able to undo this operation!" %}</p>
+ <p><b>{% trans "Type full title of the book to delete it" %} - <i>"{{ book.title }}"</i>.</b></p>
+ <input type="text" style="width: 100%;" placeholder="{{ book.title }}" name="title"/>
+ </form>
+</div>
11 lib/booki/reader/templates/reader/book_delete_error.html
View
@@ -0,0 +1,11 @@
+{% load i18n %}
+<!DOCTYPE HTML>
+<html>
+ <body>
+
+ <script>
+ alert("{% trans "Error" %}");
+ </script>
+
+ </body>
+</html>
12 lib/booki/reader/templates/reader/book_delete_redirect.html
View
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML>
+<html>
+ <body>
+
+ <script>
+ setTimeout(function() {
+ parent.window.location = '{% url view_profile request.user.username %}';
+ }, 500);
+ </script>
+
+ </body>
+</html>
3  lib/booki/reader/templates/reader/book_info.html
View
@@ -55,6 +55,7 @@
});
$("A.editinfo").booksparkEditBookInfo({"url": "{% url edit_info book.url_title %}"});
+ $("A.deletebook").booktypeDeleteBook({"url": "{% url book_delete book.url_title %}"});
});
</script>
@@ -70,6 +71,8 @@
<a class="prime viewdraft" href="{% url draft_book book.url_title book_version %}"><nobr>{% trans "View draft" %}</nobr></a>
{% if is_book_admin %}
<a class="prime viewdraft editinfo" href="#"><nobr>{% trans "Edit book info" %}</nobr></a>
+ <a class="prime viewdraft deletebook" href="#"><nobr>{% trans "Delete book" %}</nobr></a>
+
{% endif %}
</div>
<h3>{% trans "Book details" %}</h3>
66 lib/booki/reader/views.py
View
@@ -701,3 +701,69 @@ def edit_info(request, bookid, version=None):
return resp
+
+@transaction.commit_manually
+def book_delete(request, bookid, version=None):
+ """
+ Django View.
+
+ @type request: C{django.http.HttpRequest}
+ @param request: Client Request object
+ @type bookid: C{string}
+ @param bookid: Unique Book ID
+ @type version: C{string}
+ @param verson: Book version
+ """
+
+ try:
+ book = models.Book.objects.get(url_title__iexact=bookid)
+ except models.Book.DoesNotExist:
+ try:
+ resp = pages.ErrorPage(request, "errors/book_does_not_exist.html", {"book_name": bookid})
+ except:
+ transaction.rollback()
+ raise
+ else:
+ transaction.commit()
+
+ return resp
+
+ book_version = book.getVersion(version)
+
+ if request.method == 'POST':
+ title = request.POST.get('title', '')
+
+ try:
+ from booki.utils import security
+
+ bookSecurity = security.getUserSecurityForBook(request.user, book)
+
+ resp = render_to_response('reader/book_delete_error.html', {"request": request})
+
+ if bookSecurity.isAdmin():
+ if title.strip() == book.title.strip():
+ from booki.utils.book import removeBook
+
+ removeBook(book)
+
+ resp = render_to_response('reader/book_delete_redirect.html', {"request": request})
+ except:
+ transaction.rollback()
+ raise
+ else:
+ transaction.commit()
+
+ return resp
+
+
+ try:
+ resp = render_to_response('reader/book_delete.html', {"request": request,
+ "book": book})
+ except:
+ transaction.rollback()
+ raise
+ else:
+ transaction.commit()
+
+ return resp
+
80 lib/booki/site_static/js/general.js
View
@@ -640,3 +640,83 @@
};
})( jQuery );
+
+
+// booktypeDeleteBook
+
+(function( $ ){
+ var postURL;
+ var rootURL;
+
+ var methods = {
+ init : function( options ) {
+ if(options) {
+ postURL = options.url || '';
+ rootURL = options.rooturl || '';
+ }
+
+ return this.each(function(){
+ var $this = $(this);
+
+ $this.click(function() {
+
+ var $d = $("<span/>").load(postURL, function() {
+ var dialog = $("DIV.dialog", $d);
+
+ $(".dialog", $d).dialog({"modal": true,
+ "dialogClass": "deletebookClass",
+ "width": 600,
+ "height": 300,
+ "autoOpen": true,
+ "open": function(event, ui) {
+ stepIndex = 0;
+
+ var buttons = $('.deletebookClass .ui-dialog-buttonset BUTTON');
+ $(buttons[1]).attr('disabled', 'disabled');
+
+ $("INPUT[name=title]", dialog).bind('input propertychange', function() {
+ if($(this).val() === $(this).attr("placeholder")) {
+ $(buttons[1]).removeAttr("disabled");
+ } else {
+ $(buttons[1]).attr('disabled', 'disabled');
+ }
+ });
+ },
+ "close": function(event, ui) {
+ },
+ "buttons": [{"text": $.booki._('cancel', "Cancel"),
+ "click": function() {
+ $(this).dialog('close');
+ }
+ },
+
+ {"text": $.booki._('deletebook', "Delete book"),
+ "click": function() {
+ var $dialog = $(this);
+ var frm = $("FORM", dialog);
+
+ $(frm).submit();
+ }
+ }
+ ]
+ });
+ });
+
+
+ });
+ });
+ return true;
+ }
+ };
+
+
+ $.fn.booktypeDeleteBook = function( method ) {
+ if ( methods[method] ) {
+ return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
+ } else if ( typeof method === 'object' || ! method ) {
+ return methods.init.apply( this, arguments );
+ }
+ };
+
+
+})( jQuery );
Please sign in to comment.
Something went wrong with that request. Please try again.