mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 13:01:29 +01:00
f5c544b59a
* Issue: BTimeUnitFormat doesn't incorporate style formatting while formatting a time unit. Format() does take style as an argument but the style is not used anywhere. So currently the abbreviated style doesn't work and by default the time unit is formatted to the full style. * Fix: Move the style flag from BTimeUnitFormat::Format() to the BTimeUnitFormat constructors and call the relevant icu::TimeUnitFormat constructor. Map the Haiku defined style unit to the corresponding ICU unit. Move the style flag from BDurationFormat::Format() to the BDurationFormat constructors to map the changes in BTimeUnitFormat. Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Fixes #13508