diff --git a/components/Person/Controller/PersonFeed.php b/components/Person/Controller/PersonFeed.php
index ce23d9b4f2..1d997791fc 100644
--- a/components/Person/Controller/PersonFeed.php
+++ b/components/Person/Controller/PersonFeed.php
@@ -80,7 +80,7 @@ class PersonFeed extends FeedController
'actor' => $person,
'nickname' => $person->getNickname(),
'notes' => E\Note::getAllNotesByActor($person),
- 'page_title' => _m($person->getNickname() . '\'s profile'),
+ 'page_title' => _m('{nickname}\'s profile', ['{nickname}' => $person->getNickname()]),
'notes_feed_title' => (new Heading(level: 2, classes: ['section-title'], text: 'Notes by ' . $person->getNickname())),
];
}
diff --git a/templates/attachment/view.html.twig b/templates/attachment/view.html.twig
index e2c893f8b3..bf51d7b060 100644
--- a/templates/attachment/view.html.twig
+++ b/templates/attachment/view.html.twig
@@ -2,8 +2,8 @@
{% block body %}
{{ 'Attachment' | trans }} {{ title }}
+ {% trans %}Attachment %title%{% endtrans %}
{% include '/cards/blocks/attachment.html.twig' with {'attachment': attachment, 'note': note, 'title': title} only %}
- {{ 'Original attachment link' | trans }}
+ {% trans %}Original attachment link{% endtrans %}