Browse files

BK-564 Add delete chapter functionality to the table of contents

  • Loading branch information...
1 parent f4ef7ea commit 7ad0795c405487895528a847bd4785508187d8c8 @aerkalov aerkalov committed May 5, 2013
View
76 lib/booki/channels/editor.py
@@ -262,11 +262,14 @@ def _getUser(_user):
except:
pass
+ bookSecurity = security.getUserSecurityForBook(request.user, book)
+
return {"licenses": licenses,
"chapters": chapters,
"metadata": metadata,
"hold": holdChapters,
"users": users,
+ "is_admin": bookSecurity.isAdmin(),
"locks": locks,
"statuses": statuses,
"attachments": attachments,
@@ -513,9 +516,71 @@ def remote_chapter_save(request, message, bookid, version):
return {}
+def remote_chapter_delete(request, message, bookid, version):
+ """
+ Delete chapter.
+
+ Creates Book history record. Sends notification to chat. Sends "chapter_status" message to the channel. Sends "chapter_rename" message to the channel.
+
+ @todo: check security
+
+ Input:
+ - chapterID
+ - chapter - new chapter name
+
+ @type request: C{django.http.HttpRequest}
+ @param request: Client Request object
+ @type message: C{dict}
+ @param message: Message object
+ @type bookid: C{string}
+ @param bookid: Unique Book id
+ @type version: C{string}
+ @param version: Book version
+ """
+
+ book = models.Book.objects.get(id=bookid)
+ book_version = book.getVersion(version)
+
+ # check security
+
+ bookSecurity = security.getUserSecurityForBook(request.user, book)
+
+ if not bookSecurity.isAdmin():
+ transaction.commit()
+
+ return {"result": False, "permission": False}
+
+ try:
+ chap = models.Chapter.objects.get(id=int(message["chapterID"]))
+ chap.delete()
+
+ sputnik.addMessageToChannel(request, "/chat/%s/" % bookid,
+ {"command": "message_info",
+ "from": request.user.username,
+ "message_id": "user_delete_chapter",
+ "message_args": [request.user.username, chap.title]},
+ myself=True)
+ logBookHistory(book = book,
+ version = book_version,
+ args = {'chapter': chap.title},
+ user = request.user,
+ kind = 'chapter_delete')
+
+ sputnik.addMessageToChannel(request, "/booki/book/%s/%s/" % (bookid, version),
+ {"command": "chapter_delete",
+ "chapterID": message["chapterID"]},
+ myself = True)
+ except:
+ transaction.rollback()
+ else:
+
+ transaction.commit()
+
+ return {"result": True}
+
def remote_chapter_rename(request, message, bookid, version):
"""
- Renames chapter name.
+ Rename chapter name.
Creates Book history record. Sends notification to chat. Sends "chapter_status" message to the channel. Sends "chapter_rename" message to the channel.
@@ -537,6 +602,7 @@ def remote_chapter_rename(request, message, bookid, version):
book = models.Book.objects.get(id=bookid)
book_version = book.getVersion(version)
+ # check security
chapter = models.Chapter.objects.get(id=int(message["chapterID"]))
oldTitle = chapter.title
@@ -1424,7 +1490,8 @@ def remote_get_history(request, message, bookid, version):
15: 'clone',
16: 'cover_upload',
17: 'cover_delete',
- 18: 'cover_update'}
+ 18: 'cover_update',
+ 19: 'chapter_delete'}
history = []
@@ -1461,6 +1528,11 @@ def remote_get_history(request, message, bookid, version):
"modified": entry.modified.strftime("%d.%m.%Y %H:%M:%S"),
"user": entry.user.username,
"kind": temp.get(entry.kind,'')})
+ elif entry.kind in [19]:
+ history.append({"args": parseJSON(entry.args),
+ "modified": entry.modified.strftime("%d.%m.%Y %H:%M:%S"),
+ "user": entry.user.username,
+ "kind": temp.get(entry.kind,'')})
else:
history.append({"modified": entry.modified.strftime("%d.%m.%Y %H:%M:%S"),
"description": entry.args,
View
1 lib/booki/editor/models.py
@@ -213,6 +213,7 @@ class Meta:
'chapter_reorder': 4,
'chapter_split': 5,
'chapter_clone': 15,
+ 'chapter_delete': 19,
'section_create': 6,
View
18 lib/booki/editor/templates/editor/edit_book.html
@@ -633,6 +633,13 @@ <h3 class="title"></h3>
<td class="entryModified" valign="top" style="white-space: nowrap">entry.modified</td>
<td></td>
</tr>
+ <tr class="rowChapterDelete template">
+ <td>{% trans "Delete chapter" %}</td>
+ <td valign="top">{% blocktrans %}Deleted <span class="entryFilename"></span>.{% endblocktrans %}</td>
+ <td class="entryUser">entry.user</td>
+ <td class="entryModified" valign="top" style="white-space: nowrap">entry.modified</td>
+ <td></td>
+ </tr>
<tr class="rowGeneric template">
<td class="entryKind">entry.kind</td>
<td></td>
@@ -676,8 +683,8 @@ <h3 class="title"></h3>
<div class="cont">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
- <td width="70%"><div class="title">name</div></td>
- <td width="15%" class="edit"><div class="chapterLinks"><a class="editLink" href="javascript:void(0)">{% trans "EDIT" %}</a> <a class="viewLink" href="javascript:void(0)">{% trans "VIEW" %}</a></div>
+ <td><div class="title">name</div></td>
+ <td width="20%" class="edit"><div class="chapterLinks"><a class="editLink" href="javascript:void(0)">{% trans "EDIT" %}</a> <a class="viewLink" href="javascript:void(0)">{% trans "VIEW" %}</a> <a class="deletechapter" href="javascript:void(0)"><span class="ui-icon ui-icon-trash"></span></a></div>
<div class="lock"><a name="unlockLink" class="lockUser" style="color: white" href="javascript:void(0)">v</a></div></td>
<td width="15%"><div class="status"><a class="statusLink statusName" href="javascript:void(0)">status</a></div>
<div class="extra"></div></td>
@@ -761,4 +768,11 @@ <h3 class="chapterName">chapterName</h3>
</ul>
</form>
</div>
+
+<div class="chapterDeleteDialog template" title="{% trans "Delete chapter" %}">
+ <p>{% trans "Are you sure you would like to delete this chapter? You will lose all data associated to this chapter and you will not be able to undo this operation!" %}</p>
+ <form>
+ <input type="checkbox" name="agree"> {% trans "I understand and agree" %}
+ </form>
+</div>
{% endblock %}
View
2 lib/booki/editor/templates/editor/edit_strings.html
@@ -71,6 +71,7 @@
<li class="message_info_user_changed_chapter_status">{% trans 'User {0} has changed status of chapter "{1}" to "{2}".' %}</li>
<li class="message_info_user_saved_chapter">{% trans 'User {0} has saved chapter "{1}".' %}</li>
<li class="message_info_user_renamed_chapter">{% trans 'User {0} has renamed chapter "{1}" to "{2}".' %}</li>
+<li class="message_info_user_delete_chapter">{% trans 'User {0} has deleted chapter "{1}"".' %}</li>
<li class="message_info_user_new_chapter">{% trans 'User {0} has created new chapter "{1}".' %}</li>
<li class="message_info_user_cloned_chapter">{% trans 'User {0} has cloned chapter "{1}" from book "{2}".' %}</li>
<li class="message_info_published">{% trans '"{0}" is being published.' %}</li>
@@ -89,4 +90,5 @@
<li class="cover_pdf">{% trans "PDF" %}</li>
<li class="cover_notapproved">{% trans "Pending" %}</li>
<li class="cover_approved">{% trans "APPROVED" %}</li>
+<li class="remove_chapter">{% trans "Delete chapter" %}</li>
</ul>
View
BIN lib/booki/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
View
268 lib/booki/locale/en/LC_MESSAGES/django.po
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-03 15:25+0200\n"
+"POT-Creation-Date: 2013-05-05 19:16+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"
@@ -23,15 +23,15 @@ msgid "image"
msgstr ""
#: account/models.py:40 editor/models.py:94 editor/models.py:138
-#: editor/models.py:297
+#: editor/models.py:298
msgid "description"
msgstr ""
-#: account/models.py:41 account/models.py:56 editor/models.py:239
-#: editor/models.py:360 editor/models.py:453 editor/models.py:465
-#: editor/models.py:477 editor/models.py:496
+#: account/models.py:41 account/models.py:56 editor/models.py:240
+#: editor/models.py:361 editor/models.py:454 editor/models.py:466
+#: editor/models.py:478 editor/models.py:497
#: editor/templates/editor/edit_book.html:568
-#: editor/templates/editor/edit_book.html:695
+#: editor/templates/editor/edit_book.html:702
msgid "user"
msgstr ""
@@ -40,8 +40,8 @@ msgid "secretcode"
msgstr ""
#: account/models.py:58 editor/models.py:101 editor/models.py:132
-#: editor/models.py:299 editor/models.py:333 editor/models.py:397
-#: editor/models.py:522 editor/templates/editor/edit_book.html:707
+#: editor/models.py:300 editor/models.py:334 editor/models.py:398
+#: editor/models.py:523 editor/templates/editor/edit_book.html:714
msgid "created"
msgstr ""
@@ -697,7 +697,7 @@ msgid "Back"
msgstr ""
#: account/templates/account/view_profile.html:256
-#: editor/templates/editor/edit_book.html:646 portal/templates/base.html:194
+#: editor/templates/editor/edit_book.html:653 portal/templates/base.html:194
msgid "Create"
msgstr ""
@@ -758,8 +758,8 @@ msgid "Can't find user \"%(username)s\"."
msgstr ""
#: editor/models.py:29 editor/models.py:42 editor/models.py:65
-#: editor/models.py:92 editor/models.py:260 editor/models.py:296
-#: editor/models.py:424 editor/templates/editor/edit_book.html:704
+#: editor/models.py:92 editor/models.py:261 editor/models.py:297
+#: editor/models.py:425 editor/templates/editor/edit_book.html:711
#: editor/templates/editor/edit_strings.html:56
msgid "name"
msgstr ""
@@ -792,22 +792,22 @@ msgstr ""
msgid "not translated"
msgstr ""
-#: editor/models.py:64 editor/models.py:79 editor/models.py:232
-#: editor/models.py:258 editor/models.py:293 editor/models.py:328
-#: editor/models.py:392 editor/models.py:423 editor/models.py:454
-#: editor/models.py:464 editor/models.py:476 editor/models.py:495
+#: editor/models.py:64 editor/models.py:79 editor/models.py:233
+#: editor/models.py:259 editor/models.py:294 editor/models.py:329
+#: editor/models.py:393 editor/models.py:424 editor/models.py:455
+#: editor/models.py:465 editor/models.py:477 editor/models.py:496
msgid "book"
msgstr ""
-#: editor/models.py:66 editor/models.py:426
+#: editor/models.py:66 editor/models.py:427
msgid "weight"
msgstr ""
#: editor/models.py:72 editor/models.py:73
msgid "Book status"
msgstr ""
-#: editor/models.py:80 editor/models.py:518
+#: editor/models.py:80 editor/models.py:519
msgid "notes"
msgstr ""
@@ -839,40 +839,40 @@ msgstr ""
msgid "Booki groups"
msgstr ""
-#: editor/models.py:116 editor/models.py:330
+#: editor/models.py:116 editor/models.py:331
msgid "url title"
msgstr ""
-#: editor/models.py:117 editor/models.py:331
+#: editor/models.py:117 editor/models.py:332
msgid "title"
msgstr ""
-#: editor/models.py:118 editor/models.py:332 editor/models.py:396
+#: editor/models.py:118 editor/models.py:333 editor/models.py:397
msgid "status"
msgstr ""
#: editor/models.py:119
msgid "language"
msgstr ""
-#: editor/models.py:122 editor/models.py:234 editor/models.py:326
-#: editor/models.py:390 editor/models.py:421
+#: editor/models.py:122 editor/models.py:235 editor/models.py:327
+#: editor/models.py:391 editor/models.py:422
msgid "version"
msgstr ""
-#: editor/models.py:124 editor/models.py:455
+#: editor/models.py:124 editor/models.py:456
msgid "group"
msgstr ""
-#: editor/models.py:130 editor/models.py:516
+#: editor/models.py:130 editor/models.py:517
msgid "license"
msgstr ""
#: editor/models.py:135
msgid "hidden"
msgstr ""
-#: editor/models.py:136 editor/models.py:456
+#: editor/models.py:136 editor/models.py:457
msgid "permission"
msgstr ""
@@ -887,179 +887,179 @@ msgstr ""
msgid "Book"
msgstr ""
-#: editor/models.py:235 editor/models.py:357 editor/models.py:425
+#: editor/models.py:236 editor/models.py:358 editor/models.py:426
msgid "chapter"
msgstr ""
-#: editor/models.py:236
+#: editor/models.py:237
msgid "chapter history"
msgstr ""
-#: editor/models.py:237 editor/models.py:334 editor/models.py:359
+#: editor/models.py:238 editor/models.py:335 editor/models.py:360
msgid "modified"
msgstr ""
-#: editor/models.py:238
+#: editor/models.py:239
msgid "args"
msgstr ""
-#: editor/models.py:240 editor/models.py:261
+#: editor/models.py:241 editor/models.py:262
msgid "kind"
msgstr ""
-#: editor/models.py:263
+#: editor/models.py:264
msgid "value string"
msgstr ""
-#: editor/models.py:264
+#: editor/models.py:265
msgid "value integer"
msgstr ""
-#: editor/models.py:265
+#: editor/models.py:266
msgid "value text"
msgstr ""
-#: editor/models.py:266
+#: editor/models.py:267
msgid "value date"
msgstr ""
-#: editor/models.py:286 editor/models.py:287
+#: editor/models.py:287 editor/models.py:288
msgid "Metadata"
msgstr ""
-#: editor/models.py:294
+#: editor/models.py:295
msgid "major"
msgstr ""
-#: editor/models.py:295
+#: editor/models.py:296
msgid "minor"
msgstr ""
-#: editor/models.py:336 editor/models.py:361
-#: editor/templates/editor/edit_book.html:694
+#: editor/models.py:337 editor/models.py:362
+#: editor/templates/editor/edit_book.html:701
msgid "revision"
msgstr ""
-#: editor/models.py:341 messaging/models.py:34
+#: editor/models.py:342 messaging/models.py:34
msgid "content"
msgstr ""
-#: editor/models.py:351
+#: editor/models.py:352
msgid "Chapter"
msgstr ""
-#: editor/models.py:352 editor/templates/editor/edit_book.html:97
+#: editor/models.py:353 editor/templates/editor/edit_book.html:97
msgid "Chapters"
msgstr ""
-#: editor/models.py:362 editor/templates/editor/edit_book.html:697
+#: editor/models.py:363 editor/templates/editor/edit_book.html:704
msgid "comment"
msgstr ""
-#: editor/models.py:368
+#: editor/models.py:369
msgid "Chapter history"
msgstr ""
-#: editor/models.py:394 editor/models.py:500
+#: editor/models.py:395 editor/models.py:501
#: editor/templates/editor/edit_strings.html:57
msgid "filename"
msgstr ""
-#: editor/models.py:407 editor/templates/editor/edit_book.html:655
+#: editor/models.py:408 editor/templates/editor/edit_book.html:662
msgid "Attachment"
msgstr ""
-#: editor/models.py:408
+#: editor/models.py:409
msgid "Attachments"
msgstr ""
-#: editor/models.py:414
+#: editor/models.py:415
msgid "section name"
msgstr ""
-#: editor/models.py:415
+#: editor/models.py:416
msgid "chapter name"
msgstr ""
-#: editor/models.py:416
+#: editor/models.py:417
msgid "line"
msgstr ""
-#: editor/models.py:427
+#: editor/models.py:428
msgid "typeof"
msgstr ""
-#: editor/models.py:441
+#: editor/models.py:442
msgid "Book TOC"
msgstr ""
-#: editor/models.py:442
+#: editor/models.py:443
msgid "Book TOCs"
msgstr ""
-#: editor/models.py:471 editor/models.py:472
+#: editor/models.py:472 editor/models.py:473
msgid "Attribution Exclude"
msgstr ""
-#: editor/models.py:478
+#: editor/models.py:479
msgid "wizzard type"
msgstr ""
-#: editor/models.py:479
+#: editor/models.py:480
msgid "wizzard options"
msgstr ""
-#: editor/models.py:485 editor/models.py:486
+#: editor/models.py:486 editor/models.py:487
msgid "Publish Wizzard"
msgstr ""
-#: editor/models.py:502 editor/templates/editor/cover_manager.html:181
+#: editor/models.py:503 editor/templates/editor/cover_manager.html:181
msgid "Cover title"
msgstr ""
-#: editor/models.py:504 editor/templates/editor/cover_manager.html:150
+#: editor/models.py:505 editor/templates/editor/cover_manager.html:150
#: editor/templates/editor/cover_manager.html:275
msgid "Width"
msgstr ""
-#: editor/models.py:505 editor/templates/editor/cover_manager.html:148
+#: editor/models.py:506 editor/templates/editor/cover_manager.html:148
#: editor/templates/editor/cover_manager.html:273
msgid "Height"
msgstr ""
-#: editor/models.py:506
+#: editor/models.py:507
msgid "Unit"
msgstr ""
-#: editor/models.py:507
+#: editor/models.py:508
msgid "Booksize"
msgstr ""
-#: editor/models.py:509
+#: editor/models.py:510
msgid "Book cover"
msgstr ""
-#: editor/models.py:510
+#: editor/models.py:511
msgid "E-book cover"
msgstr ""
-#: editor/models.py:511
+#: editor/models.py:512
msgid "PDF cover"
msgstr ""
-#: editor/models.py:513
+#: editor/models.py:514
msgid "Cover type"
msgstr ""
-#: editor/models.py:515 editor/templates/editor/wizzard_book.html:157
+#: editor/models.py:516 editor/templates/editor/wizzard_book.html:157
#: editor/templates/editor/wizzard_bookjs.html:158
#: editor/templates/editor/wizzard_ebook.html:116
#: editor/templates/editor/wizzard_odt.html:98
#: editor/templates/editor/wizzard_pdf.html:124
msgid "Cover"
msgstr ""
-#: editor/models.py:520 editor/templates/editor/cover_manager.html:10
+#: editor/models.py:521 editor/templates/editor/cover_manager.html:10
#: editor/templates/editor/cover_manager.html:303
msgid "Approved"
msgstr ""
@@ -1217,7 +1217,7 @@ msgid "All"
msgstr ""
#: editor/templates/editor/cover_manager.html:11
-#: editor/templates/editor/edit_strings.html:90
+#: editor/templates/editor/edit_strings.html:91
msgid "Pending"
msgstr ""
@@ -1538,7 +1538,7 @@ msgstr ""
#: editor/templates/editor/cover_manager.html:111
#: editor/templates/editor/cover_manager.html:248
#: editor/templates/editor/cover_manager.html:297
-#: editor/templates/editor/edit_strings.html:89
+#: editor/templates/editor/edit_strings.html:90
#: editor/templates/editor/wizzard_book.html:187
#: editor/templates/editor/wizzard_bookjs.html:188
msgid "PDF"
@@ -1565,7 +1565,7 @@ msgstr ""
#: editor/templates/editor/cover_manager.html:123
#: editor/templates/editor/cover_manager.html:239
-#: editor/templates/editor/edit_strings.html:84
+#: editor/templates/editor/edit_strings.html:85
#: editor/templates/editor/wizzard_book.html:169
#: editor/templates/editor/wizzard_bookjs.html:170
msgid "Spine"
@@ -1609,7 +1609,7 @@ msgstr ""
#: editor/templates/editor/cover_manager.html:162
#: editor/templates/editor/edit_book.html:295
-#: editor/templates/editor/edit_book.html:647
+#: editor/templates/editor/edit_book.html:654
msgid "Save"
msgstr ""
@@ -1626,7 +1626,7 @@ msgid "This image is currently assigned as the following cover type:"
msgstr ""
#: editor/templates/editor/cover_manager.html:292
-#: editor/templates/editor/edit_strings.html:82
+#: editor/templates/editor/edit_strings.html:83
msgid "Back cover"
msgstr ""
@@ -1994,7 +1994,7 @@ msgid "Remove"
msgstr ""
#: editor/templates/editor/edit_book.html:519
-#: editor/templates/editor/edit_book.html:735
+#: editor/templates/editor/edit_book.html:742
msgid "Chapter status"
msgstr ""
@@ -2055,7 +2055,7 @@ msgid "action"
msgstr ""
#: editor/templates/editor/edit_book.html:569
-#: editor/templates/editor/edit_book.html:696
+#: editor/templates/editor/edit_book.html:703
msgid "time"
msgstr ""
@@ -2097,42 +2097,52 @@ msgstr ""
msgid "Delete"
msgstr ""
-#: editor/templates/editor/edit_book.html:645
-#: editor/templates/editor/edit_strings.html:86
+#: editor/templates/editor/edit_book.html:637
+#: editor/templates/editor/edit_book.html:772
+#: editor/templates/editor/edit_strings.html:93
+msgid "Delete chapter"
+msgstr ""
+
+#: editor/templates/editor/edit_book.html:638
+msgid "Deleted <span class=\"entryFilename\"></span>."
+msgstr ""
+
+#: editor/templates/editor/edit_book.html:652
+#: editor/templates/editor/edit_strings.html:87
msgid "Unknown"
msgstr ""
-#: editor/templates/editor/edit_book.html:648
+#: editor/templates/editor/edit_book.html:655
msgid "Rename"
msgstr ""
-#: editor/templates/editor/edit_book.html:649
+#: editor/templates/editor/edit_book.html:656
msgid "Reorder"
msgstr ""
-#: editor/templates/editor/edit_book.html:650
+#: editor/templates/editor/edit_book.html:657
msgid "Split"
msgstr ""
-#: editor/templates/editor/edit_book.html:651
+#: editor/templates/editor/edit_book.html:658
#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr ""
-#: editor/templates/editor/edit_book.html:652
+#: editor/templates/editor/edit_book.html:659
#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr ""
-#: editor/templates/editor/edit_book.html:653
+#: editor/templates/editor/edit_book.html:660
msgid "Minor"
msgstr ""
-#: editor/templates/editor/edit_book.html:654
+#: editor/templates/editor/edit_book.html:661
msgid "Major"
msgstr ""
-#: editor/templates/editor/edit_book.html:680
+#: editor/templates/editor/edit_book.html:687
#: reader/templates/reader/book_chapter.html:51
#: reader/templates/reader/book_chapter.html:57
#: reader/templates/reader/book_view.html:40
@@ -2142,107 +2152,117 @@ msgstr ""
msgid "EDIT"
msgstr ""
-#: editor/templates/editor/edit_book.html:680
+#: editor/templates/editor/edit_book.html:687
msgid "VIEW"
msgstr ""
-#: editor/templates/editor/edit_book.html:689
+#: editor/templates/editor/edit_book.html:696
msgid "back to history index"
msgstr ""
-#: editor/templates/editor/edit_book.html:689
+#: editor/templates/editor/edit_book.html:696
msgid "Compare revisions"
msgstr ""
-#: editor/templates/editor/edit_book.html:693
+#: editor/templates/editor/edit_book.html:700
msgid "compare"
msgstr ""
-#: editor/templates/editor/edit_book.html:705
+#: editor/templates/editor/edit_book.html:712
#: editor/templates/editor/edit_strings.html:58
msgid "dimension"
msgstr ""
-#: editor/templates/editor/edit_book.html:706
+#: editor/templates/editor/edit_book.html:713
#: editor/templates/editor/edit_strings.html:59
msgid "size"
msgstr ""
-#: editor/templates/editor/edit_book.html:710
-#: editor/templates/editor/edit_book.html:730
+#: editor/templates/editor/edit_book.html:717
+#: editor/templates/editor/edit_book.html:737
msgid "back to chapter history"
msgstr ""
-#: editor/templates/editor/edit_book.html:712
+#: editor/templates/editor/edit_book.html:719
msgid "Normal view"
msgstr ""
-#: editor/templates/editor/edit_book.html:714
+#: editor/templates/editor/edit_book.html:721
msgid "Source view"
msgstr ""
-#: editor/templates/editor/edit_book.html:715
+#: editor/templates/editor/edit_book.html:722
msgid "Revert to this revision"
msgstr ""
-#: editor/templates/editor/edit_book.html:716
+#: editor/templates/editor/edit_book.html:723
msgid "No such revision."
msgstr ""
-#: editor/templates/editor/edit_book.html:719
+#: editor/templates/editor/edit_book.html:726
msgid "User:"
msgstr ""
-#: editor/templates/editor/edit_book.html:720
+#: editor/templates/editor/edit_book.html:727
msgid "Modified:"
msgstr ""
-#: editor/templates/editor/edit_book.html:721
+#: editor/templates/editor/edit_book.html:728
msgid "Version:"
msgstr ""
-#: editor/templates/editor/edit_book.html:722
+#: editor/templates/editor/edit_book.html:729
msgid "Revision:"
msgstr ""
-#: editor/templates/editor/edit_book.html:723
+#: editor/templates/editor/edit_book.html:730
msgid "Comment"
msgstr ""
-#: editor/templates/editor/edit_book.html:725
+#: editor/templates/editor/edit_book.html:732
msgid "previous"
msgstr ""
-#: editor/templates/editor/edit_book.html:725
+#: editor/templates/editor/edit_book.html:732
msgid "next"
msgstr ""
-#: editor/templates/editor/edit_book.html:730
+#: editor/templates/editor/edit_book.html:737
msgid "Show side by side"
msgstr ""
-#: editor/templates/editor/edit_book.html:731
+#: editor/templates/editor/edit_book.html:738
msgid ""
"Compare revision <span class=\"revision1Name\">revision1</span> with "
"revision <span class=\"revision2Name\">revision2</span>"
msgstr ""
-#: editor/templates/editor/edit_book.html:736
+#: editor/templates/editor/edit_book.html:743
msgid "Select new chapter status:"
msgstr ""
-#: editor/templates/editor/edit_book.html:749
+#: editor/templates/editor/edit_book.html:756
msgid "Chapter statuses"
msgstr ""
-#: editor/templates/editor/edit_book.html:754
+#: editor/templates/editor/edit_book.html:761
msgid "New status:"
msgstr ""
-#: editor/templates/editor/edit_book.html:759
+#: editor/templates/editor/edit_book.html:766
msgid "Chapter statuses:"
msgstr ""
+#: editor/templates/editor/edit_book.html:773
+msgid ""
+"Are you sure you would like to delete this chapter? You will lose all data "
+"associated to this chapter and you will not be able to undo this operation!"
+msgstr ""
+
+#: editor/templates/editor/edit_book.html:775
+msgid "I understand and agree"
+msgstr ""
+
#: editor/templates/editor/edit_publish.html:10
#: editor/templates/editor/edit_publish.html:17
#: editor/templates/editor/edit_publish.html:24
@@ -2518,58 +2538,62 @@ msgid "User {0} has renamed chapter \"{1}\" to \"{2}\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:74
-msgid "User {0} has created new chapter \"{1}\"."
+msgid "User {0} has deleted chapter \"{1}\"\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:75
-msgid "User {0} has cloned chapter \"{1}\" from book \"{2}\"."
+msgid "User {0} has created new chapter \"{1}\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:76
-msgid "\"{0}\" is being published."
+msgid "User {0} has cloned chapter \"{1}\" from book \"{2}\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:77
-msgid "User {0} has created new section \"{1}\"."
+msgid "\"{0}\" is being published."
msgstr ""
#: editor/templates/editor/edit_strings.html:78
-msgid "User {0} has reverted chapter \"{1}\" to revision {2}."
+msgid "User {0} has created new section \"{1}\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:79
-msgid "User {0} has saved notes for book \"{1}\"."
+msgid "User {0} has reverted chapter \"{1}\" to revision {2}."
msgstr ""
#: editor/templates/editor/edit_strings.html:80
-msgid "Close"
+msgid "User {0} has saved notes for book \"{1}\"."
msgstr ""
#: editor/templates/editor/edit_strings.html:81
+msgid "Close"
+msgstr ""
+
+#: editor/templates/editor/edit_strings.html:82
msgid "Do you really want to delete this cover?"
msgstr ""
-#: editor/templates/editor/edit_strings.html:83
+#: editor/templates/editor/edit_strings.html:84
msgid "Front cover"
msgstr ""
-#: editor/templates/editor/edit_strings.html:85
+#: editor/templates/editor/edit_strings.html:86
msgid "Full cover"
msgstr ""
-#: editor/templates/editor/edit_strings.html:87
+#: editor/templates/editor/edit_strings.html:88
#: editor/templates/editor/wizzard_book.html:186
#: editor/templates/editor/wizzard_bookjs.html:187
msgid "BOOK"
msgstr ""
-#: editor/templates/editor/edit_strings.html:88
+#: editor/templates/editor/edit_strings.html:89
#: editor/templates/editor/wizzard_book.html:188
#: editor/templates/editor/wizzard_bookjs.html:189
msgid "E-BOOK"
msgstr ""
-#: editor/templates/editor/edit_strings.html:91
+#: editor/templates/editor/edit_strings.html:92
msgid "APPROVED"
msgstr ""
View
BIN lib/booki/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
View
271 lib/booki/locale/es/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-03 15:25+0200\n"
+"POT-Creation-Date: 2013-05-05 19:16+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"
@@ -27,15 +27,15 @@ msgid "image"
msgstr "imagen"
#: account/models.py:40 editor/models.py:94 editor/models.py:138
-#: editor/models.py:297
+#: editor/models.py:298
msgid "description"
msgstr "descripción"
-#: account/models.py:41 account/models.py:56 editor/models.py:239
-#: editor/models.py:360 editor/models.py:453 editor/models.py:465
-#: editor/models.py:477 editor/models.py:496
+#: account/models.py:41 account/models.py:56 editor/models.py:240
+#: editor/models.py:361 editor/models.py:454 editor/models.py:466
+#: editor/models.py:478 editor/models.py:497
#: editor/templates/editor/edit_book.html:568
-#: editor/templates/editor/edit_book.html:695
+#: editor/templates/editor/edit_book.html:702
msgid "user"
msgstr "usuario"
@@ -44,8 +44,8 @@ msgid "secretcode"
msgstr "código secreto"
#: account/models.py:58 editor/models.py:101 editor/models.py:132
-#: editor/models.py:299 editor/models.py:333 editor/models.py:397
-#: editor/models.py:522 editor/templates/editor/edit_book.html:707
+#: editor/models.py:300 editor/models.py:334 editor/models.py:398
+#: editor/models.py:523 editor/templates/editor/edit_book.html:714
msgid "created"
msgstr "creado"
@@ -745,7 +745,7 @@ msgid "Back"
msgstr "Retornar"
#: account/templates/account/view_profile.html:256
-#: editor/templates/editor/edit_book.html:646 portal/templates/base.html:194
+#: editor/templates/editor/edit_book.html:653 portal/templates/base.html:194
msgid "Create"
msgstr "Crear"
@@ -806,8 +806,8 @@ msgid "Can't find user \"%(username)s\"."
msgstr "No es posible encontrar el usuario \"%(username)s\""
#: editor/models.py:29 editor/models.py:42 editor/models.py:65
-#: editor/models.py:92 editor/models.py:260 editor/models.py:296
-#: editor/models.py:424 editor/templates/editor/edit_book.html:704
+#: editor/models.py:92 editor/models.py:261 editor/models.py:297
+#: editor/models.py:425 editor/templates/editor/edit_book.html:711
#: editor/templates/editor/edit_strings.html:56
msgid "name"
msgstr "nombre"
@@ -840,22 +840,22 @@ msgstr "no publicado"
msgid "not translated"
msgstr "no traducido"
-#: editor/models.py:64 editor/models.py:79 editor/models.py:232
-#: editor/models.py:258 editor/models.py:293 editor/models.py:328
-#: editor/models.py:392 editor/models.py:423 editor/models.py:454
-#: editor/models.py:464 editor/models.py:476 editor/models.py:495
+#: editor/models.py:64 editor/models.py:79 editor/models.py:233
+#: editor/models.py:259 editor/models.py:294 editor/models.py:329
+#: editor/models.py:393 editor/models.py:424 editor/models.py:455
+#: editor/models.py:465 editor/models.py:477 editor/models.py:496
msgid "book"
msgstr "libro"
-#: editor/models.py:66 editor/models.py:426
+#: editor/models.py:66 editor/models.py:427
msgid "weight"
msgstr "peso"
#: editor/models.py:72 editor/models.py:73
msgid "Book status"
msgstr "Estado del libro"
-#: editor/models.py:80 editor/models.py:518
+#: editor/models.py:80 editor/models.py:519
msgid "notes"
msgstr "notas"
@@ -887,40 +887,40 @@ msgstr "Grupo Booki"
msgid "Booki groups"
msgstr "Grupos Booki"
-#: editor/models.py:116 editor/models.py:330
+#: editor/models.py:116 editor/models.py:331
msgid "url title"
msgstr "título de URL"
-#: editor/models.py:117 editor/models.py:331
+#: editor/models.py:117 editor/models.py:332
msgid "title"
msgstr "título"
-#: editor/models.py:118 editor/models.py:332 editor/models.py:396
+#: editor/models.py:118 editor/models.py:333 editor/models.py:397
msgid "status"
msgstr "estado"
#: editor/models.py:119
msgid "language"
msgstr "idioma"
-#: editor/models.py:122 editor/models.py:234 editor/models.py:326
-#: editor/models.py:390 editor/models.py:421
+#: editor/models.py:122 editor/models.py:235 editor/models.py:327
+#: editor/models.py:391 editor/models.py:422
msgid "version"
msgstr "versión"
-#: editor/models.py:124 editor/models.py:455
+#: editor/models.py:124 editor/models.py:456
msgid "group"
msgstr "grupo"
-#: editor/models.py:130 editor/models.py:516
+#: editor/models.py:130 editor/models.py:517
msgid "license"
msgstr "licencia"
#: editor/models.py:135
msgid "hidden"
msgstr "oculto"
-#: editor/models.py:136 editor/models.py:456
+#: editor/models.py:136 editor/models.py:457
msgid "permission"
msgstr "permiso"
@@ -935,179 +935,179 @@ msgstr "portada"
msgid "Book"
msgstr "Libro"
-#: editor/models.py:235 editor/models.py:357 editor/models.py:425
+#: editor/models.py:236 editor/models.py:358 editor/models.py:426
msgid "chapter"
msgstr "capítulo"
-#: editor/models.py:236
+#: editor/models.py:237
msgid "chapter history"
msgstr "historial del capítulo"
-#: editor/models.py:237 editor/models.py:334 editor/models.py:359
+#: editor/models.py:238 editor/models.py:335 editor/models.py:360
msgid "modified"
msgstr "modificado"
-#: editor/models.py:238
+#: editor/models.py:239
msgid "args"
msgstr "argumentos"
-#: editor/models.py:240 editor/models.py:261
+#: editor/models.py:241 editor/models.py:262
msgid "kind"
msgstr "tipo"
-#: editor/models.py:263
+#: editor/models.py:264
msgid "value string"
msgstr "cadena de valor"
-#: editor/models.py:264
+#: editor/models.py:265
msgid "value integer"
msgstr "integral de valor"
-#: editor/models.py:265
+#: editor/models.py:266
msgid "value text"
msgstr "texto de valor"
-#: editor/models.py:266
+#: editor/models.py:267
msgid "value date"
msgstr "fecha de valor"
-#: editor/models.py:286 editor/models.py:287
+#: editor/models.py:287 editor/models.py:288
msgid "Metadata"
msgstr "Metadatos"
-#: editor/models.py:294
+#: editor/models.py:295
msgid "major"
msgstr "mayor"
-#: editor/models.py:295
+#: editor/models.py:296
msgid "minor"
msgstr "menor"
-#: editor/models.py:336 editor/models.py:361
-#: editor/templates/editor/edit_book.html:694
+#: editor/models.py:337 editor/models.py:362
+#: editor/templates/editor/edit_book.html:701
msgid "revision"
msgstr "revisión"
-#: editor/models.py:341 messaging/models.py:34
+#: editor/models.py:342 messaging/models.py:34
msgid "content"
msgstr "contenido"
-#: editor/models.py:351
+#: editor/models.py:352
msgid "Chapter"
msgstr "Capítulo"
-#: editor/models.py:352 editor/templates/editor/edit_book.html:97
+#: editor/models.py:353 editor/templates/editor/edit_book.html:97
msgid "Chapters"
msgstr "Capítulos"
-#: editor/models.py:362 editor/templates/editor/edit_book.html:697
+#: editor/models.py:363 editor/templates/editor/edit_book.html:704
msgid "comment"
msgstr "comentario"
-#: editor/models.py:368
+#: editor/models.py:369
msgid "Chapter history"
msgstr "Historial del capítulo"
-#: editor/models.py:394 editor/models.py:500
+#: editor/models.py:395 editor/models.py:501
#: editor/templates/editor/edit_strings.html:57
msgid "filename"
msgstr "nombre del archivo"
-#: editor/models.py:407 editor/templates/editor/edit_book.html:655
+#: editor/models.py:408 editor/templates/editor/edit_book.html:662
msgid "Attachment"
msgstr "Adjunto"
-#: editor/models.py:408
+#: editor/models.py:409
msgid "Attachments"
msgstr "Adjuntos"
-#: editor/models.py:414
+#: editor/models.py:415
msgid "section name"
msgstr "nombre de sección"
-#: editor/models.py:415
+#: editor/models.py:416
msgid "chapter name"
msgstr "nombre del capítulo"
-#: editor/models.py:416
+#: editor/models.py:417
msgid "line"
msgstr "línea"
-#: editor/models.py:427
+#: editor/models.py:428
msgid "typeof"
msgstr "tipo de"
-#: editor/models.py:441
+#: editor/models.py:442
msgid "Book TOC"
msgstr "Tabla de contenidos del libro"
-#: editor/models.py:442
+#: editor/models.py:443
msgid "Book TOCs"
msgstr "Tablas de contenido del libro"
-#: editor/models.py:471 editor/models.py:472
+#: editor/models.py:472 editor/models.py:473
msgid "Attribution Exclude"
msgstr "Excluido de toda Atribución"
-#: editor/models.py:478
+#: editor/models.py:479
msgid "wizzard type"
msgstr "wizzard tipo"
-#: editor/models.py:479
+#: editor/models.py:480
msgid "wizzard options"
msgstr "opciones del asistente"
-#: editor/models.py:485 editor/models.py:486
+#: editor/models.py:486 editor/models.py:487
msgid "Publish Wizzard"
msgstr "Publicar Asistente"
-#: editor/models.py:502 editor/templates/editor/cover_manager.html:181
+#: editor/models.py:503 editor/templates/editor/cover_manager.html:181
msgid "Cover title"
msgstr "Título de la portada"
-#: editor/models.py:504 editor/templates/editor/cover_manager.html:150
+#: editor/models.py:505 editor/templates/editor/cover_manager.html:150
#: editor/templates/editor/cover_manager.html:275
msgid "Width"
msgstr "Ancho:"
-#: editor/models.py:505 editor/templates/editor/cover_manager.html:148
+#: editor/models.py:506 editor/templates/editor/cover_manager.html:148
#: editor/templates/editor/cover_manager.html:273
msgid "Height"
msgstr "Alto:"
-#: editor/models.py:506
+#: editor/models.py:507
msgid "Unit"
msgstr "Unidad"
-#: editor/models.py:507
+#: editor/models.py:508
msgid "Booksize"
msgstr "Tamaño del libro "
-#: editor/models.py:509
+#: editor/models.py:510
msgid "Book cover"
msgstr "Portada del libro"
-#: editor/models.py:510
+#: editor/models.py:511
msgid "E-book cover"
msgstr "Portada del e-libro"
-#: editor/models.py:511
+#: editor/models.py:512
msgid "PDF cover"
msgstr "Portada PDF"
-#: editor/models.py:513
+#: editor/models.py:514
msgid "Cover type"
msgstr "Tipo de portada"
-#: editor/models.py:515 editor/templates/editor/wizzard_book.html:157
+#: editor/models.py:516 editor/templates/editor/wizzard_book.html:157
#: editor/templates/editor/wizzard_bookjs.html:158
#: editor/templates/editor/wizzard_ebook.html:116
#: editor/templates/editor/wizzard_odt.html:98
#: editor/templates/editor/wizzard_pdf.html:124
msgid "Cover"
msgstr "Portada"
-#: editor/models.py:520 editor/templates/editor/cover_manager.html:10
+#: editor/models.py:521 editor/templates/editor/cover_manager.html:10
#: editor/templates/editor/cover_manager.html:303
msgid "Approved"
msgstr "Aprobado"
@@ -1265,7 +1265,7 @@ msgid "All"
msgstr "Todo"
#: editor/templates/editor/cover_manager.html:11
-#: editor/templates/editor/edit_strings.html:90
+#: editor/templates/editor/edit_strings.html:91
msgid "Pending"
msgstr "Pendiente"
@@ -1593,7 +1593,7 @@ msgstr "Libro Electrónico "
#: editor/templates/editor/cover_manager.html:111
#: editor/templates/editor/cover_manager.html:248
#: editor/templates/editor/cover_manager.html:297
-#: editor/templates/editor/edit_strings.html:89
+#: editor/templates/editor/edit_strings.html:90
#: editor/templates/editor/wizzard_book.html:187
#: editor/templates/editor/wizzard_bookjs.html:188
msgid "PDF"
@@ -1620,7 +1620,7 @@ msgstr "Contraportada"
#: editor/templates/editor/cover_manager.html:123
#: editor/templates/editor/cover_manager.html:239
-#: editor/templates/editor/edit_strings.html:84
+#: editor/templates/editor/edit_strings.html:85
#: editor/templates/editor/wizzard_book.html:169
#: editor/templates/editor/wizzard_bookjs.html:170
msgid "Spine"
@@ -1668,7 +1668,7 @@ msgstr ""
#: editor/templates/editor/cover_manager.html:162
#: editor/templates/editor/edit_book.html:295
-#: editor/templates/editor/edit_book.html:647
+#: editor/templates/editor/edit_book.html:654
msgid "Save"
msgstr "Guardar"
@@ -1686,7 +1686,7 @@ msgstr ""
"Esta imagen está actualmente asignada como el siguiente tipo de portada:"
#: editor/templates/editor/cover_manager.html:292
-#: editor/templates/editor/edit_strings.html:82
+#: editor/templates/editor/edit_strings.html:83
msgid "Back cover"
msgstr "Contraportada"
@@ -2069,7 +2069,7 @@ msgid "Remove"
msgstr "Remover"
#: editor/templates/editor/edit_book.html:519
-#: editor/templates/editor/edit_book.html:735
+#: editor/templates/editor/edit_book.html:742
msgid "Chapter status"
msgstr "Estatus de capítulo"
@@ -2134,7 +2134,7 @@ msgid "action"
msgstr "acción"
#: editor/templates/editor/edit_book.html:569
-#: editor/templates/editor/edit_book.html:696
+#: editor/templates/editor/edit_book.html:703
msgid "time"
msgstr "hora"
@@ -2180,42 +2180,54 @@ msgstr "Capítulo importado"
msgid "Delete"
msgstr "Eliminar"
-#: editor/templates/editor/edit_book.html:645
-#: editor/templates/editor/edit_strings.html:86
+#: editor/templates/editor/edit_book.html:637
+#: editor/templates/editor/edit_book.html:772
+#: editor/templates/editor/edit_strings.html:93
+#, fuzzy
+msgid "Delete chapter"
+msgstr "Crear nuevo capítulo"
+
+#: editor/templates/editor/edit_book.html:638
+#, fuzzy
+msgid "Deleted <span class=\"entryFilename\"></span>."
+msgstr "Eliminado <span class=\"entryFilename\">entry.args.filename</span>."
+
+#: editor/templates/editor/edit_book.html:652
+#: editor/templates/editor/edit_strings.html:87
msgid "Unknown"
msgstr "Desconocido"
-#: editor/templates/editor/edit_book.html:648
+#: editor/templates/editor/edit_book.html:655
msgid "Rename"
msgstr "Renombrar"
-#: editor/templates/editor/edit_book.html:649
+#: editor/templates/editor/edit_book.html:656
msgid "Reorder"
msgstr "Reordenar"
-#: editor/templates/editor/edit_book.html:650
+#: editor/templates/editor/edit_book.html:657
msgid "Split"
msgstr "Dividir"
-#: editor/templates/editor/edit_book.html:651
+#: editor/templates/editor/edit_book.html:658
#: reader/templates/reader/book_info.html:162
msgid "Section create"
msgstr "Crear sección"
-#: editor/templates/editor/edit_book.html:652
+#: editor/templates/editor/edit_book.html:659
#: reader/templates/reader/book_info.html:169
msgid "Book create"
msgstr "Crear libro"
-#: editor/templates/editor/edit_book.html:653
+#: editor/templates/editor/edit_book.html:660
msgid "Minor"
msgstr "Menor"
-#: editor/templates/editor/edit_book.html:654
+#: editor/templates/editor/edit_book.html:661
msgid "Major"
msgstr "Mayor"
-#: editor/templates/editor/edit_book.html:680
+#: editor/templates/editor/edit_book.html:687
#: reader/templates/reader/book_chapter.html:51
#: reader/templates/reader/book_chapter.html:57
#: reader/templates/reader/book_view.html:40
@@ -2225,109 +2237,119 @@ msgstr "Mayor"
msgid "EDIT"
msgstr "EDITAR"
-#: editor/templates/editor/edit_book.html:680
+#: editor/templates/editor/edit_book.html:687
msgid "VIEW"
msgstr "VER"
-#: editor/templates/editor/edit_book.html:689
+#: editor/templates/editor/edit_book.html:696
msgid "back to history index"
msgstr "volver al índice del historial"
-#: editor/templates/editor/edit_book.html:689
+#: editor/templates/editor/edit_book.html:696
msgid "Compare revisions"
msgstr "Comparar revisiones"
-#: editor/templates/editor/edit_book.html:693
+#: editor/templates/editor/edit_book.html:700
msgid "compare"
msgstr "comparar"
-#: editor/templates/editor/edit_book.html:705
+#: editor/templates/editor/edit_book.html:712
#: editor/templates/editor/edit_strings.html:58
msgid "dimension"
msgstr "dimensión"
-#: editor/templates/editor/edit_book.html:706
+#: editor/templates/editor/edit_book.html:713
#: editor/templates/editor/edit_strings.html:59
msgid "size"
msgstr "tamaño"
-#: editor/templates/editor/edit_book.html:710
-#: editor/templates/editor/edit_book.html:730
+#: editor/templates/editor/edit_book.html:717
+#: editor/templates/editor/edit_book.html:737
msgid "back to chapter history"
msgstr "volver al histórico de capítulos"
-#: editor/templates/editor/edit_book.html:712
+#: editor/templates/editor/edit_book.html:719
msgid "Normal view"
msgstr "Vista normal"
-#: editor/templates/editor/edit_book.html:714
+#: editor/templates/editor/edit_book.html:721
msgid "Source view"
msgstr "Vista de código"
-#: editor/templates/editor/edit_book.html:715
+#: editor/templates/editor/edit_book.html:722
msgid "Revert to this revision"
msgstr "Revertir a esta versión"
-#: editor/templates/editor/edit_book.html:716
+#: editor/templates/editor/edit_book.html:723
msgid "No such revision."
msgstr "No existe tal versión."
-#: editor/templates/editor/edit_book.html:719
+#: editor/templates/editor/edit_book.html:726
msgid "User:"
msgstr "Usuario:"
-#: editor/templates/editor/edit_book.html:720
+#: editor/templates/editor/edit_book.html:727
msgid "Modified:"
msgstr "Modificado:"
-#: editor/templates/editor/edit_book.html:721
+#: editor/templates/editor/edit_book.html:728
msgid "Version:"
msgstr "Versión:"
-#: editor/templates/editor/edit_book.html:722
+#: editor/templates/editor/edit_book.html:729
msgid "Revision:"
msgstr "Revisión:"
-#: editor/templates/editor/edit_book.html:723
+#: editor/templates/editor/edit_book.html:730
msgid "Comment"
msgstr "Comentario"
-#: editor/templates/editor/edit_book.html:725
+#: editor/templates/editor/edit_book.html:732
msgid "previous"
msgstr "previo"
-#: editor/templates/editor/edit_book.html:725
+#: editor/templates/editor/edit_book.html:732
msgid "next"
msgstr "siguiente"
-#: editor/templates/editor/edit_book.html:730
+#: editor/templates/editor/edit_book.html:737
msgid "Show side by side"
msgstr "Mostrar páginas confrontadas"
-#: editor/templates/editor/edit_book.html:731
+#: editor/templates/editor/edit_book.html:738
msgid ""
"Compare revision <span class=\"revision1Name\">revision1</span> with "
"revision <span class=\"revision2Name\">revision2</span>"
msgstr ""
"Comparar revisión <span class=\"revision1Name\">revision1</span> with "
"revision <span class=\"revision2Name\">revision2</span>"
-#: editor/templates/editor/edit_book.html:736
+#: editor/templates/editor/edit_book.html:743
msgid "Select new chapter status:"
msgstr "Seleccionar estatus del capítulo nuevo:"
-#: editor/templates/editor/edit_book.html:749
+#: editor/templates/editor/edit_book.html:756
msgid "Chapter statuses"
msgstr "Estatus de los capítulos"
-#: editor/templates/editor/edit_book.html:754
+#: editor/templates/editor/edit_book.html:761
msgid "New status:"
msgstr "Nuevo estatus:"
-#: editor/templates/editor/edit_book.html:759
+#: editor/templates/editor/edit_book.html:766
msgid "Chapter statuses:"
msgstr "Estatus de los capítulos:"
+#: editor/templates/editor/edit_book.html:773
+msgid ""
+"Are you sure you would like to delete this chapter? You will lose all data "
+"associated to this chapter and you will not be able to undo this operation!"
+msgstr ""
+
+#: editor/templates/editor/edit_book.html:775
+msgid "I understand and agree"
+msgstr ""
+
#: editor/templates/editor/edit_publish.html:10
#: editor/templates/editor/edit_publish.html:17
#: editor/templates/editor/edit_publish.html:24
@@ -2608,58 +2630,63 @@ msgid "User {0} has renamed chapter \"{1}\" to \"{2}\"."
msgstr "El usuario {0} renombró el capítulo de \"{1}\" a \"{2}\"."
#: editor/templates/editor/edit_strings.html:74
+#, fuzzy
+msgid "User {0} has deleted chapter \"{1}\"\"."
+msgstr "El usuario {0} guardó el capítulo \"{1}\"."
+
+#: editor/templates/editor/edit_strings.html:75
msgid "User {0} has created new chapter \"{1}\"."
msgstr "User {0} has created new chapter \"{1}\"."
-#: editor/templates/editor/edit_strings.html:75
+#: editor/templates/editor/edit_strings.html:76
msgid "User {0} has cloned chapter \"{1}\" from book \"{2}\"."
msgstr "User {0} has cloned chapter \"{1}\" from book \"{2}\"."
-#: editor/templates/editor/edit_strings.html:76
+#: editor/templates/editor/edit_strings.html:77
msgid "\"{0}\" is being published."
msgstr "\"{0}\" se está publicando."
-#: editor/templates/editor/edit_strings.html:77
+#: editor/templates/editor/edit_strings.html:78
msgid "User {0} has created new section \"{1}\"."
msgstr "El usuario {0} ha creado la nueva sección \"{1}\"."
-#: editor/templates/editor/edit_strings.html:78
+#: editor/templates/editor/edit_strings.html:79
msgid "User {0} has reverted chapter \"{1}\" to revision {2}."
msgstr "El usuario {0} regresó el capítulo \"{1}\" a estado de revisión {2}."
-#: editor/templates/editor/edit_strings.html:79
+#: editor/templates/editor/edit_strings.html:80
msgid "User {0} has saved notes for book \"{1}\"."
msgstr "El usuario {0} guardó notas para el libro s\"{1}\"."
-#: editor/templates/editor/edit_strings.html:80
+#: editor/templates/editor/edit_strings.html:81
msgid "Close"
msgstr "Cerrar"
-#: editor/templates/editor/edit_strings.html:81
+#: editor/templates/editor/edit_strings.html:82
msgid "Do you really want to delete this cover?"
msgstr "¿Realmente deseas eliminar esta portada?"
-#: editor/templates/editor/edit_strings.html:83
+#: editor/templates/editor/edit_strings.html:84
msgid "Front cover"
msgstr "Portada frontal"
-#: editor/templates/editor/edit_strings.html:85
+#: editor/templates/editor/edit_strings.html:86
msgid "Full cover"
msgstr "Portada entera"
-#: editor/templates/editor/edit_strings.html:87
+#: editor/templates/editor/edit_strings.html:88
#: editor/templates/editor/wizzard_book.html:186
#: editor/templates/editor/wizzard_bookjs.html:187
msgid "BOOK"
msgstr "LIBRO"
-#: editor/templates/editor/edit_strings.html:88
+#: editor/templates/editor/edit_strings.html:89
#: editor/templates/editor/wizzard_book.html:188
#: editor/templates/editor/wizzard_bookjs.html:189
msgid "E-BOOK"
msgstr "E-Libro"
-#: editor/templates/editor/edit_strings.html:91
+#: editor/templates/editor/edit_strings.html:92
msgid "APPROVED"
msgstr "Aprobado"
View
BIN lib/booki/locale/fi/LC_MESSAGES/django.mo
Binary file not shown.
View
271 lib/booki/locale/fi/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Booktype 1.6.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-05-03 15:25+0200\n"
+"POT-Creation-Date: 2013-05-05 19:16+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"
@@ -27,15 +27,15 @@ msgid "image"
msgstr "kuva"
#: account/models.py:40 editor/models.py:94 editor/models.py:138
-#: editor/models.py:297
+#: editor/models.py:298
msgid "description"
msgstr "kuvaus"
-#: account/models.py:41 account/models.py:56 editor/models.py:239
-#: editor/models.py:360 editor/models.py:453 editor/models.py:465
-#: editor/models.py:477 editor/models.py:496
+#: account/models.py:41 account/models.py:56 editor/models.py:240
+#: editor/models.py:361 editor/models.py:454 editor/models.py:466
+#: editor/models.py:478 editor/models.py:497
#: editor/templates/editor/edit_book.html:568
-#: editor/templates/editor/edit_book.html:695
+#: editor/templates/editor/edit_book.html:702
msgid "user"
msgstr "käyttäjä"
@@ -44,8 +44,8 @@ msgid "secretcode"
msgstr "salainen koodi"
#: account/models.py:58 editor/models.py:101 editor/models.py:132
-#: editor/models.py:299 editor/models.py:333 editor/models.py:397
-#: editor/models.py:522 editor/templates/editor/edit_book.html:707
+#: editor/models.py:300 editor/models.py:334 editor/models.py:398
+#: editor/models.py:523 editor/templates/editor/edit_book.html:714
msgid "created"
msgstr "luotu"
@@ -748,7 +748,7 @@ msgid "Back"
msgstr ""
#: account/templates/account/view_profile.html:256
-#: editor/templates/editor/edit_book.html:646 portal/templates/base.html:194
+#: editor/templates/editor/edit_book.html:653 portal/templates/base.html:194
msgid "Create"
msgstr "Luo"
@@ -814,8 +814,8 @@ msgid "Can't find user \"%(username)s\"."
msgstr "Ei löydy käyttäjää \"%(username)s\"."
#: editor/models.py:29 editor/models.py:42 editor/models.py:65
-#: editor/models.py:92 editor/models.py:260 editor/models.py:296
-#: editor/models.py:424 editor/templates/editor/edit_book.html:704
+#: editor/models.py:92 editor/models.py:261 editor/models.py:297
+#: editor/models.py:425 editor/templates/editor/edit_book.html:711
#: editor/templates/editor/edit_strings.html:56
msgid "name"
msgstr "nimi"
@@ -848,22 +848,22 @@ msgstr "ei julkaistu"
msgid "not translated"
msgstr "ei käännetty"
-#: editor/models.py:64 editor/models.py:79 editor/models.py:232
-#: editor/models.py:258 editor/models.py:293 editor/models.py:328
-#: editor/models.py:392 editor/models.py:423 editor/models.py:454
-#: editor/models.py:464 editor/models.py:476 editor/models.py:495
+#: editor/models.py:64 editor/models.py:79 editor/models.py:233
+#: editor/models.py:259 editor/models.py:294 editor/models.py:329
+#: editor/models.py:393 editor/models.py:424 editor/models.py:455
+#: editor/models.py:465 editor/models.py:477 editor/models.py:496
msgid "book"
msgstr "kirja"
-#: editor/models.py:66 editor/models.py:426
+#: editor/models.py:66 editor/models.py:427
msgid "weight"
msgstr "paino"
#: editor/models.py:72 editor/models.py:73
msgid "Book status"
msgstr "Kirjan tila"
-#: editor/models.py:80 editor/models.py:518
+#: editor/models.py:80 editor/models.py:519
msgid "notes"
msgstr "muistiinpanot"
@@ -895,40 +895,40 @@ msgstr "Booktype-ryhmä"
msgid "Booki groups"
msgstr "Booktype-ryhmät"
-#: editor/models.py:116 editor/models.py:330
+#: editor/models.py:116 editor/models.py:331
msgid "url title"
msgstr "url-otsikko"
-#: editor/models.py:117 editor/models.py:331
+#: editor/models.py:117 editor/models.py:332
msgid "title"
msgstr "otsikko"
-#: editor/models.py:118 editor/models.py:332 editor/models.py:396
+#: editor/models.py:118 editor/models.py:333 editor/models.py:397
msgid "status"
msgstr "tila"
#: editor/models.py:119
msgid "language"
msgstr "kieli"
-#: editor/models.py:122 editor/models.py:234 editor/models.py:326
-#: editor/models.py:390 editor/models.py:421
+#: editor/models.py:122 editor/models.py:235 editor/models.py:327
+#: editor/models.py:391 editor/models.py:422
msgid "version"
msgstr "versio"
-#: editor/models.py:124 editor/models.py:455
+#: editor/models.py:124 editor/models.py:456
msgid "group"
msgstr "ryhmä"
-#: editor/models.py:130 editor/models.py:516
+#: editor/models.py:130 editor/models.py:517
msgid "license"
msgstr "lisenssi"
#: editor/models.py:135
msgid "hidden"
msgstr "piilossa"
-#: editor/models.py:136 editor/models.py:456
+#: editor/models.py:136 editor/models.py:457
msgid "permission"
msgstr "käyttöoikeus"
@@ -943,178 +943,178 @@ msgstr "kansikuva"
msgid "Book"
msgstr "Kirja"
-#: editor/models.py:235 editor/models.py:357 editor/models.py:425
+#: editor/models.py:236 editor/models.py:358 editor/models.py:426
msgid "chapter"
msgstr "luku"
-#: editor/models.py:236
+#: editor/models.py:237
msgid "chapter history"
msgstr "luvun historia"
-#: editor/models.py:237 editor/models.py:334 editor/models.py:359
+#: editor/models.py:238 editor/models.py:335 editor/models.py:360
msgid "modified"
msgstr "muokattu"
-#: editor/models.py:238
+#: editor/models.py:239
msgid "args"
msgstr "argumentit"
-#: editor/models.py:240 editor/models.py:261
+#: editor/models.py:241 editor/models.py:262
msgid "kind"
msgstr "tyyppiä"
-#: editor/models.py:263
+#: editor/models.py:264
msgid "value string"
msgstr "merkkijonon arvo"
-#: editor/models.py:264
+#: editor/models.py:265
msgid "value integer"
msgstr "kokonaisluvun arvo"
-#: editor/models.py:265
+#: editor/models.py:266
msgid "value text"
msgstr "tekstin arvo"
-#: editor/models.py:266
+#: editor/models.py:267
msgid "value date"
msgstr "päivämäärän arvo"
-#: editor/models.py:286 editor/models.py:287
+#: editor/models.py:287 editor/models.py:288
msgid "Metadata"
msgstr "Metatieto"
-#: editor/models.py:294
+#: editor/models.py:295
msgid "major"
msgstr "suuri"
-#: editor/models.py:295
+#: editor/models.py:296
msgid "minor"
msgstr "pieni"
-#: editor/models.py:336 editor/models.py:361
-#: editor/templates/editor/edit_book.html:694
+#: editor/models.py:337 editor/models.py:362
+#: editor/templates/editor/edit_book.html:701
msgid "revision"
msgstr "revisio"
-#: editor/models.py:341 messaging/models.py:34
+#: editor/models.py:342 messaging/models.py:34
msgid "content"
msgstr "sisältö"
-#: editor/models.py:351
+#: editor/models.py:352
msgid "Chapter"
msgstr "Luku"
-#: editor/models.py:352 editor/templates/editor/edit_book.html:97
+#: editor/models.py:353 editor/templates/editor/edit_book.html:97
msgid "Chapters"
msgstr "Luvut"
-#: editor/models.py:362 editor/templates/editor/edit_book.html:697
+#: editor/models.py:363 editor/templates/editor/edit_book.html:704
msgid "comment"
msgstr "kommentti"
-#: editor/models.py:368
+#: editor/models.py:369
msgid "Chapter history"
msgstr "Luvun historia"
-#: editor/models.py:394 editor/models.py:500
+#: editor/models.py:395 editor/models.py:501
#: editor/templates/editor/edit_strings.html:57
msgid "filename"
msgstr "tiedostonimi"
-#: editor/models.py:407 editor/templates/editor/edit_book.html:655
+#: editor/models.py:408 editor/templates/editor/edit_book.html:662
msgid "Attachment"
msgstr "Liite"
-#: editor/models.py:408
+#: editor/models.py:409
msgid "Attachments"
msgstr "Liitteet"
-#: editor/models.py:414
+#: editor/models.py:415
msgid "section name"
msgstr "osan nimi"
-#: editor/models.py:415
+#: editor/models.py:416
msgid "chapter name"
msgstr "luvun nimi"
-#: editor/models.py:416
+#: editor/models.py:417
msgid "line"
msgstr "rivi"
-#: editor/models.py:427
+#: editor/models.py:428
msgid "typeof"
msgstr "tyyppiä"
-#: editor/models.py:441
+#: editor/models.py:442
msgid "Book TOC"
msgstr "Kirjan sisällysluettelo"
-#: editor/models.py:442
+#: editor/models.py:443
msgid "Book TOCs"
msgstr "Kirjan sisällysluettelot"
-#: editor/models.py:471 editor/models.py:472
+#: editor/models.py:472 editor/models.py:473
msgid "Attribution Exclude"
msgstr "Poista tekijänoikeus"
-#: editor/models.py:478
+#: editor/models.py:479
msgid "wizzard type"
msgstr "velhon tyyppi"
-#: editor/models.py:479
+#: editor/models.py:480
msgid "wizzard options"
msgstr "velhon asetukset"
-#: editor/models.py:485 editor/models.py:486
+#: editor/models.py:486 editor/models.py:487
msgid "Publish Wizzard"
msgstr "Julkaisuvelho"
-#: editor/models.py:502 editor/templates/editor/cover_manager.html:181
+#: editor/models.py:503 editor/templates/editor/cover_manager.html:181
#, fuzzy
msgid "Cover title"
msgstr "url-otsikko"
-#: editor/models.py:504 editor/templates/editor/cover_manager.html:150
+#: editor/models.py:505 editor/templates/editor/cover_manager.html:150
#: editor/templates/editor/cover_manager.html:275
#, fuzzy
msgid "Width"
msgstr "Leveys:"
-#: editor/models.py:505 editor/templates/editor/cover_manager.html:148
+#: editor/models.py:506 editor/templates/editor/cover_manager.html:148
#: editor/templates/editor/cover_manager.html:273
#, fuzzy
msgid "Height"
msgstr "Korkeus:"
-#: editor/models.py:506
+#: editor/models.py:507
msgid "Unit"
msgstr ""
-#: editor/models.py:507
+#: editor/models.py:508
#, fuzzy
msgid "Booksize"
msgstr "Kirjan muistiinpano"
-#: editor/models.py:509
+#: editor/models.py:510
#, fuzzy
msgid "Book cover"
msgstr "Kirjan muistiinpano"
-#: editor/models.py:510
+#: editor/models.py:511
msgid "E-book cover"
msgstr ""
-#: editor/models.py:511
+#: editor/models.py:512
#, fuzzy
msgid "PDF cover"
msgstr "kansikuva"
-#: editor/models.py:513
+#: editor/models.py:514
#, fuzzy
msgid "Cover type"
msgstr "Valitse tuontityyppi."
-#: editor/models.py:515 editor/templates/editor/wizzard_book.html:157
+#: editor/models.py:516 editor/templates/editor/wizzard_book.html:157
#: editor/templates/editor/wizzard_bookjs.html:158
#: editor/templates/editor/wizzard_ebook.html:116
#: editor/templates/editor/wizzard_odt.html:98
@@ -1123,7 +1123,7 @@ msgstr "Valitse tuontityyppi."