Bug #5753
closedLocalisation: numbering as words
0%
Description
What should be the output of
format-number(101, "w", "en")
and should it vary between en-GB and en-US?
At present, for both en-GB and en-US, we are returning the cardinal "one hundred and one" and the ordinal "one hundred and first". But a unit test that calls ICU directly, not via XPath, is outputting the cardinal "one hundred and one" and the ordinal "one hundred first" - again, for both locales, Which is correct, and why do they vary?
I think that what is happening here is that ICU offers two cardinal numbering schemes spellout-cardinal
and spellout-cardinal-verbose
, and similarly two ordinal schemes spellout-ordinal
and spellout-ordinal-verbose
; and we are choosing between them essentially at random. The verbose
option includes and
in the result, the non-verbose option omits it.
Please register to edit this issue