Merge pull request #666 from mouse-reeve/i18n-second-pass

I18n second pass
This commit is contained in:
Mouse Reeve 2021-03-01 09:54:57 -08:00 committed by GitHub
commit 8bab56dd83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 436 additions and 141 deletions

View file

@ -140,6 +140,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
LANGUAGES = [ LANGUAGES = [
('en-us', _('English')), ('en-us', _('English')),
('fr-fr', _('French')),
] ]

View file

@ -95,7 +95,8 @@
{% include 'snippets/trimmed_text.html' with full=book|book_description %} {% include 'snippets/trimmed_text.html' with full=book|book_description %}
{% if request.user.is_authenticated and perms.bookwyrm.edit_book and not book|book_description %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book and not book|book_description %}
{% include 'snippets/toggle/open_button.html' with text="Add description" controls_text="add-description" controls_uid=book.id focus="id_description" hide_active=True id="hide-description" %} {% trans 'Add Description' as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text controls_text="add-description" controls_uid=book.id focus="id_description" hide_active=True id="hide-description" %}
<div class="box hidden" id="add-description-{{ book.id }}"> <div class="box hidden" id="add-description-{{ book.id }}">
<form name="add-description" method="POST" action="/add-description/{{ book.id }}"> <form name="add-description" method="POST" action="/add-description/{{ book.id }}">
@ -106,7 +107,8 @@
</p> </p>
<div class="field"> <div class="field">
<button class="button is-primary" type="submit">{% trans "Save" %}</button> <button class="button is-primary" type="submit">{% trans "Save" %}</button>
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="add-description" controls_uid=book.id hide_inactive=True %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="add-description" controls_uid=book.id hide_inactive=True %}
</div> </div>
</form> </form>
</div> </div>
@ -139,7 +141,8 @@
<header class="columns"> <header class="columns">
<h2 class="column title is-5 mb-1">{% trans "Your reading activity" %}</h2> <h2 class="column title is-5 mb-1">{% trans "Your reading activity" %}</h2>
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with text="Add read dates" icon="plus" class="is-small" controls_text="add-readthrough" %} {% trans "Add read dates" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" class="is-small" controls_text="add-readthrough" %}
</div> </div>
</header> </header>
{% if not readthroughs.exists %} {% if not readthroughs.exists %}
@ -153,7 +156,8 @@
<button class="button is-primary" type="submit">{% trans "Create" %}</button> <button class="button is-primary" type="submit">{% trans "Create" %}</button>
</div> </div>
<div class="control"> <div class="control">
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="add-readthrough" %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="add-readthrough" %}
</div> </div>
</div> </div>
</form> </form>

View file

@ -1,10 +1,12 @@
{% load i18n %}
<section class="card hidden {{ class }}" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"> <section class="card hidden {{ class }}" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}">
<header class="card-header has-background-white-ter"> <header class="card-header has-background-white-ter">
<h2 class="card-header-title" tabindex="0" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}-header"> <h2 class="card-header-title" tabindex="0" id="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}-header">
{% block header %}{% endblock %} {% block header %}{% endblock %}
</h2> </h2>
<span class="card-header-icon"> <span class="card-header-icon">
{% include 'snippets/toggle/toggle_button.html' with label="Close" class="delete" nonbutton=True controls_text=controls_text %} {% trans "Close" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with label=button_text class="delete" nonbutton=True controls_text=controls_text %}
</span> </span>
</header> </header>
<section class="card-content content"> <section class="card-content content">

View file

@ -48,7 +48,8 @@
<span>{% include 'snippets/book_titleby.html' with book=book %}</span> <span>{% include 'snippets/book_titleby.html' with book=book %}</span>
</p> </p>
<div class="card-header-icon is-hidden-tablet"> <div class="card-header-icon is-hidden-tablet">
{% include 'snippets/toggle/toggle_button.html' with label="close" controls_text="book" controls_uid=book.id class="delete" nonbutton=True pressed=True %} {% trans "Close" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with label=button_text controls_text="book" controls_uid=book.id class="delete" nonbutton=True pressed=True %}
</div> </div>
</div> </div>
<div class="card-content"> <div class="card-content">

View file

@ -8,7 +8,8 @@
</div> </div>
{% if is_self and goal %} {% if is_self and goal %}
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with text="Edit goal" icon="pencil" controls_text="show-edit-goal" focus="edit-form-header" %} {% trans "Edit Goal" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text icon="pencil" controls_text="show-edit-goal" focus="edit-form-header" %}
</div> </div>
{% endif %} {% endif %}
</div> </div>

View file

@ -30,7 +30,7 @@
<form class="navbar-item column" action="/search/"> <form class="navbar-item column" action="/search/">
<div class="field has-addons"> <div class="field has-addons">
<div class="control"> <div class="control">
<input aria-label="Search for a book or user" id="search-input" class="input" type="text" name="q" placeholder="Search for a book or user" value="{{ query }}"> <input aria-label="{% trans 'Search for a book or user' %}" id="search-input" class="input" type="text" name="q" placeholder="{% trans 'Search for a book or user' %}" value="{{ query }}">
</div> </div>
<div class="control"> <div class="control">
<button class="button" type="submit"> <button class="button" type="submit">
@ -76,22 +76,22 @@
<ul class="navbar-dropdown" id="navbar-dropdown"> <ul class="navbar-dropdown" id="navbar-dropdown">
<li> <li>
<a href="/direct-messages" class="navbar-item"> <a href="/direct-messages" class="navbar-item">
Direct messages {% trans "Direct Messages" %}
</a> </a>
</li> </li>
<li> <li>
<a href="/user/{{request.user.localname}}" class="navbar-item"> <a href="/user/{{request.user.localname}}" class="navbar-item">
Profile {% trans 'Profile' %}
</a> </a>
</li> </li>
<li> <li>
<a href="/preferences/profile" class="navbar-item"> <a href="/preferences/profile" class="navbar-item">
Settings {% trans 'Settings' %}
</a> </a>
</li> </li>
<li> <li>
<a href="/import" class="navbar-item"> <a href="/import" class="navbar-item">
Import books {% trans 'Import Books' %}
</a> </a>
</li> </li>
{% if perms.bookwyrm.create_invites or perms.bookwyrm.edit_instance_settings%} {% if perms.bookwyrm.create_invites or perms.bookwyrm.edit_instance_settings%}
@ -100,21 +100,21 @@
{% if perms.bookwyrm.create_invites %} {% if perms.bookwyrm.create_invites %}
<li> <li>
<a href="{% url 'settings-invites' %}" class="navbar-item"> <a href="{% url 'settings-invites' %}" class="navbar-item">
Invites {% trans 'Invites' %}
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% if perms.bookwyrm.edit_instance_settings %} {% if perms.bookwyrm.edit_instance_settings %}
<li> <li>
<a href="{% url 'settings-site' %}" class="navbar-item"> <a href="{% url 'settings-site' %}" class="navbar-item">
Site Configuration {% trans 'Site Configuration' %}
</a> </a>
</li> </li>
{% endif %} {% endif %}
<hr class="navbar-divider"> <hr class="navbar-divider">
<li> <li>
<a href="/logout" class="navbar-item"> <a href="/logout" class="navbar-item">
Log out {% trans 'Log out' %}
</a> </a>
</li> </li>
</ul> </ul>
@ -195,7 +195,7 @@
</div> </div>
{% endif %} {% endif %}
<div class="column"> <div class="column">
BookWyrm is open source software. You can contribute or report issues on <a href="https://github.com/mouse-reeve/bookwyrm">GitHub</a>. {% trans 'BookWyrm is open source software. You can contribute or report issues on <a href="https://github.com/mouse-reeve/bookwyrm">GitHub</a>.' %}
</div> </div>
</div> </div>
</div> </div>

View file

@ -14,7 +14,8 @@
</div> </div>
{% if request.user == list.user %} {% if request.user == list.user %}
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with text="Edit list" icon="pencil" controls_text="edit-list" focus="edit-list-header" %} {% trans "Edit List" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text icon="pencil" controls_text="edit-list" focus="edit-list-header" %}
</div> </div>
{% endif %} {% endif %}
</header> </header>

View file

@ -14,7 +14,8 @@
<h2 class="title">{% trans "Your lists" %}</h2> <h2 class="title">{% trans "Your lists" %}</h2>
</div> </div>
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text="Create new list" focus="create-list-header" %} {% trans "Create List" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text=button_text focus="create-list-header" %}
</div> </div>
</header> </header>

View file

@ -45,13 +45,37 @@
{% include 'snippets/avatar.html' with user=notification.related_user %} {% include 'snippets/avatar.html' with user=notification.related_user %}
{% include 'snippets/username.html' with user=notification.related_user %} {% include 'snippets/username.html' with user=notification.related_user %}
{% if notification.notification_type == 'FAVORITE' %} {% if notification.notification_type == 'FAVORITE' %}
{% blocktrans with preview_name=related_status|status_preview_name|safe related_path=related_status.local_path %}favorited your <a href="{{ related_path }}">{{ preview_name }}</a>{% endblocktrans %} {% if related_status.status_type == 'Review' %}
{% blocktrans with book_title=related_status.book.title related_path=related_status.local_path %}favorited your <a href="{{ related_path }}">review of <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Comment' %}
{% blocktrans with book_title=related_status.book.title related_path=related_status.local_path %}favorited your <a href="{{ related_path }}">comment on <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Quotation' %}
{% blocktrans with book_title=related_status.book.title related_path=related_status.local_path %}favorited your <a href="{{ related_path }}">quote from <em>{{ book_title }}</em></a>{% endblocktrans %}
{% else %}
{% blocktrans with related_path=related_status.local_path %}favorited your <a href="{{ related_path }}">status</a>{% endblocktrans %}
{% endif %}
{% elif notification.notification_type == 'MENTION' %} {% elif notification.notification_type == 'MENTION' %}
{% blocktrans with preview_name=related_status|status_preview_name|safe related_path=related_status.local_path %}mentioned you in a <a href="{{ related_path }}">{{ preview_name }}</a>{% endblocktrans %} {% if related_status.status_type == 'Review' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}mentioned you in a <a href="{{ related_path }}">review of <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Comment' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}mentioned you in a <a href="{{ related_path }}">comment on <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Quotation' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}mentioned you in a <a href="{{ related_path }}">quote from <em>{{ book_title }}</em></a>{% endblocktrans %}
{% else %}
{% blocktrans with related_path=related_status.local_path %}mentioned you in a <a href="{{ related_path }}">status</a>{% endblocktrans %}
{% endif %}
{% elif notification.notification_type == 'REPLY' %} {% elif notification.notification_type == 'REPLY' %}
{% blocktrans with preview_name=related_status|status_preview_name|safe related_path=related_status.local_path parent_path=related_status.reply_parent.local_path %}<a href="{{ related_path }}">replied</a> to your <a href="{{ parent_path }}">{{ preview_name }}</a>{% endblocktrans %} {% if related_status.status_type == 'Review' %}
{% blocktrans with related_path=related_status.local_path parent_path=related_status.reply_parent.local_path book_title=related_status.reply_parent.book.title %}<a href="{{ related_path }}">replied</a> to your <a href="{{ parent_path }}">review of <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Comment' %}
{% blocktrans with related_path=related_status.local_path parent_path=related_status.reply_parent.local_path book_title=related_status.reply_parent.book.title %}<a href="{{ related_path }}">replied</a> to your <a href="{{ parent_path }}">comment on <em>{{ book_title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Quotation' %}
{% blocktrans with related_path=related_status.local_path parent_path=related_status.reply_parent.local_path book_title=related_status.reply_parent.book.title %}<a href="{{ related_path }}">replied</a> to your <a href="{{ parent_path }}">quote from <em>{{ book_title }}</em></a>{% endblocktrans %}
{% else %}
{% blocktrans with related_path=related_status.local_path parent_path=related_status.reply_parent.local_path %}<a href="{{ related_path }}">replied</a> to your <a href="{{ parent_path }}">status</a>{% endblocktrans %}
{% endif %}
{% elif notification.notification_type == 'FOLLOW' %} {% elif notification.notification_type == 'FOLLOW' %}
{% trans "followed you" %} {% trans "followed you" %}
@ -62,9 +86,21 @@
{% include 'snippets/follow_request_buttons.html' with user=notification.related_user %} {% include 'snippets/follow_request_buttons.html' with user=notification.related_user %}
</div> </div>
{% elif notification.notification_type == 'BOOST' %} {% elif notification.notification_type == 'BOOST' %}
{% blocktrans with preview_name=related_status|status_preview_name|safe related_path=related_status.local_path %}boosted your <a href="{{ related_path }}">{{ preview_name }}</a>{% endblocktrans %} {% if related_status.status_type == 'Review' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}boosted your <a href="{{ related_path }}">review of <em>{{ book.title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Comment' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}boosted your <a href="{{ related_path }}">comment on<em>{{ book.title }}</em></a>{% endblocktrans %}
{% elif related_status.status_type == 'Quotation' %}
{% blocktrans with related_path=related_status.local_path book_title=related_status.book.title %}boosted your <a href="{{ related_path }}">quote from <em>{{ book.title }}</em></a>{% endblocktrans %}
{% else %}
{% blocktrans with related_path=related_status.local_path %}boosted your <a href="{{ related_path }}">status</a>{% endblocktrans %}
{% endif %}
{% elif notification.notification_type == 'ADD' %} {% elif notification.notification_type == 'ADD' %}
{% if notification.related_list_item.approved %}{% trans "added" %}{% else %}{% trans "suggested adding" %}{% endif %} {% include 'snippets/book_titleby.html' with book=notification.related_list_item.book %} to your list "<a href="{{ notification.related_list_item.book_list.local_path }}{% if not notification.related_list_item.approved %}/curate{% endif %}">{{ notification.related_list_item.book_list.name }}</a>" {% if notification.related_list_item.approved %}
{% blocktrans with book_path=notification.related_list_item.book.local_path book_title=notification.related_list_item.book.title list_path=notification.related_list_item.book_list.local_path list_name=notification.related_list_item.book_list.name %} added <em><a href="{{ book_path }}">{{ book_title }}</a></em> to your list "<a href="{{ list_path }}">{{ list_name }}</a>"{% endblocktrans %}
{% else %}
{% blocktrans with book_path=notification.related_list_item.book.local_path book_title=notification.related_list_item.book.title list_path=notification.related_list_item.book_list.local_path list_name=notification.related_list_item.book_list.name %} suggested adding <em><a href="{{ book_path }}">{{ book_title }}</a></em> to your list "<a href="{{ list_path }}/curate">{{ list_name }}</a>"{% endblocktrans %}
{% endif %}
{% endif %} {% endif %}
{% elif notification.related_import %} {% elif notification.related_import %}
{% blocktrans with related_id=notification.related_import.id %} your <a href="/import/{{ related_id }}">import</a> completed.{% endblocktrans %} {% blocktrans with related_id=notification.related_import.id %} your <a href="/import/{{ related_id }}">import</a> completed.{% endblocktrans %}

View file

@ -32,7 +32,8 @@
<p> <p>
{% trans "Didn't find what you were looking for?" %} {% trans "Didn't find what you were looking for?" %}
</p> </p>
{% include 'snippets/toggle/open_button.html' with text="Show results from other catalogues" small=True controls_text="more-results" %} {% trans "Show results from other catalogues" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text small=True controls_text="more-results" %}
</div> </div>
{% endif %} {% endif %}
@ -63,7 +64,8 @@
{% endfor %} {% endfor %}
{% if local_results.results %} {% if local_results.results %}
{% include 'snippets/toggle/close_button.html' with text="Hide results from other catalogues" small=True controls_text="more-results" %} {% trans "Hide results from other catalogues" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text small=True controls_text="more-results" %}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}

View file

@ -1,5 +1,7 @@
<a href="/book/{{ book.id }}">{{ book.title }}</a> {% load i18n %}
{% if book.authors %} {% if book.authors %}
by {% include 'snippets/authors.html' with book=book %} {% blocktrans with path=book.local_path title=book.title %}<a href="{{ path }}">{{ title }}</a> by {% endblocktrans %}{% include 'snippets/authors.html' with book=book %}
{% else %}
<a href="{{ book.local_path }}">{{ book.title }}</a>
{% endif %} {% endif %}

View file

@ -51,7 +51,8 @@
<div class="columns pt-1"> <div class="columns pt-1">
<div class="field has-addons column"> <div class="field has-addons column">
<div class="control"> <div class="control">
{% include 'snippets/toggle/toggle_button.html' with text="Include spoiler alert" icon="warning is-size-4" controls_text="spoilers" controls_uid=uuid focus="id_content_warning" checkbox="id_show_spoilers" class="toggle-button" pressed=status.content_warning %} {% trans "Include spoiler alert" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text icon="warning is-size-4" controls_text="spoilers" controls_uid=uuid focus="id_content_warning" checkbox="id_show_spoilers" class="toggle-button" pressed=status.content_warning %}
</div> </div>
<div class="control"> <div class="control">
{% if type == 'direct' %} {% if type == 'direct' %}

View file

@ -14,6 +14,7 @@
<button class="button is-danger" type="submit"> <button class="button is-danger" type="submit">
{% trans "Delete" %} {% trans "Delete" %}
</button> </button>
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="delete-readthrough" controls_uid=readthrough.id %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="delete-readthrough" controls_uid=readthrough.id %}
</form> </form>
{% endblock %} {% endblock %}

View file

@ -1 +1 @@
{% load humanize %}set a goal to read {{ goal.goal | intcomma }} book{{ goal.goal | pluralize }} in {{ goal.year }} {% load i18n %}{% load humanize %}{% blocktrans count counter=goal.goal with counter=goal.goal year=goal.year %}set a goal to read {{ counter }} book in {{ year }}{% plural %}set a goal to read {{ counter }} books in {{ year }}{% endblocktrans %}

View file

@ -29,7 +29,8 @@
<p> <p>
<button type="submit" class="button is-link">{% trans "Set goal" %}</button> <button type="submit" class="button is-link">{% trans "Set goal" %}</button>
{% if goal %} {% if goal %}
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="show-edit-goal" %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="show-edit-goal" %}
{% endif %} {% endif %}
</p> </p>
</form> </form>

View file

@ -4,9 +4,13 @@
{% if goal.progress_percent >= 100 %} {% if goal.progress_percent >= 100 %}
{% trans "Success!" %} {% trans "Success!" %}
{% elif goal.progress_percent %} {% elif goal.progress_percent %}
{% blocktrans with percent=goal.percent %}{{ percent }}% complete!{% endblocktrans %} {% blocktrans with percent=goal.progress_percent %}{{ percent }}% complete!{% endblocktrans %}
{% endif %}
{% if goal.user == request.user %}
{% blocktrans with read_count=goal.book_count|intcomma goal_count=goal.goal|intcomma path=goal.local_path %}You've read <a href="{{ path }}">{{ read_count }} of {{ goal_count}} books</a>.{% endblocktrans %}
{% else %}
{% blocktrans with username=goal.user.display_name read_count=goal.book_count|intcomma goal_count=goal.goal|intcomma path=goal.local_path %}{{ username }} has read <a href="{{ path }}">{{ read_count }} of {{ goal_count}} books</a>.{% endblocktrans %}
{% endif %} {% endif %}
{% if goal.user == request.user %}You've{% else %}{{ goal.user.display_name }} has{% endif %} read {% if request.path != goal.local_path %}<a href="{{ goal.local_path }}">{% endif %}{{ goal.book_count }} of {{ goal.goal | intcomma }} books{% if request.path != goal.local_path %}</a>{% endif %}.
</p> </p>
<progress class="progress is-large" value="{{ goal.book_count }}" max="{{ goal.goal }}" aria-hidden="true">{{ goal.progress_percent }}%</progress> <progress class="progress is-large" value="{{ goal.book_count }}" max="{{ goal.goal }}" aria-hidden="true">{{ goal.progress_percent }}%</progress>

View file

@ -11,7 +11,8 @@
<li>{% if readthrough.finish_date %} {{ readthrough.finish_date | naturalday }}: {% trans "finished" %} {% else %}{% if readthrough.progress_mode == 'PG' %}on page {{ readthrough.progress }}{% if book.pages %} of {{ book.pages }}{% endif %} <li>{% if readthrough.finish_date %} {{ readthrough.finish_date | naturalday }}: {% trans "finished" %} {% else %}{% if readthrough.progress_mode == 'PG' %}on page {{ readthrough.progress }}{% if book.pages %} of {{ book.pages }}{% endif %}
{% else %}{{ readthrough.progress }}%{% endif %}{% endif %} {% else %}{{ readthrough.progress }}%{% endif %}{% endif %}
{% if readthrough.progress %} {% if readthrough.progress %}
{% include 'snippets/toggle/toggle_button.html' with text="Show all updates" controls_text="updates" controls_uid=readthrough.id class="is-small" %} {% trans "Show all updates" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="updates" controls_uid=readthrough.id class="is-small" %}
<ul id="updates-{{ readthrough.id }}" class="hidden"> <ul id="updates-{{ readthrough.id }}" class="hidden">
{% for progress_update in readthrough.progress_updates %} {% for progress_update in readthrough.progress_updates %}
<li> <li>
@ -42,10 +43,12 @@
<div class="column is-narrow"> <div class="column is-narrow">
<div class="field has-addons"> <div class="field has-addons">
<div class="control"> <div class="control">
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Edit read dates" icon="pencil" controls_text="edit-readthrough" controls_uid=readthrough.id focus="edit-readthrough" %} {% trans "Edit read dates" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text=button_text icon="pencil" controls_text="edit-readthrough" controls_uid=readthrough.id focus="edit-readthrough" %}
</div> </div>
<div class="control"> <div class="control">
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Delete these read dates" icon="x" controls_text="delete-readthrough" controls_uid=readthrough.id focus="modal-title-delete-readthrough" %} {% trans "Delete these read dates" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text=button_text icon="x" controls_text="delete-readthrough" controls_uid=readthrough.id focus="modal-title-delete-readthrough" %}
</div> </div>
</div> </div>
</div> </div>
@ -59,7 +62,8 @@
{% include 'snippets/readthrough_form.html' with readthrough=readthrough %} {% include 'snippets/readthrough_form.html' with readthrough=readthrough %}
<div class="field is-grouped"> <div class="field is-grouped">
<button class="button is-primary" type="submit">{% trans "Save" %}</button> <button class="button is-primary" type="submit">{% trans "Save" %}</button>
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="edit-readthrough" controls_uid=readthrough.id %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="edit-readthrough" controls_uid=readthrough.id %}
</div> </div>
</form> </form>
</div> </div>

View file

@ -40,7 +40,8 @@
</div> </div>
<div class="column"> <div class="column">
<button type="submit" class="button is-success">{% trans "Save" %}</button> <button type="submit" class="button is-success">{% trans "Save" %}</button>
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="finish-reading" controls_uid=uuid %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="finish-reading" controls_uid=uuid %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -5,13 +5,16 @@
{% if dropdown %}<li role="menuitem">{% endif %} {% if dropdown %}<li role="menuitem">{% endif %}
<div class="{% if dropdown %}dropdown-item pt-0 pb-0{% elif active_shelf.shelf.identifier|next_shelf != shelf.identifier %}hidden{% endif %}"> <div class="{% if dropdown %}dropdown-item pt-0 pb-0{% elif active_shelf.shelf.identifier|next_shelf != shelf.identifier %}hidden{% endif %}">
{% if shelf.identifier == 'reading' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% if shelf.identifier == 'reading' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %}
{% include 'snippets/toggle/toggle_button.html' with class=class text="Start reading" controls_text="start-reading" controls_uid=button_uuid focus="modal-title-start-reading" disabled=is_current %} {% trans "Start reading" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="start-reading" controls_uid=button_uuid focus="modal-title-start-reading" disabled=is_current %}
{% endif %}{% elif shelf.identifier == 'read' and active_shelf.shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% endif %}{% elif shelf.identifier == 'read' and active_shelf.shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %}
<button type="button" class="button {{ class }}" disabled><span>{% trans "Read" %}</span> <button type="button" class="button {{ class }}" disabled><span>{% trans "Read" %}</span>
{% endif %}{% elif shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% endif %}{% elif shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %}
{% include 'snippets/toggle/toggle_button.html' with class=class text="Finish reading" controls_text="finish-reading" controls_uid=button_uuid focus="modal-title-finish-reading" disabled=is_current %} {% trans "Finish reading" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="finish-reading" controls_uid=button_uuid focus="modal-title-finish-reading" disabled=is_current %}
{% endif %}{% elif shelf.identifier == 'to-read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% endif %}{% elif shelf.identifier == 'to-read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %}
{% include 'snippets/toggle/toggle_button.html' with class=class text="Want to read" controls_text="want-to-read" controls_uid=button_uuid focus="modal-title-want-to-read" disabled=is_current %} {% trans "Want to read" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="want-to-read" controls_uid=button_uuid focus="modal-title-want-to-read" disabled=is_current %}
{% endif %}{% elif shelf.editable %} {% endif %}{% elif shelf.editable %}
<form name="shelve" action="/shelve/" method="post"> <form name="shelve" action="/shelve/" method="post">
{% csrf_token %} {% csrf_token %}

View file

@ -32,7 +32,8 @@
</div> </div>
<div class="column"> <div class="column">
<button class="button is-success" type="submit">{% trans "Save" %}</button> <button class="button is-success" type="submit">{% trans "Save" %}</button>
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="start-reading" controls_uid=uuid %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="start-reading" controls_uid=uuid %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -25,7 +25,8 @@
<button class="button is-success" type="submit"> <button class="button is-success" type="submit">
<span>{% trans "Want to read" %}</span> <span>{% trans "Want to read" %}</span>
</button> </button>
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="want-to-read" controls_uid=uuid %} {% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="want-to-read" controls_uid=uuid %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -21,7 +21,8 @@
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<div class="field has-addons"> <div class="field has-addons">
<div class="control"> <div class="control">
{% include 'snippets/toggle/toggle_button.html' with controls_text="show-comment" controls_uid=status.id text="Reply" icon="comment" class="is-small toggle-button" focus="id_content_reply" %} {% trans "Reply" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with controls_text="show-comment" controls_uid=status.id text=button_text icon="comment" class="is-small toggle-button" focus="id_content_reply" %}
</div> </div>
<div class="control"> <div class="control">
{% include 'snippets/boost_button.html' with status=status %} {% include 'snippets/boost_button.html' with status=status %}

View file

@ -13,13 +13,15 @@
{% if status.content_warning %} {% if status.content_warning %}
<div> <div>
<p>{{ status.content_warning }}</p> <p>{{ status.content_warning }}</p>
{% include 'snippets/toggle/open_button.html' with text="show more" class="is-small" controls_text="show-status-cw" controls_uid=status.id %} {% trans "Show more" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
</div> </div>
{% endif %} {% endif %}
<div{% if status.content_warning %} class="hidden" id="show-status-cw-{{ status.id }}"{% endif %}> <div{% if status.content_warning %} class="hidden" id="show-status-cw-{{ status.id }}"{% endif %}>
{% if status.content_warning %} {% if status.content_warning %}
{% include 'snippets/toggle/close_button.html' with text="show less" class="is-small" controls_text="show-status-cw" controls_uid=status.id %} {% trans "Show less" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
{% endif %} {% endif %}
{% if status.quote %} {% if status.quote %}

View file

@ -1,4 +1,6 @@
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% load i18n %}
{% with 0|uuid as uuid %} {% with 0|uuid as uuid %}
{% if full %} {% if full %}
{% with full|to_markdown|safe as full %} {% with full|to_markdown|safe as full %}
@ -7,12 +9,14 @@
{% if trimmed != full %} {% if trimmed != full %}
<div id="hide-full-{{ uuid }}"> <div id="hide-full-{{ uuid }}">
<div class="content" id="trimmed-{{ uuid }}"><span dir="auto">{{ trimmed }}</span> <div class="content" id="trimmed-{{ uuid }}"><span dir="auto">{{ trimmed }}</span>
{% include 'snippets/toggle/open_button.html' with text="show more" controls_text="full" controls_uid=uuid class="is-small" %} {% trans "Show more" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text controls_text="full" controls_uid=uuid class="is-small" %}
</div> </div>
</div> </div>
<div id="full-{{ uuid }}" class="hidden"> <div id="full-{{ uuid }}" class="hidden">
<div class="content"><span dir="auto">{{ full }}</span> <div class="content"><span dir="auto">{{ full }}</span>
{% include 'snippets/toggle/close_button.html' with text="show less" controls_text="full" controls_uid=uuid class="is-small" %} {% trans "Show less" as button_text %}
{% include 'snippets/toggle/close_button.html' with text=button_text controls_text="full" controls_uid=uuid class="is-small" %}
</div> </div>
</div> </div>
{% else %} {% else %}

View file

@ -14,7 +14,8 @@
</div> </div>
{% if is_self %} {% if is_self %}
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text="Create new list" %} {% trans "Create new list" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="create-list" icon="plus" text=button_text %}
</div> </div>
{% endif %} {% endif %}
</div> </div>

View file

@ -2,8 +2,6 @@
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% load i18n %} {% load i18n %}
{% block title %}{% blocktrans with username=user.display_name %}Shelves: {{ username }}{% endblocktrans %}{% endblock %}
{% block header %} {% block header %}
<header class="columns"> <header class="columns">
<h1 class="title"> <h1 class="title">
@ -32,7 +30,7 @@
{% if is_self %} {% if is_self %}
<div class="column is-narrow"> <div class="column is-narrow">
{% trans "Create Shelf" as button_text %} {% trans "Create shelf" as button_text %}
{% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" controls_text="create-shelf-form" focus="create-shelf-form-header" %} {% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" controls_text="create-shelf-form" focus="create-shelf-form-header" %}
</div> </div>
{% endif %} {% endif %}
@ -53,7 +51,8 @@
</div> </div>
{% if is_self %} {% if is_self %}
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/toggle/open_button.html' with text="Edit shelf" icon="pencil" controls_text="edit-shelf-form" focus="edit-shelf-form-header" %} {% 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" %}
</div> </div>
{% endif %} {% endif %}
</div> </div>

View file

@ -12,8 +12,8 @@
<p><a href="{{ user.remote_id }}">{{ user.username }}</a></p> <p><a href="{{ user.remote_id }}">{{ user.username }}</a></p>
<p>{% blocktrans with date=user.created_date|naturaltime %}Joined {{ date }}{% endblocktrans %}</p> <p>{% blocktrans with date=user.created_date|naturaltime %}Joined {{ date }}{% endblocktrans %}</p>
<p> <p>
<a href="{{ user.local_path }}/followers">{{ user.followers.count }} follower{{ user.followers.count | pluralize }}</a>, <a href="{{ user.local_path }}/followers">{% blocktrans count counter=user.followers.count %}{{ counter }} follower{% plural %}{{ counter }} followers{% endblocktrans %}</a>,
<a href="{{ user.local_path }}/following">{{ user.following.count }} following</a> <a href="{{ user.local_path }}/following">{% blocktrans with counter=user.following.count %}{{ counter }} following{% endblocktrans %}</a>
</p> </p>
</div> </div>
</div> </div>

View file

@ -1,18 +1,18 @@
# English language text for the bookwyrm UI # Stub English-language trnaslation file
# Copyright (C) 2021 Mouse Reeve # Copyright (C) 2021 Mouse Reeve
# This file is distributed under the same license as the bookwyrm package. # This file is distributed under the same license as the BookWyrm package.
# Mouse Reeve <mousereeve@riseup.net>, 2021 # Mouse Reeve <mousereeve@riseup.net>, 2021
# #
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.1.1\n" "Project-Id-Version: 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-28 10:45-0800\n" "POT-Creation-Date: 2021-03-01 09:32-0800\n"
"PO-Revision-Date: 2021-02-27 13:50+PST\n" "PO-Revision-Date: 2021-02-28 17:19-0800\n"
"Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n" "Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n"
"Language-Team: Mouse Reeve <LL@li.org>\n" "Language-Team: English <LL@li.org>\n"
"Language: English \n" "Language: English\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
@ -61,61 +61,85 @@ msgstr ""
msgid "View on OpenLibrary" msgid "View on OpenLibrary"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:104 bookwyrm/templates/edit_book.html:39 #: bookwyrm/templates/book.html:98
msgid "Add Description"
msgstr ""
#: bookwyrm/templates/book.html:105 bookwyrm/templates/edit_book.html:39
#: bookwyrm/templates/lists/form.html:12 #: bookwyrm/templates/lists/form.html:12
msgid "Description:" msgid "Description:"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:108 bookwyrm/templates/edit_author.html:78 #: bookwyrm/templates/book.html:109 bookwyrm/templates/edit_author.html:78
#: bookwyrm/templates/edit_book.html:120 bookwyrm/templates/lists/form.html:42 #: bookwyrm/templates/edit_book.html:120 bookwyrm/templates/lists/form.html:42
#: bookwyrm/templates/preferences/edit_user.html:50 #: bookwyrm/templates/preferences/edit_user.html:50
#: bookwyrm/templates/settings/site.html:89 #: bookwyrm/templates/settings/site.html:89
#: bookwyrm/templates/snippets/progress_update.html:21 #: bookwyrm/templates/snippets/progress_update.html:21
#: bookwyrm/templates/snippets/readthrough.html:61 #: bookwyrm/templates/snippets/readthrough.html:64
#: 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/start_reading_modal.html:34 #: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:34
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:140 #: bookwyrm/templates/book.html:110 bookwyrm/templates/book.html:159
#: bookwyrm/templates/edit_author.html:79 bookwyrm/templates/edit_book.html:121
#: bookwyrm/templates/snippets/delete_readthrough_modal.html:17
#: bookwyrm/templates/snippets/goal_form.html:32
#: bookwyrm/templates/snippets/readthrough.html:65
#: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:43
#: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:35
#: bookwyrm/templates/snippets/shelve_button/want_to_read_modal.html:28
msgid "Cancel"
msgstr ""
#: bookwyrm/templates/book.html:142
msgid "Your reading activity" msgid "Your reading activity"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:146 #: bookwyrm/templates/book.html:144
msgid "Add read dates"
msgstr ""
#: bookwyrm/templates/book.html:149
msgid "You don't have any reading activity for this book." msgid "You don't have any reading activity for this book."
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:153 #: bookwyrm/templates/book.html:156
msgid "Create" msgid "Create"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:174 #: bookwyrm/templates/book.html:178
msgid "Tags" msgid "Tags"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:178 bookwyrm/templates/snippets/tag.html:18 #: bookwyrm/templates/book.html:182 bookwyrm/templates/snippets/tag.html:18
msgid "Add tag" msgid "Add tag"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:195 #: bookwyrm/templates/book.html:199
msgid "Subjects" msgid "Subjects"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:206 #: bookwyrm/templates/book.html:210
msgid "Places" msgid "Places"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:217 bookwyrm/templates/layout.html:64 #: bookwyrm/templates/book.html:221 bookwyrm/templates/layout.html:64
#: bookwyrm/templates/lists/lists.html:4 bookwyrm/templates/lists/lists.html:9 #: bookwyrm/templates/lists/lists.html:4 bookwyrm/templates/lists/lists.html:9
#: bookwyrm/templates/search_results.html:88 #: bookwyrm/templates/search_results.html:90
#: bookwyrm/templates/user/user_layout.html:62 #: bookwyrm/templates/user/user_layout.html:62
msgid "Lists" msgid "Lists"
msgstr "" msgstr ""
#: bookwyrm/templates/book.html:246 #: bookwyrm/templates/book.html:250
msgid "rated it" msgid "rated it"
msgstr "" msgstr ""
#: bookwyrm/templates/components/inline_form.html:8
#: bookwyrm/templates/feed/feed_layout.html:51
msgid "Close"
msgstr ""
#: bookwyrm/templates/discover/about.html:7 #: bookwyrm/templates/discover/about.html:7
#, python-format #, python-format
msgid "About %(site_name)s" msgid "About %(site_name)s"
@ -219,10 +243,6 @@ msgstr ""
msgid "Goodreads key:" msgid "Goodreads key:"
msgstr "" msgstr ""
#: bookwyrm/templates/edit_author.html:79 bookwyrm/templates/edit_book.html:121
msgid "Cancel"
msgstr ""
#: bookwyrm/templates/edit_book.html:31 #: bookwyrm/templates/edit_book.html:31
msgid "Title:" msgid "Title:"
msgstr "" msgstr ""
@ -304,6 +324,7 @@ msgid "Direct Messages with <a href=\"%(path)s\">%(username)s</a>"
msgstr "" msgstr ""
#: bookwyrm/templates/feed/direct_messages.html:10 #: bookwyrm/templates/feed/direct_messages.html:10
#: bookwyrm/templates/layout.html:79
msgid "Direct Messages" msgid "Direct Messages"
msgstr "" msgstr ""
@ -354,7 +375,7 @@ msgid ""
"There are no books here right now! Try searching for a book to get started" "There are no books here right now! Try searching for a book to get started"
msgstr "" msgstr ""
#: bookwyrm/templates/feed/feed_layout.html:70 bookwyrm/templates/goal.html:25 #: bookwyrm/templates/feed/feed_layout.html:73 bookwyrm/templates/goal.html:26
#: bookwyrm/templates/snippets/goal_card.html:6 #: bookwyrm/templates/snippets/goal_card.html:6
#, python-format #, python-format
msgid "%(year)s Reading Goal" msgid "%(year)s Reading Goal"
@ -369,7 +390,11 @@ msgstr ""
msgid "%(year)s Reading Progress" msgid "%(year)s Reading Progress"
msgstr "" msgstr ""
#: bookwyrm/templates/goal.html:29 #: bookwyrm/templates/goal.html:11
msgid "Edit Goal"
msgstr ""
#: bookwyrm/templates/goal.html:30
#: bookwyrm/templates/snippets/goal_card.html:13 #: bookwyrm/templates/snippets/goal_card.html:13
#, python-format #, python-format
msgid "" msgid ""
@ -377,22 +402,23 @@ msgid ""
"your progress throughout the year." "your progress throughout the year."
msgstr "" msgstr ""
#: bookwyrm/templates/goal.html:38 #: bookwyrm/templates/goal.html:39
#, python-format #, python-format
msgid "%(name)s hasn't set a reading goal for %(year)s." msgid "%(name)s hasn't set a reading goal for %(year)s."
msgstr "" msgstr ""
#: bookwyrm/templates/goal.html:50 #: bookwyrm/templates/goal.html:51
#, python-format #, python-format
msgid "Your %(year)s Books" msgid "Your %(year)s Books"
msgstr "" msgstr ""
#: bookwyrm/templates/goal.html:52 #: bookwyrm/templates/goal.html:53
#, python-format #, python-format
msgid "%(username)s's %(year)s Books" msgid "%(username)s's %(year)s Books"
msgstr "" msgstr ""
#: bookwyrm/templates/import.html:5 bookwyrm/templates/import.html:9 #: bookwyrm/templates/import.html:5 bookwyrm/templates/import.html:9
#: bookwyrm/templates/layout.html:94
msgid "Import Books" msgid "Import Books"
msgstr "" msgstr ""
@ -494,6 +520,10 @@ msgstr ""
msgid "Sorry! This invite code is no longer valid." msgid "Sorry! This invite code is no longer valid."
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:33
msgid "Search for a book or user"
msgstr ""
#: bookwyrm/templates/layout.html:37 bookwyrm/templates/layout.html:38 #: bookwyrm/templates/layout.html:37 bookwyrm/templates/layout.html:38
#: bookwyrm/templates/lists/list.html:62 #: bookwyrm/templates/lists/list.html:62
msgid "Search" msgid "Search"
@ -511,6 +541,29 @@ msgstr ""
msgid "Feed" msgid "Feed"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:84
#: bookwyrm/templates/preferences/preferences_layout.html:14
msgid "Profile"
msgstr ""
#: bookwyrm/templates/layout.html:89
msgid "Settings"
msgstr ""
#: bookwyrm/templates/layout.html:103
#: bookwyrm/templates/settings/admin_layout.html:19
#: bookwyrm/templates/settings/manage_invites.html:3
msgid "Invites"
msgstr ""
#: bookwyrm/templates/layout.html:110
msgid "Site Configuration"
msgstr ""
#: bookwyrm/templates/layout.html:117
msgid "Log out"
msgstr ""
#: bookwyrm/templates/layout.html:125 bookwyrm/templates/layout.html:126 #: bookwyrm/templates/layout.html:125 bookwyrm/templates/layout.html:126
#: bookwyrm/templates/notifications.html:6 #: bookwyrm/templates/notifications.html:6
#: bookwyrm/templates/notifications.html:10 #: bookwyrm/templates/notifications.html:10
@ -536,7 +589,14 @@ msgstr ""
msgid "Contact site admin" msgid "Contact site admin"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:198
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/templates/lists/create_form.html:5 #: bookwyrm/templates/lists/create_form.html:5
#: bookwyrm/templates/lists/lists.html:17
msgid "Create List" msgid "Create List"
msgstr "" msgstr ""
@ -565,6 +625,7 @@ msgid "Discard"
msgstr "" msgstr ""
#: bookwyrm/templates/lists/edit_form.html:5 #: bookwyrm/templates/lists/edit_form.html:5
#: bookwyrm/templates/lists/list_layout.html:17
msgid "Edit List" msgid "Edit List"
msgstr "" msgstr ""
@ -655,7 +716,7 @@ msgstr ""
msgid "Your lists" msgid "Your lists"
msgstr "" msgstr ""
#: bookwyrm/templates/lists/lists.html:39 #: bookwyrm/templates/lists/lists.html:40
msgid "Recent Lists" msgid "Recent Lists"
msgstr "" msgstr ""
@ -692,50 +753,140 @@ msgstr ""
msgid "Delete notifications" msgid "Delete notifications"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:48 #: bookwyrm/templates/notifications.html:49
#, python-format #, python-format
msgid "favorited your <a href=\"%(related_path)s\">%(preview_name)s</a>" msgid ""
"favorited your <a href=\"%(related_path)s\">review of <em>%(book_title)s</"
"em></a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:51 #: bookwyrm/templates/notifications.html:51
#, python-format #, python-format
msgid "mentioned you in a <a href=\"%(related_path)s\">%(preview_name)s</a>" msgid ""
"favorited your <a href=\"%(related_path)s\">comment on <em>%(book_title)s</"
"em></a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:54 #: bookwyrm/templates/notifications.html:53
#, python-format #, python-format
msgid "" msgid ""
"<a href=\"%(related_path)s\">replied</a> to your <a href=\"%(parent_path)s\">" "favorited your <a href=\"%(related_path)s\">quote from <em>%(book_title)s</"
"%(preview_name)s</a>" "em></a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:57 #: bookwyrm/templates/notifications.html:55
msgid "followed you" #, python-format
msgid "favorited your <a href=\"%(related_path)s\">status</a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:60 #: bookwyrm/templates/notifications.html:60
#, python-format
msgid ""
"mentioned you in a <a href=\"%(related_path)s\">review of <em>"
"%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:62
#, python-format
msgid ""
"mentioned you in a <a href=\"%(related_path)s\">comment on <em>"
"%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:64
#, python-format
msgid ""
"mentioned you in a <a href=\"%(related_path)s\">quote from <em>"
"%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:66
#, python-format
msgid "mentioned you in a <a href=\"%(related_path)s\">status</a>"
msgstr ""
#: bookwyrm/templates/notifications.html:71
#, python-format
msgid ""
"<a href=\"%(related_path)s\">replied</a> to your <a href=\"%(parent_path)s"
"\">review of <em>%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:73
#, python-format
msgid ""
"<a href=\"%(related_path)s\">replied</a> to your <a href=\"%(parent_path)s"
"\">comment on <em>%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:75
#, python-format
msgid ""
"<a href=\"%(related_path)s\">replied</a> to your <a href=\"%(parent_path)s"
"\">quote from <em>%(book_title)s</em></a>"
msgstr ""
#: bookwyrm/templates/notifications.html:77
#, python-format
msgid ""
"<a href=\"%(related_path)s\">replied</a> to your <a href=\"%(parent_path)s"
"\">status</a>"
msgstr ""
#: bookwyrm/templates/notifications.html:81
msgid "followed you"
msgstr ""
#: bookwyrm/templates/notifications.html:84
msgid "sent you a follow request" msgid "sent you a follow request"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:65 #: bookwyrm/templates/notifications.html:90
#, python-format #, python-format
msgid "boosted your <a href=\"%(related_path)s\">%(preview_name)s</a>" msgid ""
"boosted your <a href=\"%(related_path)s\">review of <em>%(book.title)s</em></"
"a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:67 #: bookwyrm/templates/notifications.html:92
msgid "added" #, python-format
msgid ""
"boosted your <a href=\"%(related_path)s\">comment on<em>%(book.title)s</em></"
"a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:67 #: bookwyrm/templates/notifications.html:94
msgid "suggested adding" #, python-format
msgid ""
"boosted your <a href=\"%(related_path)s\">quote from <em>%(book.title)s</"
"em></a>"
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:70 #: bookwyrm/templates/notifications.html:96
#, python-format
msgid "boosted your <a href=\"%(related_path)s\">status</a>"
msgstr ""
#: bookwyrm/templates/notifications.html:100
#, python-format
msgid ""
" added <em><a href=\"%(book_path)s\">%(book_title)s</a></em> to your list "
"\"<a href=\"%(list_path)s\">%(list_name)s</a>\""
msgstr ""
#: bookwyrm/templates/notifications.html:102
#, python-format
msgid ""
" suggested adding <em><a href=\"%(book_path)s\">%(book_title)s</a></em> to "
"your list \"<a href=\"%(list_path)s/curate\">%(list_name)s</a>\""
msgstr ""
#: bookwyrm/templates/notifications.html:106
#, python-format #, python-format
msgid " your <a href=\"/import/%(related_id)s\">import</a> completed." msgid " your <a href=\"/import/%(related_id)s\">import</a> completed."
msgstr "" msgstr ""
#: bookwyrm/templates/notifications.html:102 #: bookwyrm/templates/notifications.html:138
msgid "You're all caught up!" msgid "You're all caught up!"
msgstr "" msgstr ""
@ -815,10 +966,6 @@ msgstr ""
msgid "Account" msgid "Account"
msgstr "" msgstr ""
#: bookwyrm/templates/preferences/preferences_layout.html:14
msgid "Profile"
msgstr ""
#: bookwyrm/templates/preferences/preferences_layout.html:20 #: bookwyrm/templates/preferences/preferences_layout.html:20
msgid "Relationships" msgid "Relationships"
msgstr "" msgstr ""
@ -845,20 +992,28 @@ msgstr ""
msgid "Didn't find what you were looking for?" msgid "Didn't find what you were looking for?"
msgstr "" msgstr ""
#: bookwyrm/templates/search_results.html:56 #: bookwyrm/templates/search_results.html:35
msgid "Show results from other catalogues"
msgstr ""
#: bookwyrm/templates/search_results.html:57
msgid "Import book" msgid "Import book"
msgstr "" msgstr ""
#: bookwyrm/templates/search_results.html:73 #: bookwyrm/templates/search_results.html:67
msgid "Matching Users" msgid "Hide results from other catalogues"
msgstr "" msgstr ""
#: bookwyrm/templates/search_results.html:75 #: bookwyrm/templates/search_results.html:75
msgid "Matching Users"
msgstr ""
#: bookwyrm/templates/search_results.html:77
#, python-format #, python-format
msgid "No users found for \"%(query)s\"" msgid "No users found for \"%(query)s\""
msgstr "" msgstr ""
#: bookwyrm/templates/search_results.html:90 #: bookwyrm/templates/search_results.html:92
#, python-format #, python-format
msgid "No lists found for \"%(query)s\"" msgid "No lists found for \"%(query)s\""
msgstr "" msgstr ""
@ -871,11 +1026,6 @@ msgstr ""
msgid "Manage Users" msgid "Manage Users"
msgstr "" msgstr ""
#: bookwyrm/templates/settings/admin_layout.html:19
#: bookwyrm/templates/settings/manage_invites.html:3
msgid "Invites"
msgstr ""
#: bookwyrm/templates/settings/admin_layout.html:23 #: bookwyrm/templates/settings/admin_layout.html:23
#: bookwyrm/templates/settings/federation.html:4 #: bookwyrm/templates/settings/federation.html:4
msgid "Federated Servers" msgid "Federated Servers"
@ -1019,10 +1169,15 @@ msgstr ""
msgid "Un-block" msgid "Un-block"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/book_titleby.html:3
#, python-format
msgid "<a href=\"%(path)s\">%(title)s</a> by "
msgstr ""
#: bookwyrm/templates/snippets/boost_button.html:8 #: bookwyrm/templates/snippets/boost_button.html:8
#: bookwyrm/templates/snippets/boost_button.html:9 #: bookwyrm/templates/snippets/boost_button.html:9
#: bookwyrm/templates/snippets/status/status_body.html:40
#: bookwyrm/templates/snippets/status/status_body.html:41 #: bookwyrm/templates/snippets/status/status_body.html:41
#: bookwyrm/templates/snippets/status/status_body.html:42
msgid "Boost status" msgid "Boost status"
msgstr "" msgstr ""
@ -1039,16 +1194,16 @@ msgstr ""
msgid "Spoilers ahead!" msgid "Spoilers ahead!"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/create_status.html:8 #: bookwyrm/templates/snippets/create_status.html:9
msgid "Review" msgid "Review"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/create_status.html:11 #: bookwyrm/templates/snippets/create_status.html:12
#: bookwyrm/templates/snippets/create_status_form.html:44 #: bookwyrm/templates/snippets/create_status_form.html:44
msgid "Comment" msgid "Comment"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/create_status.html:14 #: bookwyrm/templates/snippets/create_status.html:15
msgid "Quote" msgid "Quote"
msgstr "" msgstr ""
@ -1063,14 +1218,18 @@ msgstr ""
msgid "No rating" msgid "No rating"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/create_status_form.html:59 #: bookwyrm/templates/snippets/create_status_form.html:54
msgid "Include spoiler alert"
msgstr ""
#: bookwyrm/templates/snippets/create_status_form.html:60
#: 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 "" msgstr ""
#: bookwyrm/templates/snippets/create_status_form.html:66 #: bookwyrm/templates/snippets/create_status_form.html:67
msgid "Post" msgid "Post"
msgstr "" msgstr ""
@ -1092,8 +1251,8 @@ msgstr ""
#: bookwyrm/templates/snippets/fav_button.html:7 #: bookwyrm/templates/snippets/fav_button.html:7
#: bookwyrm/templates/snippets/fav_button.html:8 #: bookwyrm/templates/snippets/fav_button.html:8
#: bookwyrm/templates/snippets/status/status_body.html:44
#: bookwyrm/templates/snippets/status/status_body.html:45 #: bookwyrm/templates/snippets/status/status_body.html:45
#: bookwyrm/templates/snippets/status/status_body.html:46
msgid "Like status" msgid "Like status"
msgstr "" msgstr ""
@ -1122,6 +1281,13 @@ msgstr ""
msgid "Accept" msgid "Accept"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/generated_status/goal.html:1
#, python-format
msgid "set a goal to read %(counter)s book in %(year)s"
msgid_plural "set a goal to read %(counter)s books in %(year)s"
msgstr[0] ""
msgstr[1] ""
#: bookwyrm/templates/snippets/goal_card.html:21 #: bookwyrm/templates/snippets/goal_card.html:21
msgid "Dismiss message" msgid "Dismiss message"
msgstr "" msgstr ""
@ -1165,6 +1331,19 @@ msgstr ""
msgid "%(percent)s%% complete!" msgid "%(percent)s%% complete!"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/goal_progress.html:10
#, python-format
msgid ""
"You've read <a href=\"%(path)s\">%(read_count)s of %(goal_count)s books</a>."
msgstr ""
#: bookwyrm/templates/snippets/goal_progress.html:12
#, python-format
msgid ""
"%(username)s has read <a href=\"%(path)s\">%(read_count)s of %(goal_count)s "
"books</a>."
msgstr ""
#: bookwyrm/templates/snippets/pagination.html:7 #: bookwyrm/templates/snippets/pagination.html:7
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
@ -1233,18 +1412,27 @@ msgstr ""
msgid "finished" msgid "finished"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/readthrough.html:29 #: bookwyrm/templates/snippets/readthrough.html:14
msgid "Show all updates"
msgstr ""
#: bookwyrm/templates/snippets/readthrough.html:30
msgid "Delete this progress update" msgid "Delete this progress update"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/readthrough.html:39 #: bookwyrm/templates/snippets/readthrough.html:40
msgid "started" msgid "started"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/readthrough.html:57 #: bookwyrm/templates/snippets/readthrough.html:46
#: bookwyrm/templates/snippets/readthrough.html:60
msgid "Edit read dates" msgid "Edit read dates"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/readthrough.html:50
msgid "Delete these read dates"
msgstr ""
#: bookwyrm/templates/snippets/readthrough_form.html:7 #: bookwyrm/templates/snippets/readthrough_form.html:7
#: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:19 #: bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html:19
#: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:17 #: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:17
@ -1338,10 +1526,23 @@ msgstr ""
msgid "More shelves" msgid "More shelves"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:10 #: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:8
msgid "Start reading"
msgstr ""
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:11
msgid "Read" msgid "Read"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:13
msgid "Finish reading"
msgstr ""
#: bookwyrm/templates/snippets/shelve_button/shelve_button_options.html:16
#: bookwyrm/templates/snippets/shelve_button/want_to_read_modal.html:26
msgid "Want to read"
msgstr ""
#: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:5 #: bookwyrm/templates/snippets/shelve_button/start_reading_modal.html:5
#, python-format #, python-format
msgid "Start \"<em>%(book_title)s</em>\"" msgid "Start \"<em>%(book_title)s</em>\""
@ -1352,20 +1553,27 @@ msgstr ""
msgid "Want to Read \"<em>%(book_title)s</em>\"" msgid "Want to Read \"<em>%(book_title)s</em>\""
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/shelve_button/want_to_read_modal.html:26
msgid "Want to read"
msgstr ""
#: bookwyrm/templates/snippets/status/status.html:7 #: bookwyrm/templates/snippets/status/status.html:7
msgid "boosted" msgid "boosted"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/status/status_body.html:36 #: bookwyrm/templates/snippets/status/status_body.html:24
#: bookwyrm/templates/snippets/status/status_body.html:37 #: bookwyrm/templates/snippets/status/status_body.html:37
#: bookwyrm/templates/snippets/status/status_body.html:38
msgid "Reply" msgid "Reply"
msgstr "" msgstr ""
#: bookwyrm/templates/snippets/status/status_content.html:42 #: bookwyrm/templates/snippets/status/status_content.html:16
#: bookwyrm/templates/snippets/trimmed_text.html:12
msgid "Show more"
msgstr ""
#: bookwyrm/templates/snippets/status/status_content.html:23
#: bookwyrm/templates/snippets/trimmed_text.html:18
msgid "Show less"
msgstr ""
#: bookwyrm/templates/snippets/status/status_content.html:44
msgid "Open image in new window" msgid "Open image in new window"
msgstr "" msgstr ""
@ -1401,6 +1609,7 @@ msgid "Create New Shelf"
msgstr "" msgstr ""
#: bookwyrm/templates/user/create_shelf_form.html:22 #: bookwyrm/templates/user/create_shelf_form.html:22
#: bookwyrm/templates/user/shelf.html:33
msgid "Create shelf" msgid "Create shelf"
msgstr "" msgstr ""
@ -1440,26 +1649,25 @@ msgstr ""
msgid "Lists: %(username)s" msgid "Lists: %(username)s"
msgstr "" msgstr ""
#: bookwyrm/templates/user/lists.html:28 #: bookwyrm/templates/user/lists.html:17
msgid "Create new list"
msgstr ""
#: bookwyrm/templates/user/lists.html:29
msgid "Create list" msgid "Create list"
msgstr "" msgstr ""
#: bookwyrm/templates/user/shelf.html:5 #: bookwyrm/templates/user/shelf.html:9
#, python-format
msgid "Shelves: %(username)s"
msgstr ""
#: bookwyrm/templates/user/shelf.html:11
msgid "Your Shelves" msgid "Your Shelves"
msgstr "" msgstr ""
#: bookwyrm/templates/user/shelf.html:13 #: bookwyrm/templates/user/shelf.html:11
#, python-format #, python-format
msgid "%(username)s: Shelves" msgid "%(username)s: Shelves"
msgstr "" msgstr ""
#: bookwyrm/templates/user/shelf.html:35 #: bookwyrm/templates/user/shelf.html:54
msgid "Create Shelf" msgid "Edit shelf"
msgstr "" msgstr ""
#: bookwyrm/templates/user/user.html:15 #: bookwyrm/templates/user/user.html:15
@ -1514,3 +1722,15 @@ msgstr ""
#, python-format #, python-format
msgid "Joined %(date)s" msgid "Joined %(date)s"
msgstr "" msgstr ""
#: bookwyrm/templates/user/user_preview.html:15
#, python-format
msgid "%(counter)s follower"
msgid_plural "%(counter)s followers"
msgstr[0] ""
msgstr[1] ""
#: bookwyrm/templates/user/user_preview.html:16
#, python-format
msgid "%(counter)s following"
msgstr ""