Untranslatable strings in OgEventSubscriber.php
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3552180. -->
Reported by: [gogowitsch](https://www.drupal.org/user/99356)
Related to !54
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>On a non-English site, the "Group" page of a node is not translatable. I expect the text to use User interface translation. </p>
<p>What works: the strings are picked up by Drupal’s translation system and offered for translation. </p>
<p>What doesn’t work: the existing translations are not used in the spots highlighted in yellow below. The picture is of an English site, so in the picture everything looks correct.<br>
<img src="https://www.drupal.org/files/issues/2025-10-15/group-members-not-translatable.png" alt="A picture of a node’s Group page using the Gin theme" title="A picture of a node’s Group page using the Gin theme"></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Configure a node type to be a OG group
</li><li>Go to a node of that type and visit the "Group" page, for example /group/node/1/admin
</li><li>Switch to a non-English user interface language.</li></ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Wrap texts in <code>$this->t()</code> - see MR.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Review proposed code changes</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>For English sites: none</p>
issue