From caf1d4163bce310ec46839b1b2f3ebde56d5a739 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Tue, 7 Dec 2021 08:36:57 +1100 Subject: [PATCH] simplify translation blocks --- bookwyrm/templates/ostatus/error.html | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/bookwyrm/templates/ostatus/error.html b/bookwyrm/templates/ostatus/error.html index a603529fe..fc1dd18d5 100644 --- a/bookwyrm/templates/ostatus/error.html +++ b/bookwyrm/templates/ostatus/error.html @@ -4,24 +4,18 @@
{% if error == 'invalid_username' %}
- {% blocktrans %} -

{{ account }} is not a valid username.

-

Check you have the correct username before trying again.

- {% endblocktrans %} +

{% blocktrans %}{{ account }} is not a valid username{% endblocktrans %}.

+

{% trans 'Check you have the correct username before trying again' %}.

{% elif error == 'user_not_found' %}
- {% blocktrans %} -

{{ account }} could not be found or {{ remote_domain }} does not support identity discovery.

-

Check you have the correct username before trying again.

- {% endblocktrans %} +

{% blocktrans %}{{ account }} could not be found or {{ remote_domain }} does not support identity discovery{% endblocktrans %}.

+

{% trans 'Check you have the correct username before trying again' %}.

{% elif error == 'not_supported' %}
- {% blocktrans %} -

{{ account }} was found but {{ remote_domain }} does not support 'remote follow'.

-

Try searching for {{ user }} on {{ remote_domain }} instead.

- {% endblocktrans %} +

{% blocktrans %}{{ account }} was found but {{ remote_domain }} does not support 'remote follow'{% endblocktrans %}.

+

{% blocktrans %}Try searching for {{ user }} on {{ remote_domain }} instead{% endblocktrans %}.

{% elif not request.user.is_authenticated %}