Simplifies translation strings
This commit is contained in:
@ -7,11 +7,11 @@
|
||||
<h1 class="title">{% trans "Import Status" %}</h1>
|
||||
|
||||
<p>
|
||||
{% trans "Import started: " %}{{ job.created_date | naturaltime }}
|
||||
{% trans "Import started:" %} {{ job.created_date | naturaltime }}
|
||||
</p>
|
||||
{% if job.complete %}
|
||||
<p>
|
||||
{% trans "Import completed: " %}{{ task.date_done | naturaltime }}
|
||||
{% trans "Import completed:" %} {{ task.date_done | naturaltime }}
|
||||
</p>
|
||||
{% elif task.failed %}
|
||||
<div class="notification is-danger">{% trans "TASK FAILED" %}</div>
|
||||
|
@ -35,7 +35,7 @@
|
||||
<div class="control">
|
||||
<button class="button" type="submit">
|
||||
<span class="icon icon-search" title="{% trans 'Search' %}">
|
||||
<span class="is-sr-only">{% trans "search" %}</span>
|
||||
<span class="is-sr-only">{% trans "Search" %}</span>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -42,23 +42,13 @@
|
||||
{% include 'snippets/avatar.html' with user=notification.related_user %}
|
||||
{% include 'snippets/username.html' with user=notification.related_user %}
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
|
||||
{% elif notification.notification_type == 'FOLLOW' %}
|
||||
{% trans "followed you" %}
|
||||
@ -69,9 +59,7 @@
|
||||
{% include 'snippets/follow_request_buttons.html' with user=notification.related_user %}
|
||||
</div>
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
{% 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>"
|
||||
{% endif %}
|
||||
|
@ -83,7 +83,7 @@
|
||||
</section>
|
||||
|
||||
<footer class="block">
|
||||
<button class="button is-primary" type="submit">{% trans "Save Changes" %}</button>
|
||||
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
||||
</footer>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user