Skip to content
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

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

zecookiez
Copy link
Contributor

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 :(

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2020

Codecov Report

Merging #1555 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a819d4...3c47fd3. Read the comment docs.

@zecookiez zecookiez closed this Sep 30, 2020
@zecookiez zecookiez deleted the fix-ticket-assignee-pluralization branch September 30, 2020 17:21
@zecookiez zecookiez restored the fix-ticket-assignee-pluralization branch September 30, 2020 17:21
@@ -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") %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1554 (line) it looks cleaner.

Copy link
Contributor Author

@zecookiez zecookiez Sep 30, 2020

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!

@zecookiez
Copy link
Contributor Author

Yikes I closed this on accident, I'm going to reopen this again

@zecookiez zecookiez reopened this Sep 30, 2020
@zecookiez zecookiez force-pushed the fix-ticket-assignee-pluralization branch from 5ff6a18 to 3c47fd3 Compare September 30, 2020 17:58
@quantum5 quantum5 changed the title Remove plural S for single assignee on ticket page Correctly pluralize assignees on ticket page Sep 30, 2020
@quantum5 quantum5 merged commit 759c628 into DMOJ:master Sep 30, 2020
@zecookiez zecookiez deleted the fix-ticket-assignee-pluralization branch October 1, 2020 11:40
outloudvi pushed a commit to SchOJ/site that referenced this pull request Oct 27, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants