-
Notifications
You must be signed in to change notification settings - Fork 382
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
CLDR-13864 Add night unit #3713
Conversation
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. |
ping |
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.
LGTM
@@ -1869,7 +1869,8 @@ private static final class UnitOrderHolder { | |||
"volume-sai", | |||
"volume-to-jp", | |||
"volume-koku", | |||
"mass-fun")) | |||
"mass-fun", | |||
"duration-night")) |
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.
sounds like a big party!
<displayName>nights</displayName> | ||
<unitPattern count="one">{0} night</unitPattern> | ||
<unitPattern count="other">{0} nights</unitPattern> | ||
<perUnitPattern>{0}/night</perUnitPattern> |
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.
@macchiati - Why is night different than day here? Day has '{0} per day'
Good catch. I'll make a PR to fix that.
…On Tue, May 14, 2024 at 2:40 PM Annemarie Apple ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In common/main/en.xml
<#3713 (comment)>:
> @@ -7021,6 +7021,12 @@ annotations.
<unitPattern count="other">{0} days</unitPattern>
<perUnitPattern>{0} per day</perUnitPattern>
</unit>
+ <unit type="duration-night">
+ <displayName>nights</displayName>
+ <unitPattern count="one">{0} night</unitPattern>
+ <unitPattern count="other">{0} nights</unitPattern>
+ <perUnitPattern>{0}/night</perUnitPattern>
@macchiati <https://github.com/macchiati> - Why is night different than
day here? Day has '{0} per day'
—
Reply to this email directly, view it on GitHub
<#3713 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJLEME2OKHL3OUMFGAVZP3ZCKADRAVCNFSM6AAAAABHTMLKPCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJWGUYDSMBUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
CLDR-13864
Adds unit
night
, as in "Your hotel reservation is for 3 nights". Because it is metric_adjacent, will get grammarAdds 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.
ALLOW_MANY_COMMITS=true