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

CLDR-13864 Add night unit #3713

Merged
merged 2 commits into from
May 13, 2024

Conversation

macchiati
Copy link
Member

@macchiati macchiati commented May 13, 2024

CLDR-13864

Adds unit night, as in "Your hotel reservation is for 3 nights". Because it is metric_adjacent, will get grammar

Adds to the normal places: en.xml, root.xml, units.xml, unit.xml

Because night is not convertible to either seconds or months, it has a new quantity. That is reflected in: units.xml, DtdData.java, UnitConverter.java, TestUnits.java

Also changes checkUnitLocalePreferencesTestIcu to not cause an error in testing the preferences test data file, with a CLDR-17581 LogKnownIssue.

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

@macchiati
Copy link
Member Author

After this is merged, file a ticket to move 'special cases' into XML data.

Example: There was a problem in TestCLDRPaths.TestReadPrevSDI because introducing a new quantity causes reading an old XML file fails.

@macchiati
Copy link
Member Author

ping

@macchiati macchiati merged commit 5ae2965 into unicode-org:main May 13, 2024
10 checks passed
@macchiati macchiati deleted the CLDR-13864-Add-night-unit branch May 13, 2024 20:10
Copy link
Member

@btangmu btangmu left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1869,7 +1869,8 @@ private static final class UnitOrderHolder {
"volume-sai",
"volume-to-jp",
"volume-koku",
"mass-fun"))
"mass-fun",
"duration-night"))
Copy link
Member

Choose a reason for hiding this comment

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

sounds like a big party!

<displayName>nights</displayName>
<unitPattern count="one">{0} night</unitPattern>
<unitPattern count="other">{0} nights</unitPattern>
<perUnitPattern>{0}/night</perUnitPattern>
Copy link
Contributor

Choose a reason for hiding this comment

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

@macchiati - Why is night different than day here? Day has '{0} per day'

@macchiati
Copy link
Member Author

macchiati commented May 15, 2024 via email

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.

4 participants