|
From: <jdi...@ya...> - 2022-11-01 21:50:34
|
> 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
I also tried Russian ("ru" from the list above) and it also does not work (produces "1." instead of expected "1-й")
On Tuesday, November 1, 2022, 11:30:15 PM GMT+3, 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
>
>
|