|
From: Steven R. L. <sr...@gm...> - 2022-11-01 20:53:45
|
The chart you referenced is for plural categories not for number formatting. I can confirm that CLDR Belarusian data does not have digits-ordinal that you are trying to access. It’s available for these locales: af am ar az bg ca ee en en_IN es es_419 fil fr ga hi id it ja kk km ko ky lo ms nl pt ro root ru sv ta th vi yue yue_Hans zh zh_Hant If you want to contribute it, please file a CLDR bug at cldr.unicode.org <http://cldr.unicode.org/> thanks -- Steven R. Loomis Code Hive Tx, LLC https://codehivetx.us > On Nov 1, 2022, at 3:30 PM, Felipe Gasper <fe...@fe...> wrote: > > Unfortunately I don’t really know. Maybe one of the folks who works on ICU could comment? > > -FG > > >> On Nov 1, 2022, at 16:24, jdi...@ya... wrote: >> >> So is it a bug? >> On Tuesday, November 1, 2022, 04:03:53 PM GMT+3, Felipe Gasper <fe...@fe...> wrote: >> >> >> Yeah, I’m not sure. That’s what icu4c (again, via Perl) also shows, though. Russian & Polish show the same, whereas French & Spanish are as I’d expect. >> >> -FG >> >>> On Nov 1, 2022, at 05:56, jdison16--- via icu-support <icu...@li...> wrote: >>> >>> Indeed, thank you! >>> >>> I use the following code excerpt (in Java): >>> MessageFormat fmt = new MessageFormat("{0, ordinal}", new Locale("be")); >>> String res = fmt.format(new Integer[] {1}); >>> >>> Though it indeed works for English locale (produces "1st"), it does not seem to work for Belarusian. >>> It produces "1.", but according to https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html#be >>> it should have been "1-ы". >>> >>> Why? >>> >>> >>> On Monday, October 31, 2022, 10:31:24 PM GMT+3, Felipe Gasper <fe...@fe...> wrote: >>> >>> >>> >>>> On Oct 31, 2022, at 14:42, jdison16--- via icu-support <icu...@li...> wrote: >>>> >>>> Hello! >>>> >>>> Is it possible to format numbers like this: 3 -> 3rd, 4 -> 4th, etc? (in different locales). >>> >>> Yes, via ordinal. >>> >>> Example with Perl: >>> >>> perl -MUnicode::ICU -e'print Unicode::ICU::MessageFormat->new()->format("{0, ordinal}", [23])' >>> 23rd >>> >>> -FG >>> >>> >>> _______________________________________________ >>> icu-support mailing list - icu...@li... >>> To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support >>> Archives/Project Info: http://site.icu-project.org/contacts >>> _______________________________________________ >>> icu-support mailing list - icu...@li... >>> To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support >>> Archives/Project Info: http://site.icu-project.org/contacts >> >> > > > > > _______________________________________________ > icu-support mailing list - icu...@li... > To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support > Archives/Project Info: http://site.icu-project.org/contacts |