Merge pull request #869 from arkhi/review-rate

Simplify rating form
This commit is contained in:
Mouse Reeve 2021-04-04 07:23:24 -07:00 committed by GitHub
commit d8520c79e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 189 additions and 132 deletions

View file

@ -80,52 +80,34 @@ html {
} }
} }
/* --- STARS --- */ /** Stars in a review form
.rate-stars button.icon { *
background: none; * Specificity makes hovering taking over checked inputs.
border: none; *
padding: 0; * \e9d9: filled star
margin: 0; * \e9d7: empty star;
display: inline; ******************************************************************************/
.form-rate-stars {
width: max-content;
} }
.rate-stars:hover .icon::before { /* All stars are visually filled by default. */
.form-rate-stars .icon::before {
content: '\e9d9'; content: '\e9d9';
} }
.rate-stars form:hover ~ form .icon::before { /* Icons directly following inputs that follow the checked input are emptied. */
.form-rate-stars input:checked ~ input + .icon::before {
content: '\e9d7'; content: '\e9d7';
} }
/** stars in a review form /* When a label is hovered, repeat the fill-all-then-empty-following pattern. */
*
* @todo Simplify the logic for those icons.
*/
.form-rate-stars input + .icon.icon::before {
content: '\e9d9';
}
.form-rate-stars:hover .icon.icon::before { .form-rate-stars:hover .icon.icon::before {
content: '\e9d9'; content: '\e9d9';
} }
.form-rate-stars input:checked + .icon.icon::before { .form-rate-stars .icon:hover ~ .icon::before {
content: '\e9d9';
}
.form-rate-stars input:checked + * ~ .icon.icon::before {
content: '\e9d7';
}
.form-rate-stars:hover label.icon.icon::before {
content: '\e9d9';
}
.form-rate-stars label.icon:hover::before {
content: '\e9d9';
}
.form-rate-stars label.icon:hover ~ label.icon.icon::before {
content: '\e9d7'; content: '\e9d7';
} }

View file

@ -27,16 +27,8 @@
{% if type == 'review' %} {% if type == 'review' %}
<fieldset> <fieldset>
<legend class="is-sr-only">{% trans "Rating" %}</legend> <legend class="is-sr-only">{% trans "Rating" %}</legend>
<div class="field is-grouped stars form-rate-stars">
<label class="is-sr-only" for="no-rating-{{ book.id }}">{% trans "No rating" %}</label> {% include 'snippets/form_rate_stars.html' with book=book type=type|default:'summary' %}
<input class="is-sr-only" type="radio" name="rating" value="" id="no-rating-{{ book.id }}" checked>
{% for i in '12345'|make_list %}
<input class="is-sr-only" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
<span class="is-sr-only">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
</label>
{% endfor %}
</div>
</fieldset> </fieldset>
{% endif %} {% endif %}

View file

@ -0,0 +1,54 @@
{% spaceless %}
{% load i18n %}
{% load bookwyrm_tags %}
<div class="
field is-grouped
stars form-rate-stars
{% if classes %}{{classes}}{% endif%}
">
<input
id="{{ type|slugify }}-{{ book.id }}-no-rating"
class="is-sr-only"
type="radio"
name="rating"
value="0"
{% if book|user_rating:user == 0 %}checked{% endif %}
>
<label class="is-sr-only" for="{{ type|slugify }}-{{ book.id }}-no-rating">
{% trans "No rating" %}
</label>
{% for i in '12345'|make_list %}
<input
id="{{ type|slugify }}-book{{ book.id }}-star-{{ forloop.counter }}"
class="is-sr-only"
type="radio"
name="rating"
value="{{ forloop.counter }}"
{% if book|user_rating:user == forloop.counter %}checked{% endif %}
/>
<label
class="
icon
{% if forloop.counter <= book|user_rating:user %}
icon-star-full
{% else %}
icon-star-empty
{% endif %}
"
for="{{ type|slugify }}-book{{ book.id }}-star-{{ forloop.counter }}"
>
<span class="is-sr-only">
{% blocktranslate trimmed count rating=forloop.counter %}
{{ rating }} star
{% plural %}
{{ rating }} stars
{% endblocktranslate %}
</span>
</label>
{% endfor %}
</div>
{% endspaceless %}

View file

@ -8,18 +8,8 @@
<input type="hidden" name="user" value="{{ request.user.id }}"> <input type="hidden" name="user" value="{{ request.user.id }}">
<input type="hidden" name="book" value="{{ book.id }}"> <input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="privacy" value="public"> <input type="hidden" name="privacy" value="public">
<input type="hidden" name="rating" value="{{ forloop.counter }}">
<div class="field is-grouped stars form-rate-stars mb-1 has-text-warning-dark"> {% include 'snippets/form_rate_stars.html' with book=book classes='mb-1 has-text-warning-dark' %}
<label class="is-sr-only" for="rating-no-rating-{{ book.id }}">{% trans "No rating" %}</label>
<input class="is-sr-only" type="radio" name="rating" value="" id="rating-no-rating-{{ book.id }}" checked>
{% for i in '12345'|make_list %}
<input class="is-sr-only" id="rating-book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}" {% if book|user_rating:user == forloop.counter %}checked{% endif %}>
<label class="icon icon-star-empty" for="rating-book{{book.id}}-star-{{ forloop.counter }}">
<span class="is-sr-only">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
</label>
{% endfor %}
</div>
<div class="field has-addons hidden"> <div class="field has-addons hidden">
<div class="control"> <div class="control">

View file

@ -1,8 +1,27 @@
{% spaceless %}
{% load i18n %} {% load i18n %}
<p class="stars"> <p class="stars">
<span class="is-sr-only">{% if rating %}{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}{% else %}{% trans "No rating" %}{% endif %}</span> <span class="is-sr-only">
{% for i in '12345'|make_list %} {% if rating %}
<span class="icon is-small mr-1 icon-star-{% if rating >= forloop.counter %}full{% elif rating|floatformat:0 >= forloop.counter|floatformat:0 %}half{% else %}empty{% endif %}" aria-hidden="true"> {% blocktranslate trimmed with rating=rating|floatformat count counter=rating|length %}
{{ rating }} star
{% plural %}
{{ rating }} stars
{% endblocktranslate %}
{% else %}
{% trans "No rating" %}
{% endif %}
</span> </span>
{% for i in '12345'|make_list %}
<span
class="
icon is-small mr-1
icon-star-{% if rating >= forloop.counter %}full{% elif rating|floatformat:0 >= forloop.counter|floatformat:0 %}half{% else %}empty{% endif %}
"
aria-hidden="true"
></span>
{% endfor %} {% endfor %}
</p> </p>
{% endspaceless %}

Binary file not shown.

View file

@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.1.1\n" "Project-Id-Version: 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-01 13:14-0700\n" "POT-Creation-Date: 2021-04-04 13:04+0000\n"
"PO-Revision-Date: 2021-03-02 12:37+0100\n" "PO-Revision-Date: 2021-04-04 14:43+0100\n"
"Last-Translator: Fabien Basmaison <contact@arkhi.org>\n" "Last-Translator: Fabien Basmaison <contact@arkhi.org>\n"
"Language-Team: Mouse Reeve <LL@li.org>\n" "Language-Team: Mouse Reeve <LL@li.org>\n"
"Language: fr_FR\n" "Language: fr_FR\n"
@ -59,7 +59,7 @@ msgstr ""
msgid "%(value)s is not a valid username" msgid "%(value)s is not a valid username"
msgstr "" msgstr ""
#: bookwyrm/models/fields.py:165 bookwyrm/templates/layout.html:157 #: bookwyrm/models/fields.py:165 bookwyrm/templates/layout.html:152
#, fuzzy #, fuzzy
#| msgid "Username:" #| msgid "Username:"
msgid "username" msgid "username"
@ -185,7 +185,7 @@ msgstr "Description:"
#: bookwyrm/templates/edit_author.html:78 bookwyrm/templates/lists/form.html:42 #: bookwyrm/templates/edit_author.html:78 bookwyrm/templates/lists/form.html:42
#: bookwyrm/templates/preferences/edit_user.html:70 #: bookwyrm/templates/preferences/edit_user.html:70
#: bookwyrm/templates/settings/site.html:93 #: bookwyrm/templates/settings/site.html:93
#: bookwyrm/templates/snippets/readthrough.html:65 #: bookwyrm/templates/snippets/readthrough.html:75
#: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:42 #: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:42
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:42 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:42
#: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:34 #: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:34
@ -199,7 +199,7 @@ msgstr "Enregistrer"
#: bookwyrm/templates/moderation/report_modal.html:32 #: bookwyrm/templates/moderation/report_modal.html:32
#: bookwyrm/templates/snippets/delete_readthrough_modal.html:17 #: bookwyrm/templates/snippets/delete_readthrough_modal.html:17
#: bookwyrm/templates/snippets/goal_form.html:32 #: bookwyrm/templates/snippets/goal_form.html:32
#: bookwyrm/templates/snippets/readthrough.html:66 #: bookwyrm/templates/snippets/readthrough.html:76
#: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:43 #: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:43
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:43 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:43
#: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:35 #: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:35
@ -537,7 +537,7 @@ msgstr "Fédéré"
#: bookwyrm/templates/directory/directory.html:6 #: bookwyrm/templates/directory/directory.html:6
#: bookwyrm/templates/directory/directory.html:11 #: bookwyrm/templates/directory/directory.html:11
#: bookwyrm/templates/layout.html:97 #: bookwyrm/templates/layout.html:92
msgid "Directory" msgid "Directory"
msgstr "" msgstr ""
@ -1082,7 +1082,7 @@ msgid "%(username)s's %(year)s Books"
msgstr "Livres de %(username)s en %(year)s" msgstr "Livres de %(username)s en %(year)s"
#: bookwyrm/templates/import.html:5 bookwyrm/templates/import.html:9 #: bookwyrm/templates/import.html:5 bookwyrm/templates/import.html:9
#: bookwyrm/templates/layout.html:102 #: bookwyrm/templates/layout.html:97
msgid "Import Books" msgid "Import Books"
msgstr "Importer des livres" msgstr "Importer des livres"
@ -1223,18 +1223,13 @@ msgstr "Menu de navigation principal "
msgid "Feed" msgid "Feed"
msgstr "Fil dactualité" msgstr "Fil dactualité"
#: bookwyrm/templates/layout.html:92 #: bookwyrm/templates/layout.html:102
#: bookwyrm/templates/preferences/preferences_layout.html:14
msgid "Profile"
msgstr "Profil"
#: bookwyrm/templates/layout.html:107
#, fuzzy #, fuzzy
#| msgid "Instance Settings" #| msgid "Instance Settings"
msgid "Settings" msgid "Settings"
msgstr "Paramètres de linstance" msgstr "Paramètres de linstance"
#: bookwyrm/templates/layout.html:116 #: bookwyrm/templates/layout.html:111
#: bookwyrm/templates/settings/admin_layout.html:24 #: bookwyrm/templates/settings/admin_layout.html:24
#: bookwyrm/templates/settings/manage_invite_requests.html:15 #: bookwyrm/templates/settings/manage_invite_requests.html:15
#: bookwyrm/templates/settings/manage_invites.html:3 #: bookwyrm/templates/settings/manage_invites.html:3
@ -1242,59 +1237,59 @@ msgstr "Paramètres de linstance"
msgid "Invites" msgid "Invites"
msgstr "Invitations" msgstr "Invitations"
#: bookwyrm/templates/layout.html:123 #: bookwyrm/templates/layout.html:118
msgid "Admin" msgid "Admin"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:130 #: bookwyrm/templates/layout.html:125
msgid "Log out" msgid "Log out"
msgstr "Se déconnecter" msgstr "Se déconnecter"
#: bookwyrm/templates/layout.html:138 bookwyrm/templates/layout.html:139 #: bookwyrm/templates/layout.html:133 bookwyrm/templates/layout.html:134
#: bookwyrm/templates/notifications.html:6 #: bookwyrm/templates/notifications.html:6
#: bookwyrm/templates/notifications.html:10 #: bookwyrm/templates/notifications.html:10
msgid "Notifications" msgid "Notifications"
msgstr "Notifications" msgstr "Notifications"
#: bookwyrm/templates/layout.html:156 bookwyrm/templates/layout.html:160 #: bookwyrm/templates/layout.html:151 bookwyrm/templates/layout.html:155
#: bookwyrm/templates/login.html:17 #: bookwyrm/templates/login.html:17
#: bookwyrm/templates/snippets/register_form.html:4 #: bookwyrm/templates/snippets/register_form.html:4
msgid "Username:" msgid "Username:"
msgstr "Nom dutilisateur:" msgstr "Nom dutilisateur:"
#: bookwyrm/templates/layout.html:161 #: bookwyrm/templates/layout.html:156
#, fuzzy #, fuzzy
#| msgid "Password:" #| msgid "Password:"
msgid "password" msgid "password"
msgstr "Mot de passe:" msgstr "Mot de passe:"
#: bookwyrm/templates/layout.html:162 bookwyrm/templates/login.html:36 #: bookwyrm/templates/layout.html:157 bookwyrm/templates/login.html:36
msgid "Forgot your password?" msgid "Forgot your password?"
msgstr "Mot de passe oublié?" msgstr "Mot de passe oublié?"
#: bookwyrm/templates/layout.html:165 bookwyrm/templates/login.html:10 #: bookwyrm/templates/layout.html:160 bookwyrm/templates/login.html:10
#: bookwyrm/templates/login.html:33 #: bookwyrm/templates/login.html:33
msgid "Log in" msgid "Log in"
msgstr "Se connecter" msgstr "Se connecter"
#: bookwyrm/templates/layout.html:173 #: bookwyrm/templates/layout.html:168
msgid "Join" msgid "Join"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:196 #: bookwyrm/templates/layout.html:191
msgid "About this server" msgid "About this server"
msgstr "À propos de ce serveur" msgstr "À propos de ce serveur"
#: bookwyrm/templates/layout.html:200 #: bookwyrm/templates/layout.html:195
msgid "Contact site admin" msgid "Contact site admin"
msgstr "Contacter ladministrateur du site" msgstr "Contacter ladministrateur du site"
#: bookwyrm/templates/layout.html:207 #: bookwyrm/templates/layout.html:202
#, python-format #, python-format
msgid "Support %(site_name)s on <a href=\"%(support_link)s\" target=\"_blank\">%(support_title)s</a>" msgid "Support %(site_name)s on <a href=\"%(support_link)s\" target=\"_blank\">%(support_title)s</a>"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:211 #: bookwyrm/templates/layout.html:206
msgid "BookWyrm is open source software. You can contribute or report issues on <a href=\"https://github.com/mouse-reeve/bookwyrm\">GitHub</a>." msgid "BookWyrm is open source software. You can contribute or report issues on <a href=\"https://github.com/mouse-reeve/bookwyrm\">GitHub</a>."
msgstr "Bookwyrm est un logiciel libre. Vous pouvez contribuer ou faire des rapports de bogues via <a href=\"https://github.com/mouse-reeve/bookwyrm\">GitHub</a>." msgstr "Bookwyrm est un logiciel libre. Vous pouvez contribuer ou faire des rapports de bogues via <a href=\"https://github.com/mouse-reeve/bookwyrm\">GitHub</a>."
@ -1384,7 +1379,7 @@ msgid "Added by <a href=\"%(user_path)s\">%(username)s</a>"
msgstr "Messages directs avec <a href=\"%(path)s\">%(username)s</a>" msgstr "Messages directs avec <a href=\"%(path)s\">%(username)s</a>"
#: bookwyrm/templates/lists/list.html:41 #: bookwyrm/templates/lists/list.html:41
#: bookwyrm/templates/snippets/shelf_selector.html:28 #: bookwyrm/templates/snippets/shelf_selector.html:26
msgid "Remove" msgid "Remove"
msgstr "Supprimer" msgstr "Supprimer"
@ -1473,7 +1468,7 @@ msgstr ""
#: bookwyrm/templates/moderation/report.html:54 #: bookwyrm/templates/moderation/report.html:54
#: bookwyrm/templates/snippets/create_status.html:12 #: bookwyrm/templates/snippets/create_status.html:12
#: bookwyrm/templates/snippets/create_status_form.html:52 #: bookwyrm/templates/snippets/create_status_form.html:44
msgid "Comment" msgid "Comment"
msgstr "Commentaire" msgstr "Commentaire"
@ -1730,6 +1725,10 @@ msgstr ""
msgid "Account" msgid "Account"
msgstr "Compte" msgstr "Compte"
#: bookwyrm/templates/preferences/preferences_layout.html:14
msgid "Profile"
msgstr "Profil"
#: bookwyrm/templates/preferences/preferences_layout.html:20 #: bookwyrm/templates/preferences/preferences_layout.html:20
msgid "Relationships" msgid "Relationships"
msgstr "Relations" msgstr "Relations"
@ -1888,7 +1887,8 @@ msgid "Software"
msgstr "Logiciel" msgstr "Logiciel"
#: bookwyrm/templates/settings/federation.html:24 #: bookwyrm/templates/settings/federation.html:24
#: bookwyrm/templates/settings/manage_invite_requests.html:33 #: bookwyrm/templates/settings/manage_invite_requests.html:40
#: bookwyrm/templates/settings/status_filter.html:5
#: bookwyrm/templates/settings/user_admin.html:32 #: bookwyrm/templates/settings/user_admin.html:32
msgid "Status" msgid "Status"
msgstr "Statut" msgstr "Statut"
@ -1906,61 +1906,64 @@ msgstr "Invitations"
msgid "Ignored Invite Requests" msgid "Ignored Invite Requests"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:31 #: bookwyrm/templates/settings/manage_invite_requests.html:35
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:32 #: bookwyrm/templates/settings/manage_invite_requests.html:38
msgid "Email" msgid "Email"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:34 #: bookwyrm/templates/settings/manage_invite_requests.html:43
#, fuzzy #, fuzzy
#| msgid "Notifications" #| msgid "Notifications"
msgid "Action" msgid "Action"
msgstr "Notifications" msgstr "Notifications"
#: bookwyrm/templates/settings/manage_invite_requests.html:37 #: bookwyrm/templates/settings/manage_invite_requests.html:46
#, fuzzy #, fuzzy
#| msgid "Follow Requests" #| msgid "Follow Requests"
msgid "No requests" msgid "No requests"
msgstr "Demandes dabonnement" msgstr "Demandes dabonnement"
#: bookwyrm/templates/settings/manage_invite_requests.html:45 #: bookwyrm/templates/settings/manage_invite_requests.html:54
#: bookwyrm/templates/settings/status_filter.html:16
#, fuzzy #, fuzzy
#| msgid "Accept" #| msgid "Accept"
msgid "Accepted" msgid "Accepted"
msgstr "Accepter" msgstr "Accepter"
#: bookwyrm/templates/settings/manage_invite_requests.html:47 #: bookwyrm/templates/settings/manage_invite_requests.html:56
#: bookwyrm/templates/settings/status_filter.html:12
msgid "Sent" msgid "Sent"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:49 #: bookwyrm/templates/settings/manage_invite_requests.html:58
#: bookwyrm/templates/settings/status_filter.html:8
msgid "Requested" msgid "Requested"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:57 #: bookwyrm/templates/settings/manage_invite_requests.html:68
msgid "Send invite" msgid "Send invite"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:59 #: bookwyrm/templates/settings/manage_invite_requests.html:70
msgid "Re-send invite" msgid "Re-send invite"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:70 #: bookwyrm/templates/settings/manage_invite_requests.html:90
msgid "Ignore" msgid "Ignore"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:72 #: bookwyrm/templates/settings/manage_invite_requests.html:92
msgid "Un-gnore" msgid "Un-ignore"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:83 #: bookwyrm/templates/settings/manage_invite_requests.html:103
msgid "Back to pending requests" msgid "Back to pending requests"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/manage_invite_requests.html:85 #: bookwyrm/templates/settings/manage_invite_requests.html:105
msgid "View ignored requests" msgid "View ignored requests"
msgstr "" msgstr ""
@ -2161,47 +2164,41 @@ msgstr "Critique"
msgid "Rating" msgid "Rating"
msgstr "Note" msgstr "Note"
#: bookwyrm/templates/snippets/create_status_form.html:31 #: bookwyrm/templates/snippets/create_status_form.html:56
#: bookwyrm/templates/snippets/rate_action.html:14
#: bookwyrm/templates/snippets/stars.html:3
msgid "No rating"
msgstr "Aucune note"
#: bookwyrm/templates/snippets/create_status_form.html:64
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:16 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:16
msgid "Progress:" msgid "Progress:"
msgstr "Progression:" msgstr "Progression:"
#: bookwyrm/templates/snippets/create_status_form.html:71 #: bookwyrm/templates/snippets/create_status_form.html:63
#: bookwyrm/templates/snippets/readthrough_form.html:22 #: bookwyrm/templates/snippets/readthrough_form.html:22
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:30 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:30
msgid "pages" msgid "pages"
msgstr "pages" msgstr "pages"
#: bookwyrm/templates/snippets/create_status_form.html:72 #: bookwyrm/templates/snippets/create_status_form.html:64
#: bookwyrm/templates/snippets/readthrough_form.html:23 #: bookwyrm/templates/snippets/readthrough_form.html:23
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:31 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:31
msgid "percent" msgid "percent"
msgstr "pourcent" msgstr "pourcent"
#: bookwyrm/templates/snippets/create_status_form.html:77 #: bookwyrm/templates/snippets/create_status_form.html:69
#: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:36 #: bookwyrm/templates/snippets/shelve_button/progress_update_modal.html:36
#, python-format #, python-format
msgid "of %(pages)s pages" msgid "of %(pages)s pages"
msgstr "sur %(pages)s pages" msgstr "sur %(pages)s pages"
#: bookwyrm/templates/snippets/create_status_form.html:89 #: bookwyrm/templates/snippets/create_status_form.html:81
msgid "Include spoiler alert" msgid "Include spoiler alert"
msgstr "Afficher une alerte spoiler" msgstr "Afficher une alerte spoiler"
#: bookwyrm/templates/snippets/create_status_form.html:95 #: bookwyrm/templates/snippets/create_status_form.html:87
#: bookwyrm/templates/snippets/privacy-icons.html:15 #: bookwyrm/templates/snippets/privacy-icons.html:15
#: bookwyrm/templates/snippets/privacy-icons.html:16 #: bookwyrm/templates/snippets/privacy-icons.html:16
#: bookwyrm/templates/snippets/privacy_select.html:19 #: bookwyrm/templates/snippets/privacy_select.html:19
msgid "Private" msgid "Private"
msgstr "Privé" msgstr "Privé"
#: bookwyrm/templates/snippets/create_status_form.html:102 #: bookwyrm/templates/snippets/create_status_form.html:94
msgid "Post" msgid "Post"
msgstr "Publier" msgstr "Publier"
@ -2241,11 +2238,11 @@ msgstr "Replier"
msgid "Hide filters" msgid "Hide filters"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/filters_panel/filters_panel.html:19 #: bookwyrm/templates/snippets/filters_panel/filters_panel.html:22
msgid "Apply filters" msgid "Apply filters"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/filters_panel/filters_panel.html:23 #: bookwyrm/templates/snippets/filters_panel/filters_panel.html:26
#, fuzzy #, fuzzy
#| msgid "Clear search" #| msgid "Clear search"
msgid "Clear filters" msgid "Clear filters"
@ -2269,6 +2266,19 @@ msgstr "Se désabonner"
msgid "Accept" msgid "Accept"
msgstr "Accepter" msgstr "Accepter"
#: bookwyrm/templates/snippets/form_rate_stars.html:20
#: bookwyrm/templates/snippets/stars.html:13
msgid "No rating"
msgstr "Aucune note"
#: bookwyrm/templates/snippets/form_rate_stars.html:45
#: bookwyrm/templates/snippets/stars.html:7
#, python-format
msgid "%(rating)s star"
msgid_plural "%(rating)s stars"
msgstr[0] "%(rating)s étoile"
msgstr[1] "%(rating)s étoiles"
#: bookwyrm/templates/snippets/generated_status/goal.html:1 #: bookwyrm/templates/snippets/generated_status/goal.html:1
#, python-format #, python-format
msgid "set a goal to read %(counter)s book in %(year)s" msgid "set a goal to read %(counter)s book in %(year)s"
@ -2343,11 +2353,23 @@ msgstr "Vous avez lu <a href=\"%(path)s\">%(read_count)s sur %(goal_count)s livr
msgid "%(username)s has read <a href=\"%(path)s\">%(read_count)s of %(goal_count)s books</a>." msgid "%(username)s has read <a href=\"%(path)s\">%(read_count)s of %(goal_count)s books</a>."
msgstr "%(username)s a lu <a href=\"%(path)s\">%(read_count)s sur %(goal_count)s livres</a>." msgstr "%(username)s a lu <a href=\"%(path)s\">%(read_count)s sur %(goal_count)s livres</a>."
#: bookwyrm/templates/snippets/pagination.html:7 #: bookwyrm/templates/snippets/page_text.html:4
#, fuzzy, python-format
#| msgid "of %(pages)s pages"
msgid "page %(page)s of %(total_pages)s"
msgstr "sur %(pages)s pages"
#: bookwyrm/templates/snippets/page_text.html:6
#, fuzzy, python-format
#| msgid "of %(book.pages)s pages"
msgid "page %(page)s"
msgstr "sur %(book.pages)s pages"
#: bookwyrm/templates/snippets/pagination.html:5
msgid "Previous" msgid "Previous"
msgstr "Précédente" msgstr "Précédente"
#: bookwyrm/templates/snippets/pagination.html:15 #: bookwyrm/templates/snippets/pagination.html:9
msgid "Next" msgid "Next"
msgstr "Suivante" msgstr "Suivante"
@ -2380,7 +2402,7 @@ msgstr "Abonnements"
msgid "Leave a rating" msgid "Leave a rating"
msgstr "Laisser une note" msgstr "Laisser une note"
#: bookwyrm/templates/snippets/rate_action.html:29 #: bookwyrm/templates/snippets/rate_action.html:19
msgid "Rate" msgid "Rate"
msgstr "Noter" msgstr "Noter"
@ -2388,28 +2410,28 @@ msgstr "Noter"
msgid "Progress Updates:" msgid "Progress Updates:"
msgstr "Progression:" msgstr "Progression:"
#: bookwyrm/templates/snippets/readthrough.html:12 #: bookwyrm/templates/snippets/readthrough.html:14
msgid "finished" msgid "finished"
msgstr "terminé" msgstr "terminé"
#: bookwyrm/templates/snippets/readthrough.html:15 #: bookwyrm/templates/snippets/readthrough.html:25
msgid "Show all updates" msgid "Show all updates"
msgstr "Montrer toutes les progressions" msgstr "Montrer toutes les progressions"
#: bookwyrm/templates/snippets/readthrough.html:31 #: bookwyrm/templates/snippets/readthrough.html:41
msgid "Delete this progress update" msgid "Delete this progress update"
msgstr "Supprimer cette mise à jour" msgstr "Supprimer cette mise à jour"
#: bookwyrm/templates/snippets/readthrough.html:41 #: bookwyrm/templates/snippets/readthrough.html:51
msgid "started" msgid "started"
msgstr "commencé" msgstr "commencé"
#: bookwyrm/templates/snippets/readthrough.html:47 #: bookwyrm/templates/snippets/readthrough.html:57
#: bookwyrm/templates/snippets/readthrough.html:61 #: bookwyrm/templates/snippets/readthrough.html:71
msgid "Edit read dates" msgid "Edit read dates"
msgstr "Modifier les date de lecture" msgstr "Modifier les date de lecture"
#: bookwyrm/templates/snippets/readthrough.html:51 #: bookwyrm/templates/snippets/readthrough.html:61
#, fuzzy #, fuzzy
#| msgid "Delete these read dates?" #| msgid "Delete these read dates?"
msgid "Delete these read dates" msgid "Delete these read dates"
@ -2696,11 +2718,11 @@ msgstr "Commencé"
msgid "Finished" msgid "Finished"
msgstr "Terminé" msgstr "Terminé"
#: bookwyrm/templates/user/shelf.html:127 #: bookwyrm/templates/user/shelf.html:129
msgid "This shelf is empty." msgid "This shelf is empty."
msgstr "Cette étagère est vide" msgstr "Cette étagère est vide"
#: bookwyrm/templates/user/shelf.html:133 #: bookwyrm/templates/user/shelf.html:135
msgid "Delete shelf" msgid "Delete shelf"
msgstr "Supprimer létagère" msgstr "Supprimer létagère"
@ -2781,7 +2803,7 @@ msgstr ""
#~ msgid "Getting Started" #~ msgid "Getting Started"
#~ msgstr "Commencé" #~ msgstr "Commencé"
#, fuzzy, python-format #, fuzzy
#~| msgid "No users found for \"%(query)s\"" #~| msgid "No users found for \"%(query)s\""
#~ msgid "No users were found for \"%(query)s\"" #~ msgid "No users were found for \"%(query)s\""
#~ msgstr "Aucun compte trouvé pour « %(query)s»" #~ msgstr "Aucun compte trouvé pour « %(query)s»"
@ -2795,7 +2817,7 @@ msgstr ""
#~ msgid "Your lists" #~ msgid "Your lists"
#~ msgstr "Vos listes" #~ msgstr "Vos listes"
#, fuzzy, python-format #, fuzzy
#~| msgid "See all %(size)s" #~| msgid "See all %(size)s"
#~ msgid "See all %(size)s lists" #~ msgid "See all %(size)s lists"
#~ msgstr "Voir les %(size)s" #~ msgstr "Voir les %(size)s"
@ -2821,14 +2843,12 @@ msgstr ""
#~ msgid "Your Shelves" #~ msgid "Your Shelves"
#~ msgstr "Vos étagères" #~ msgstr "Vos étagères"
#, python-format
#~ msgid "%(username)s: Shelves" #~ msgid "%(username)s: Shelves"
#~ msgstr "%(username)s: Étagères" #~ msgstr "%(username)s: Étagères"
#~ msgid "Shelves" #~ msgid "Shelves"
#~ msgstr "Étagères" #~ msgstr "Étagères"
#, python-format
#~ msgid "See all %(shelf_count)s shelves" #~ msgid "See all %(shelf_count)s shelves"
#~ msgstr "Voir les %(shelf_count)s étagères" #~ msgstr "Voir les %(shelf_count)s étagères"