Fixes whitespace in translation strings

This commit is contained in:
Mouse Reeve 2021-10-23 06:59:06 -07:00
parent b4a4f91002
commit 1e6390a405
9 changed files with 19 additions and 18 deletions

View file

@ -36,7 +36,11 @@
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
<p>No potential members found for "{{ user_query }}"</p> <p>
{% blocktrans trimmed %}
No potential members found for "{{ user_query }}"
{% endblocktrans %}
</p>
<br/> <br/>
{% endif %} {% endif %}

View file

@ -13,7 +13,7 @@
{% block description %} {% block description %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
accepted your invitation to join group "<a href="{{ group_path }}">{{ group_name }}</a>" accepted your invitation to join group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %} {% endblocktrans %}

View file

@ -1,4 +1,3 @@
{% load humanize %}
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% related_status notification as related_status %} {% related_status notification as related_status %}
<div class="notification is-clickable {% if notification.id in unread %} is-primary{% endif %}" data-href="{% block primary_link %}{% endblock %}"> <div class="notification is-clickable {% if notification.id in unread %} is-primary{% endif %}" data-href="{% block primary_link %}{% endblock %}">
@ -10,10 +9,8 @@
<div class="block"> <div class="block">
<p> <p>
{% if notification.related_user %} {% if notification.related_user %}
<a href="{{ notification.related_user.local_path }}"> <a href="{{ notification.related_user.local_path }}">{% include 'snippets/avatar.html' with user=notification.related_user %}
{% include 'snippets/avatar.html' with user=notification.related_user %} {{ notification.related_user.display_name }}</a>
{{ notification.related_user.display_name }}
</a>
{% endif %} {% endif %}
{% block description %}{% endblock %} {% block description %}{% endblock %}
</p> </p>

View file

@ -13,7 +13,7 @@
{% block description %} {% block description %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has joined your group "<a href="{{ group_path }}">{{ group_name }}</a>" has joined your group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %} {% endblocktrans %}

View file

@ -13,7 +13,7 @@
{% block description %} {% block description %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has left your group "<a href="{{ group_path }}">{{ group_name }}</a>" has left your group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %} {% endblocktrans %}

View file

@ -14,13 +14,13 @@
{% block description %} {% block description %}
{% if notification.related_user %} {% if notification.related_user %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has been removed from your group "<a href="{{ group_path }}">{{ group_name }}</a>" has been removed from your group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
You have been removed from the "<a href="{{ group_path }}">{{ group_name }}</a> group" You have been removed from the "<a href="{{ group_path }}">{{ group_name }}</a> group"
{% endblocktrans %} {% endblocktrans %}

View file

@ -13,15 +13,15 @@
{% block description %} {% block description %}
{% if notification.notification_type == 'GROUP_PRIVACY' %} {% if notification.notification_type == 'GROUP_PRIVACY' %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has changed the privacy level for <a href="{{ group_path }}">{{ group_name }}</a> has changed the privacy level for <a href="{{ group_path }}">{{ group_name }}</a>
{% endblocktrans %} {% endblocktrans %}
{% elif notification.notification_type == 'GROUP_NAME' %} {% elif notification.notification_type == 'GROUP_NAME' %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has changed the name of <a href="{{ group_path }}">{{ group_name }}</a> has changed the name of <a href="{{ group_path }}">{{ group_name }}</a>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has changed the description of <a href="{{ group_path }}">{{ group_name }}</a> has changed the description of <a href="{{ group_path }}">{{ group_name }}</a>
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}