|
From: <jdi...@ya...> - 2022-11-01 20:24:14
|
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
|