mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 13:01:08 +00:00
Merge pull request #833 from mouse-reeve/all-books-view
Adds "all books" view
This commit is contained in:
commit
2d95f9c1f5
9 changed files with 178 additions and 150 deletions
|
@ -20,10 +20,13 @@
|
|||
<div class="column">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li class="{% if shelf.identifier == 'all' %}is-active{% endif %}">
|
||||
<a href="{% url 'user-shelves' user|username %}"{% if shelf.identifier == 'all' %} aria-current="page"{% endif %}>{% trans "All books" %}</a>
|
||||
</li>
|
||||
{% for shelf_tab in shelves %}
|
||||
<li class="{% if shelf_tab.identifier == shelf.identifier %}is-active{% endif %}">
|
||||
<a href="{{ shelf_tab.local_path }}"{% if shelf_tab.identifier == shelf.identifier %} aria-current="page"{% endif %}>{% if shelf_tab.identifier == 'to-read' %}{% trans "To Read" %}{% elif shelf_tab.identifier == 'reading' %}{% trans "Currently Reading" %}{% elif shelf_tab.identifier == 'read' %}{% trans "Read" %}{% else %}{{ shelf_tab.name }}{% endif %}</a>
|
||||
</li>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -50,7 +53,7 @@
|
|||
</span>
|
||||
</h2>
|
||||
</div>
|
||||
{% if is_self %}
|
||||
{% if is_self and shelf.id %}
|
||||
<div class="column is-narrow">
|
||||
{% trans "Edit shelf" as button_text %}
|
||||
{% include 'snippets/toggle/open_button.html' with text=button_text icon="pencil" controls_text="edit-shelf-form" focus="edit-shelf-form-header" %}
|
||||
|
@ -81,7 +84,6 @@
|
|||
{% endif %}
|
||||
</tr>
|
||||
{% for book in books %}
|
||||
{% with book=book.book %}
|
||||
<tr class="book-preview">
|
||||
<td>
|
||||
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book size="small" %}</a>
|
||||
|
@ -113,13 +115,12 @@
|
|||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{% trans "This shelf is empty." %}</p>
|
||||
{% if shelf.editable %}
|
||||
{% if shelf.id and shelf.editable %}
|
||||
<form name="delete-shelf" action="/delete-shelf/{{ shelf.id }}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ request.user.id }}">
|
||||
|
|
|
@ -151,8 +151,8 @@ urlpatterns = [
|
|||
re_path(
|
||||
r"^list/(?P<list_id>\d+)/curate/?$", views.Curate.as_view(), name="list-curate"
|
||||
),
|
||||
# shelf
|
||||
re_path(r"%s/books/?$" % user_path, views.user_shelves_page, name="user-shelves"),
|
||||
# Uyser books
|
||||
re_path(r"%s/books/?$" % user_path, views.Shelf.as_view(), name="user-shelves"),
|
||||
re_path(
|
||||
r"^%s/(helf|books)/(?P<shelf_identifier>[\w-]+)(.json)?/?$" % user_path,
|
||||
views.Shelf.as_view(),
|
||||
|
|
|
@ -27,7 +27,7 @@ from .rss_feed import RssFeed
|
|||
from .password import PasswordResetRequest, PasswordReset, ChangePassword
|
||||
from .search import Search
|
||||
from .shelf import Shelf
|
||||
from .shelf import user_shelves_page, create_shelf, delete_shelf
|
||||
from .shelf import create_shelf, delete_shelf
|
||||
from .shelf import shelve, unshelve
|
||||
from .site import Site
|
||||
from .status import CreateStatus, DeleteStatus
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
""" shelf views"""
|
||||
from collections import namedtuple
|
||||
|
||||
from django.db import IntegrityError
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.core.paginator import Paginator
|
||||
|
@ -6,6 +8,7 @@ from django.http import HttpResponseBadRequest, HttpResponseNotFound
|
|||
from django.shortcuts import get_object_or_404, redirect
|
||||
from django.template.response import TemplateResponse
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.utils.translation import gettext as _
|
||||
from django.views import View
|
||||
from django.views.decorators.http import require_POST
|
||||
|
||||
|
@ -13,14 +16,14 @@ from bookwyrm import forms, models
|
|||
from bookwyrm.activitypub import ActivitypubResponse
|
||||
from bookwyrm.settings import PAGE_LENGTH
|
||||
from .helpers import is_api_request, get_edition, get_user_from_username
|
||||
from .helpers import handle_reading_status
|
||||
from .helpers import handle_reading_status, privacy_filter, object_visible_to_user
|
||||
|
||||
|
||||
# pylint: disable= no-self-use
|
||||
class Shelf(View):
|
||||
""" shelf page """
|
||||
|
||||
def get(self, request, username, shelf_identifier):
|
||||
def get(self, request, username, shelf_identifier=None):
|
||||
""" display a shelf """
|
||||
try:
|
||||
user = get_user_from_username(request.user, username)
|
||||
|
@ -32,35 +35,30 @@ class Shelf(View):
|
|||
except ValueError:
|
||||
page = 1
|
||||
|
||||
shelves = privacy_filter(request.user, user.shelf_set)
|
||||
|
||||
# get the shelf and make sure the logged in user should be able to see it
|
||||
if shelf_identifier:
|
||||
shelf = user.shelf_set.get(identifier=shelf_identifier)
|
||||
if not object_visible_to_user(request.user, shelf):
|
||||
return HttpResponseNotFound()
|
||||
# this is a constructed "all books" view, with a fake "shelf" obj
|
||||
else:
|
||||
shelf = user.shelf_set.first()
|
||||
FakeShelf = namedtuple(
|
||||
"Shelf", ("identifier", "name", "user", "books", "privacy")
|
||||
)
|
||||
books = models.Edition.objects.filter(
|
||||
shelfbook__shelf__in=shelves.all()
|
||||
).distinct()
|
||||
shelf = FakeShelf("all", _("All books"), user, books, "public")
|
||||
|
||||
is_self = request.user == user
|
||||
|
||||
shelves = user.shelf_set
|
||||
if not is_self:
|
||||
follower = user.followers.filter(id=request.user.id).exists()
|
||||
# make sure the user has permission to view the shelf
|
||||
if shelf.privacy == "direct" or (
|
||||
shelf.privacy == "followers" and not follower
|
||||
):
|
||||
return HttpResponseNotFound()
|
||||
|
||||
# only show other shelves that should be visible
|
||||
if follower:
|
||||
shelves = shelves.filter(privacy__in=["public", "followers"])
|
||||
else:
|
||||
shelves = shelves.filter(privacy="public")
|
||||
|
||||
if is_api_request(request):
|
||||
return ActivitypubResponse(shelf.to_activity(**request.GET))
|
||||
|
||||
paginated = Paginator(
|
||||
models.ShelfBook.objects.filter(user=user, shelf=shelf)
|
||||
.order_by("-updated_date")
|
||||
.all(),
|
||||
shelf.books.order_by("-updated_date").all(),
|
||||
PAGE_LENGTH,
|
||||
)
|
||||
|
||||
|
@ -95,11 +93,6 @@ class Shelf(View):
|
|||
return redirect(shelf.local_path)
|
||||
|
||||
|
||||
def user_shelves_page(request, username):
|
||||
""" default shelf """
|
||||
return Shelf.as_view()(request, username, None)
|
||||
|
||||
|
||||
@login_required
|
||||
@require_POST
|
||||
def create_shelf(request):
|
||||
|
@ -176,7 +169,8 @@ def shelve(request):
|
|||
models.ShelfBook.objects.create(
|
||||
book=book, shelf=desired_shelf, user=request.user
|
||||
)
|
||||
# The book is already on this shelf. Might be good to alert, or reject the action?
|
||||
# The book is already on this shelf.
|
||||
# Might be good to alert, or reject the action?
|
||||
except IntegrityError:
|
||||
pass
|
||||
return redirect(request.headers.get("Referer", "/"))
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-31 09:22-0700\n"
|
||||
"POT-Creation-Date: 2021-03-31 10:36-0700\n"
|
||||
"PO-Revision-Date: 2021-03-02 17:19-0800\n"
|
||||
"Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n"
|
||||
"Language-Team: English <LL@li.org>\n"
|
||||
|
@ -418,7 +418,7 @@ msgid "John Doe, Jane Smith"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/book/edit_book.html:155
|
||||
#: bookwyrm/templates/user/shelf.html:72
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
msgid "Cover"
|
||||
msgstr ""
|
||||
|
||||
|
@ -860,14 +860,14 @@ msgid "There are no books here right now! Try searching for a book to get starte
|
|||
msgstr "Hier sind noch keine Bücher! Versuche nach Büchern zu suchen um loszulegen"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:23
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
#, fuzzy
|
||||
#| msgid "Read"
|
||||
msgid "To Read"
|
||||
msgstr "Auf der Leseliste"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:24
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
#, fuzzy
|
||||
#| msgid "Start reading"
|
||||
msgid "Currently Reading"
|
||||
|
@ -875,7 +875,7 @@ msgstr "Gerade lesend"
|
|||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:25
|
||||
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Read"
|
||||
msgstr "Gelesen"
|
||||
|
||||
|
@ -1003,12 +1003,12 @@ msgstr "Buch"
|
|||
|
||||
#: bookwyrm/templates/import_status.html:115
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:10
|
||||
#: bookwyrm/templates/user/shelf.html:73
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
msgid "Title"
|
||||
msgstr "Titel"
|
||||
|
||||
#: bookwyrm/templates/import_status.html:118
|
||||
#: bookwyrm/templates/user/shelf.html:74
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
msgid "Author"
|
||||
msgstr "Autor*in"
|
||||
|
||||
|
@ -2031,7 +2031,7 @@ msgid "Review:"
|
|||
msgstr "Bewerten"
|
||||
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:29
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
#: bookwyrm/templates/user/shelf.html:81
|
||||
msgid "Rating"
|
||||
msgstr ""
|
||||
|
||||
|
@ -2501,7 +2501,8 @@ msgid "Update shelf"
|
|||
msgstr "Regal aktualisieren"
|
||||
|
||||
#: bookwyrm/templates/user/followers.html:7
|
||||
#: bookwyrm/templates/user/following.html:7 bookwyrm/templates/user/user.html:9
|
||||
#: bookwyrm/templates/user/following.html:7
|
||||
#: bookwyrm/templates/user/user.html:10
|
||||
msgid "User Profile"
|
||||
msgstr "Benutzerprofil"
|
||||
|
||||
|
@ -2532,62 +2533,68 @@ msgstr "Listen: %(username)s"
|
|||
msgid "Create list"
|
||||
msgstr "Liste Erstellen"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:34
|
||||
#: bookwyrm/templates/user/shelf.html:24 bookwyrm/views/shelf.py:53
|
||||
#, fuzzy
|
||||
#| msgid "books"
|
||||
msgid "All books"
|
||||
msgstr "Bücher"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:37
|
||||
msgid "Create shelf"
|
||||
msgstr "Regal erstellen"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:55
|
||||
#: bookwyrm/templates/user/shelf.html:58
|
||||
msgid "Edit shelf"
|
||||
msgstr "Regal bearbeiten"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
msgid "Shelved"
|
||||
msgstr "Ins Regal gestellt"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
#: bookwyrm/templates/user/shelf.html:79
|
||||
msgid "Started"
|
||||
msgstr "Gestartet"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
#: bookwyrm/templates/user/shelf.html:80
|
||||
msgid "Finished"
|
||||
msgstr "Abgeschlossen"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:121
|
||||
#: bookwyrm/templates/user/shelf.html:122
|
||||
msgid "This shelf is empty."
|
||||
msgstr "Dieses Regal ist leer."
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:127
|
||||
#: bookwyrm/templates/user/shelf.html:128
|
||||
msgid "Delete shelf"
|
||||
msgstr "Regal löschen"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:15
|
||||
#: bookwyrm/templates/user/user.html:16
|
||||
msgid "Edit profile"
|
||||
msgstr "Profil bearbeiten"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:33
|
||||
#: bookwyrm/templates/user/user.html:34
|
||||
#, fuzzy, python-format
|
||||
#| msgid "See all %(size)s"
|
||||
msgid "View all %(size)s"
|
||||
msgstr "Alle %(size)s anzeigen"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:46
|
||||
#: bookwyrm/templates/user/user.html:47
|
||||
msgid "View all books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:58
|
||||
#: bookwyrm/templates/user/user.html:59
|
||||
#, python-format
|
||||
msgid "Set a reading goal for %(year)s"
|
||||
msgstr "Leseziel für %(year)s setzen"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:64
|
||||
#: bookwyrm/templates/user/user.html:65
|
||||
msgid "User Activity"
|
||||
msgstr "Nutzer*innenaktivität"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:67
|
||||
#: bookwyrm/templates/user/user.html:68
|
||||
msgid "RSS feed"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:78
|
||||
#: bookwyrm/templates/user/user.html:79
|
||||
msgid "No activities yet!"
|
||||
msgstr "Noch keine Aktivitäten!"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-31 09:22-0700\n"
|
||||
"POT-Creation-Date: 2021-03-31 10:36-0700\n"
|
||||
"PO-Revision-Date: 2021-02-28 17:19-0800\n"
|
||||
"Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n"
|
||||
"Language-Team: English <LL@li.org>\n"
|
||||
|
@ -396,7 +396,7 @@ msgid "John Doe, Jane Smith"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/book/edit_book.html:155
|
||||
#: bookwyrm/templates/user/shelf.html:72
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
msgid "Cover"
|
||||
msgstr ""
|
||||
|
||||
|
@ -813,18 +813,18 @@ msgid "There are no books here right now! Try searching for a book to get starte
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:23
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "To Read"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:24
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Currently Reading"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:25
|
||||
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Read"
|
||||
msgstr ""
|
||||
|
||||
|
@ -950,12 +950,12 @@ msgstr ""
|
|||
|
||||
#: bookwyrm/templates/import_status.html:115
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:10
|
||||
#: bookwyrm/templates/user/shelf.html:73
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
msgid "Title"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/import_status.html:118
|
||||
#: bookwyrm/templates/user/shelf.html:74
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
msgid "Author"
|
||||
msgstr ""
|
||||
|
||||
|
@ -1915,7 +1915,7 @@ msgid "Review:"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:29
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
#: bookwyrm/templates/user/shelf.html:81
|
||||
msgid "Rating"
|
||||
msgstr ""
|
||||
|
||||
|
@ -2360,7 +2360,8 @@ msgid "Update shelf"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/followers.html:7
|
||||
#: bookwyrm/templates/user/following.html:7 bookwyrm/templates/user/user.html:9
|
||||
#: bookwyrm/templates/user/following.html:7
|
||||
#: bookwyrm/templates/user/user.html:10
|
||||
msgid "User Profile"
|
||||
msgstr ""
|
||||
|
||||
|
@ -2391,61 +2392,65 @@ msgstr ""
|
|||
msgid "Create list"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:34
|
||||
#: bookwyrm/templates/user/shelf.html:24 bookwyrm/views/shelf.py:53
|
||||
msgid "All books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:37
|
||||
msgid "Create shelf"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:55
|
||||
#: bookwyrm/templates/user/shelf.html:58
|
||||
msgid "Edit shelf"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
msgid "Shelved"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
#: bookwyrm/templates/user/shelf.html:79
|
||||
msgid "Started"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
#: bookwyrm/templates/user/shelf.html:80
|
||||
msgid "Finished"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:121
|
||||
#: bookwyrm/templates/user/shelf.html:122
|
||||
msgid "This shelf is empty."
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:127
|
||||
#: bookwyrm/templates/user/shelf.html:128
|
||||
msgid "Delete shelf"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:15
|
||||
#: bookwyrm/templates/user/user.html:16
|
||||
msgid "Edit profile"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:33
|
||||
#: bookwyrm/templates/user/user.html:34
|
||||
#, python-format
|
||||
msgid "View all %(size)s"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:46
|
||||
#: bookwyrm/templates/user/user.html:47
|
||||
msgid "View all books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:58
|
||||
#: bookwyrm/templates/user/user.html:59
|
||||
#, python-format
|
||||
msgid "Set a reading goal for %(year)s"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:64
|
||||
#: bookwyrm/templates/user/user.html:65
|
||||
msgid "User Activity"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:67
|
||||
#: bookwyrm/templates/user/user.html:68
|
||||
msgid "RSS feed"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:78
|
||||
#: bookwyrm/templates/user/user.html:79
|
||||
msgid "No activities yet!"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-31 09:22-0700\n"
|
||||
"POT-Creation-Date: 2021-03-31 10:36-0700\n"
|
||||
"PO-Revision-Date: 2021-03-19 11:49+0800\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -413,7 +413,7 @@ msgid "John Doe, Jane Smith"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/book/edit_book.html:155
|
||||
#: bookwyrm/templates/user/shelf.html:72
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
msgid "Cover"
|
||||
msgstr "Portada:"
|
||||
|
||||
|
@ -857,18 +857,18 @@ msgid "There are no books here right now! Try searching for a book to get starte
|
|||
msgstr "¡No hay ningún libro aqui ahorita! Busca a un libro para empezar"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:23
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "To Read"
|
||||
msgstr "Para leer"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:24
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Currently Reading"
|
||||
msgstr "Leyendo actualmente"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:25
|
||||
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Read"
|
||||
msgstr "Leer"
|
||||
|
||||
|
@ -996,12 +996,12 @@ msgstr "Libro"
|
|||
|
||||
#: bookwyrm/templates/import_status.html:115
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:10
|
||||
#: bookwyrm/templates/user/shelf.html:73
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
msgid "Title"
|
||||
msgstr "Título"
|
||||
|
||||
#: bookwyrm/templates/import_status.html:118
|
||||
#: bookwyrm/templates/user/shelf.html:74
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
msgid "Author"
|
||||
msgstr "Autor/Autora"
|
||||
|
||||
|
@ -2023,7 +2023,7 @@ msgid "Review:"
|
|||
msgstr "Reseña"
|
||||
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:29
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
#: bookwyrm/templates/user/shelf.html:81
|
||||
msgid "Rating"
|
||||
msgstr "Calificación"
|
||||
|
||||
|
@ -2493,7 +2493,8 @@ msgid "Update shelf"
|
|||
msgstr "Actualizar estante"
|
||||
|
||||
#: bookwyrm/templates/user/followers.html:7
|
||||
#: bookwyrm/templates/user/following.html:7 bookwyrm/templates/user/user.html:9
|
||||
#: bookwyrm/templates/user/following.html:7
|
||||
#: bookwyrm/templates/user/user.html:10
|
||||
msgid "User Profile"
|
||||
msgstr "Perfil de usuario"
|
||||
|
||||
|
@ -2524,62 +2525,68 @@ msgstr "Listas: %(username)s"
|
|||
msgid "Create list"
|
||||
msgstr "Crear lista"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:34
|
||||
#: bookwyrm/templates/user/shelf.html:24 bookwyrm/views/shelf.py:53
|
||||
#, fuzzy
|
||||
#| msgid "books"
|
||||
msgid "All books"
|
||||
msgstr "libros"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:37
|
||||
msgid "Create shelf"
|
||||
msgstr "Crear estante"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:55
|
||||
#: bookwyrm/templates/user/shelf.html:58
|
||||
msgid "Edit shelf"
|
||||
msgstr "Editar estante"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
msgid "Shelved"
|
||||
msgstr "Archivado"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
#: bookwyrm/templates/user/shelf.html:79
|
||||
msgid "Started"
|
||||
msgstr "Empezado"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
#: bookwyrm/templates/user/shelf.html:80
|
||||
msgid "Finished"
|
||||
msgstr "Terminado"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:121
|
||||
#: bookwyrm/templates/user/shelf.html:122
|
||||
msgid "This shelf is empty."
|
||||
msgstr "Este estante está vacio."
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:127
|
||||
#: bookwyrm/templates/user/shelf.html:128
|
||||
msgid "Delete shelf"
|
||||
msgstr "Eliminar estante"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:15
|
||||
#: bookwyrm/templates/user/user.html:16
|
||||
msgid "Edit profile"
|
||||
msgstr "Editar perfil"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:33
|
||||
#: bookwyrm/templates/user/user.html:34
|
||||
#, fuzzy, python-format
|
||||
#| msgid "See all %(size)s"
|
||||
msgid "View all %(size)s"
|
||||
msgstr "Ver %(size)s"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:46
|
||||
#: bookwyrm/templates/user/user.html:47
|
||||
msgid "View all books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:58
|
||||
#: bookwyrm/templates/user/user.html:59
|
||||
#, python-format
|
||||
msgid "Set a reading goal for %(year)s"
|
||||
msgstr "Establecer una meta de lectura para %(year)s"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:64
|
||||
#: bookwyrm/templates/user/user.html:65
|
||||
msgid "User Activity"
|
||||
msgstr "Actividad de usuario"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:67
|
||||
#: bookwyrm/templates/user/user.html:68
|
||||
msgid "RSS feed"
|
||||
msgstr "Feed RSS"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:78
|
||||
#: bookwyrm/templates/user/user.html:79
|
||||
msgid "No activities yet!"
|
||||
msgstr "¡Aún no actividades!"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.1.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-31 09:22-0700\n"
|
||||
"POT-Creation-Date: 2021-03-31 10:36-0700\n"
|
||||
"PO-Revision-Date: 2021-03-02 12:37+0100\n"
|
||||
"Last-Translator: Fabien Basmaison <contact@arkhi.org>\n"
|
||||
"Language-Team: Mouse Reeve <LL@li.org>\n"
|
||||
|
@ -422,7 +422,7 @@ msgid "John Doe, Jane Smith"
|
|||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/book/edit_book.html:155
|
||||
#: bookwyrm/templates/user/shelf.html:72
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
msgid "Cover"
|
||||
msgstr "Couverture"
|
||||
|
||||
|
@ -876,14 +876,14 @@ msgid "There are no books here right now! Try searching for a book to get starte
|
|||
msgstr "Aucun livre ici pour l’instant ! Cherchez un livre pour commencer"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:23
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
#, fuzzy
|
||||
#| msgid "Read"
|
||||
msgid "To Read"
|
||||
msgstr "Lu"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:24
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
#, fuzzy
|
||||
#| msgid "Started reading"
|
||||
msgid "Currently Reading"
|
||||
|
@ -891,7 +891,7 @@ msgstr "Commencer la lecture"
|
|||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:25
|
||||
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Read"
|
||||
msgstr "Lu"
|
||||
|
||||
|
@ -1023,12 +1023,12 @@ msgstr "Livre"
|
|||
|
||||
#: bookwyrm/templates/import_status.html:115
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:10
|
||||
#: bookwyrm/templates/user/shelf.html:73
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
msgid "Title"
|
||||
msgstr "Titre"
|
||||
|
||||
#: bookwyrm/templates/import_status.html:118
|
||||
#: bookwyrm/templates/user/shelf.html:74
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
msgid "Author"
|
||||
msgstr "Auteur ou autrice"
|
||||
|
||||
|
@ -2055,7 +2055,7 @@ msgid "Review:"
|
|||
msgstr "Critique"
|
||||
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:29
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
#: bookwyrm/templates/user/shelf.html:81
|
||||
msgid "Rating"
|
||||
msgstr "Note"
|
||||
|
||||
|
@ -2531,7 +2531,8 @@ msgid "Update shelf"
|
|||
msgstr "Mettre l’étagère à jour"
|
||||
|
||||
#: bookwyrm/templates/user/followers.html:7
|
||||
#: bookwyrm/templates/user/following.html:7 bookwyrm/templates/user/user.html:9
|
||||
#: bookwyrm/templates/user/following.html:7
|
||||
#: bookwyrm/templates/user/user.html:10
|
||||
msgid "User Profile"
|
||||
msgstr "Profil"
|
||||
|
||||
|
@ -2563,62 +2564,68 @@ msgstr "Listes : %(username)s"
|
|||
msgid "Create list"
|
||||
msgstr "Créer une liste"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:34
|
||||
#: bookwyrm/templates/user/shelf.html:24 bookwyrm/views/shelf.py:53
|
||||
#, fuzzy
|
||||
#| msgid "books"
|
||||
msgid "All books"
|
||||
msgstr "livres"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:37
|
||||
msgid "Create shelf"
|
||||
msgstr "Créer l’étagère"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:55
|
||||
#: bookwyrm/templates/user/shelf.html:58
|
||||
msgid "Edit shelf"
|
||||
msgstr "Modifier l’étagère"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
msgid "Shelved"
|
||||
msgstr "Ajouté à une étagère"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
#: bookwyrm/templates/user/shelf.html:79
|
||||
msgid "Started"
|
||||
msgstr "Commencé"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
#: bookwyrm/templates/user/shelf.html:80
|
||||
msgid "Finished"
|
||||
msgstr "Terminé"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:121
|
||||
#: bookwyrm/templates/user/shelf.html:122
|
||||
msgid "This shelf is empty."
|
||||
msgstr "Cette étagère est vide"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:127
|
||||
#: bookwyrm/templates/user/shelf.html:128
|
||||
msgid "Delete shelf"
|
||||
msgstr "Supprimer l’étagère"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:15
|
||||
#: bookwyrm/templates/user/user.html:16
|
||||
msgid "Edit profile"
|
||||
msgstr "Modifier le profil"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:33
|
||||
#: bookwyrm/templates/user/user.html:34
|
||||
#, fuzzy, python-format
|
||||
#| msgid "See all %(size)s"
|
||||
msgid "View all %(size)s"
|
||||
msgstr "Voir les %(size)s"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:46
|
||||
#: bookwyrm/templates/user/user.html:47
|
||||
msgid "View all books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:58
|
||||
#: bookwyrm/templates/user/user.html:59
|
||||
#, python-format
|
||||
msgid "Set a reading goal for %(year)s"
|
||||
msgstr "Définir un défi lecture pour %(year)s"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:64
|
||||
#: bookwyrm/templates/user/user.html:65
|
||||
msgid "User Activity"
|
||||
msgstr "Activité du compte"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:67
|
||||
#: bookwyrm/templates/user/user.html:68
|
||||
msgid "RSS feed"
|
||||
msgstr "Flux RSS"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:78
|
||||
#: bookwyrm/templates/user/user.html:79
|
||||
msgid "No activities yet!"
|
||||
msgstr "Aucune activité pour l’instant !"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.1.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-31 09:22-0700\n"
|
||||
"POT-Creation-Date: 2021-03-31 10:36-0700\n"
|
||||
"PO-Revision-Date: 2021-03-20 00:56+0000\n"
|
||||
"Last-Translator: Kana <gudzpoz@live.com>\n"
|
||||
"Language-Team: Mouse Reeve <LL@li.org>\n"
|
||||
|
@ -397,7 +397,7 @@ msgid "John Doe, Jane Smith"
|
|||
msgstr "张三, 李四"
|
||||
|
||||
#: bookwyrm/templates/book/edit_book.html:155
|
||||
#: bookwyrm/templates/user/shelf.html:72
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
msgid "Cover"
|
||||
msgstr "封面"
|
||||
|
||||
|
@ -838,18 +838,18 @@ msgid "There are no books here right now! Try searching for a book to get starte
|
|||
msgstr "现在这里还没有任何书目!尝试着从搜索某本书开始吧"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:23
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "To Read"
|
||||
msgstr "想读"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:24
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Currently Reading"
|
||||
msgstr "在读"
|
||||
|
||||
#: bookwyrm/templates/feed/feed_layout.html:25
|
||||
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
|
||||
#: bookwyrm/templates/user/shelf.html:25
|
||||
#: bookwyrm/templates/user/shelf.html:28
|
||||
msgid "Read"
|
||||
msgstr "读过"
|
||||
|
||||
|
@ -977,12 +977,12 @@ msgstr "书目"
|
|||
|
||||
#: bookwyrm/templates/import_status.html:115
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:10
|
||||
#: bookwyrm/templates/user/shelf.html:73
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
msgid "Title"
|
||||
msgstr "标题"
|
||||
|
||||
#: bookwyrm/templates/import_status.html:118
|
||||
#: bookwyrm/templates/user/shelf.html:74
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
msgid "Author"
|
||||
msgstr "作者"
|
||||
|
||||
|
@ -1992,7 +1992,7 @@ msgid "Review:"
|
|||
msgstr "书评"
|
||||
|
||||
#: bookwyrm/templates/snippets/create_status_form.html:29
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
#: bookwyrm/templates/user/shelf.html:81
|
||||
msgid "Rating"
|
||||
msgstr "评价"
|
||||
|
||||
|
@ -2450,7 +2450,8 @@ msgid "Update shelf"
|
|||
msgstr "更新书架"
|
||||
|
||||
#: bookwyrm/templates/user/followers.html:7
|
||||
#: bookwyrm/templates/user/following.html:7 bookwyrm/templates/user/user.html:9
|
||||
#: bookwyrm/templates/user/following.html:7
|
||||
#: bookwyrm/templates/user/user.html:10
|
||||
msgid "User Profile"
|
||||
msgstr "用户个人资料"
|
||||
|
||||
|
@ -2481,62 +2482,68 @@ msgstr "列表: %(username)s"
|
|||
msgid "Create list"
|
||||
msgstr "创建列表"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:34
|
||||
#: bookwyrm/templates/user/shelf.html:24 bookwyrm/views/shelf.py:53
|
||||
#, fuzzy
|
||||
#| msgid "books"
|
||||
msgid "All books"
|
||||
msgstr "书目"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:37
|
||||
msgid "Create shelf"
|
||||
msgstr "创建书架"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:55
|
||||
#: bookwyrm/templates/user/shelf.html:58
|
||||
msgid "Edit shelf"
|
||||
msgstr "编辑书架"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:75
|
||||
#: bookwyrm/templates/user/shelf.html:78
|
||||
msgid "Shelved"
|
||||
msgstr "已上架"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:76
|
||||
#: bookwyrm/templates/user/shelf.html:79
|
||||
msgid "Started"
|
||||
msgstr "已开始"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:77
|
||||
#: bookwyrm/templates/user/shelf.html:80
|
||||
msgid "Finished"
|
||||
msgstr "已完成"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:121
|
||||
#: bookwyrm/templates/user/shelf.html:122
|
||||
msgid "This shelf is empty."
|
||||
msgstr "此书架是空的。"
|
||||
|
||||
#: bookwyrm/templates/user/shelf.html:127
|
||||
#: bookwyrm/templates/user/shelf.html:128
|
||||
msgid "Delete shelf"
|
||||
msgstr "删除书架"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:15
|
||||
#: bookwyrm/templates/user/user.html:16
|
||||
msgid "Edit profile"
|
||||
msgstr "编辑个人资料"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:33
|
||||
#: bookwyrm/templates/user/user.html:34
|
||||
#, fuzzy, python-format
|
||||
#| msgid "See all %(size)s"
|
||||
msgid "View all %(size)s"
|
||||
msgstr "查看所有 %(size)s 本"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:46
|
||||
#: bookwyrm/templates/user/user.html:47
|
||||
msgid "View all books"
|
||||
msgstr ""
|
||||
|
||||
#: bookwyrm/templates/user/user.html:58
|
||||
#: bookwyrm/templates/user/user.html:59
|
||||
#, python-format
|
||||
msgid "Set a reading goal for %(year)s"
|
||||
msgstr "设定 %(year)s 的阅读目标"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:64
|
||||
#: bookwyrm/templates/user/user.html:65
|
||||
msgid "User Activity"
|
||||
msgstr "用户活动"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:67
|
||||
#: bookwyrm/templates/user/user.html:68
|
||||
msgid "RSS feed"
|
||||
msgstr "RSS 流"
|
||||
|
||||
#: bookwyrm/templates/user/user.html:78
|
||||
#: bookwyrm/templates/user/user.html:79
|
||||
msgid "No activities yet!"
|
||||
msgstr "还没有活动!"
|
||||
|
||||
|
|
Loading…
Reference in a new issue