Skip to content

Commit 8fbb8b8

Browse files
fix: correct gettext syntax
1 parent 4e5d21d commit 8fbb8b8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

html-templates/subtemplates/comments.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
{sprintf(_("You can use %s for formatting."), $markdownTextLink)}
2525
</p>
2626

27-
<button type="submit" class="btn btn-primary">{tif $Comment ? {_ Edit} : {_ Post}} {_ Comment}</button>
27+
<button type="submit" class="btn btn-primary">{tif $Comment ? _('Edit Comment') : _('Post Comment')}</button>
2828
</div>
2929
</fieldset>
3030
</form>
3131
{else}
3232
{capture assign=loginTextLink}<a class="button primary" href="/login?return={$Context->getURL()|escape:url}">{_ "Log in"}</a>{/capture}
33-
<p class="login-hint well">{sprintf(_("$s to post a comment."), $loginTextLink)}</p>
33+
<p class="login-hint well">{sprintf(_("%s to post a comment."), $loginTextLink)}</p>
3434
{/if}
3535
{/template}
3636

php-classes/Laddr/PeopleRequestHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,10 @@ protected static function onBeforeRecordDestroyed(\ActiveRecord $Person)
7575
foreach ($Person->ProjectMemberships as $ProjectMembership) {
7676
$ProjectMembership->destroy();
7777
}
78+
79+
// delete comments
80+
foreach ($Person->Comments as $Comment) {
81+
$Comment->destroy();
82+
}
7883
}
7984
}

0 commit comments

Comments
 (0)