-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Correctly pluralize assignees on ticket page #1555
Correctly pluralize assignees on ticket page #1555
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1555 +/- ##
=======================================
Coverage 46.10% 46.10%
=======================================
Files 210 210
Lines 12074 12074
=======================================
Hits 5567 5567
Misses 6507 6507 Continue to review full report at Codecov.
|
templates/ticket/ticket.html
Outdated
@@ -357,7 +357,13 @@ | |||
</div> | |||
</div> | |||
<div class="info-box"> | |||
<div class="info-title">{{ _('Assignees') }}</div> | |||
<div class="info-title"> | |||
{% trans trimmed count=assignees|length, singular=_("Assignee"), pluralized=_("Assignees") %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried something similar but the resulting change broke the translations :/
EDIT: I see what I've been doing wrong. Just updated it to the cleaner method. Thank you!
Yikes I closed this on accident, I'm going to reopen this again |
5ff6a18
to
3c47fd3
Compare
I also tested the change with the i18n translations and it works properly.
Not sure whether this is the best way to write it. If there's a better way to change this please let me know :(