ICU-12041 check that per-unit patterns have one placeholder, fix patterns

X-SVN-Rev: 38140
This commit is contained in:
Markus Scherer 2015-12-16 22:29:44 +00:00
parent b24d71cf90
commit f6296491cc
2 changed files with 3 additions and 5 deletions

View file

@ -777,9 +777,7 @@ public class MeasureFormat extends UFormat {
// Skip the unit display name for now.
} else if (key.contentEquals("per")) {
// For example, "{0}/h".
// TODO: Set minPlaceholders=1
// after http://unicode.org/cldr/trac/ticket/9129 is fixed.
setFormatterIfAbsent(MeasureFormatData.PER_UNIT_INDEX, value, 0);
setFormatterIfAbsent(MeasureFormatData.PER_UNIT_INDEX, value, 1);
} else {
// The key must be one of the plural form strings. For example:
// one{"{0} hr"}

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66385b6822df39beb828c9b70233a65f3420d77cf74982800ee41cd53c309f3e
size 11622349
oid sha256:626ed2484fc25dccca603b448372f479724a094a6006aa89be6764cc1af30fc4
size 11622359