Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly pluralise values in calculate-your-holiday-entitlement #2059

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

erkde
Copy link
Contributor

@erkde erkde commented Nov 9, 2015

Expected changes

  • Example URL
    • Outcome displays correct pluralization of "1 day" in outcome

screen shot 2015-11-09 at 8 39 20 am

@chrisroos
Copy link
Contributor

I can't find any reference to this in PT or Zendesk. I've asked in the #content Slack channel to see who knows about it.

@erkde
Copy link
Contributor Author

erkde commented Nov 11, 2015

It just was something 2nd line pointed out during the last deploy, currently it shows '1 days' or similar in several of the outcomes when the value is singular but the measure is plural. For example:

https://www.gov.uk/calculate-your-holiday-entitlement/y/days-worked-per-week/full-year/0.17

@erik-eide noticed that we were always displaying the plural of "shifts",
"days", "hours" and "minutes" in the outcomes of this Smart Answer.

This change uses the `pluralize` helper so that we correctly display the
singular or plural version of each of those words.

There were no changes to regression test artefacts, presumably because we only
ever test with quantities of more than 1.
@chrisroos chrisroos force-pushed the fix_holiday_entitlement_pluralization branch from cc5b29a to 305a673 Compare November 12, 2015 12:07
@chrisroos
Copy link
Contributor

I've rebased on master and force pushed in preparation for merging.

@chrisroos chrisroos changed the title Add pluralisation of days, hour and minute values in calculate your h… Correctly pluralise values in calculate-your-holiday-entitlement Nov 12, 2015
@chrisroos
Copy link
Contributor

Thanks for the update @erik-eide. I hope you don't mind but I've updated the commit message to explain that this was something you noticed.

I'm going to merge this to master as soon as the tests pass.

chrisroos added a commit that referenced this pull request Nov 12, 2015
…ization

Correctly pluralise values in calculate-your-holiday-entitlement
@chrisroos chrisroos merged commit d137a05 into master Nov 12, 2015
@chrisroos chrisroos deleted the fix_holiday_entitlement_pluralization branch November 12, 2015 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants