Skip to content

Commit

Permalink
CLDR-11155 Separate Volume_Metric and Volume_Other
Browse files Browse the repository at this point in the history
-New subroutines makePathHeader and getVolumePageId

-Change example in Dashboard.java from Volume to Area

-Comments
  • Loading branch information
btangmu committed Feb 26, 2024
1 parent c7b91c8 commit 39d22d2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,10 @@ private PageId getVolumePageId(String path) {
if (!Collections.disjoint(METRIC, unitSystemCollection)) {
return PageId.Volume_Metric;
} else {
// TODO: some metric paths are included in Volume_Other instead of in Volume_Metric,
// such as
// //ldml/units/unitLength[@type="narrow"]/unit[@type="volume-cubic-kilometer"]/displayName
// Reference: https://unicode-org.atlassian.net/browse/CLDR-11155
return PageId.Volume_Other;
}
}
Expand Down

0 comments on commit 39d22d2

Please sign in to comment.