[TEMPLATES][I18N] Fixup use of trans filter, in favour of trans tags. These are much more flexible and facilitate parameterized translations, rather than using concats. The only appropriate use of the trans filter is when a whole string in a variable needs to be translated (which should probably be avoided anyway)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{% extends 'stdgrid.html.twig' %}
|
||||
{% import "/cards/macros/note/factory.html.twig" as NoteFactory %}
|
||||
|
||||
{% block title %}{{ 'Repeat ' | trans }}{{ note.getActorNickname() }}{{ '\'s note.' | trans }}{% endblock %}
|
||||
{% set nickname = note.getActorNickname() %}
|
||||
{% block title %}{% trans %}Repeat %nickname%'s note{% endtrans %}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends 'stdgrid.html.twig' %}
|
||||
{% import "/cards/macros/note/factory.html.twig" as NoteFactory %}
|
||||
|
||||
{% block title %}{{ 'Remove repeat from ' | trans }}{{ note.getActorNickname() }}{{ '\'s note.' | trans }}{% endblock %}
|
||||
{% set nickname = note.getActorNickname() %}
|
||||
{% block title %}{% trans %}Remove repeat from %nickname%'s note{% endtrans %}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
|
Reference in New Issue
Block a user