views:

12

answers:

0

I'm using the PECL intl module to localize dates and numbers in a PHP project. In all other languages I'm using (40), localizing ordinal numbers works fine. In Swedish, however, I get strange output. It appears to be the template constants used to generate the ordinals.

$fnf = new NumberFormatter('sv_FI', NumberFormatter::ORDINAL);
echo $fnf->format(1);

and

$snf = new NumberFormatter('sv_SE', NumberFormatter::ORDINAL);
echo $snf->format(1);

Both return 1:e%digits-ordinal-neutre:0: 1:a vs. something like 1st or 1er.

My only guess, other than a bug, is that I'm missing some additional argument such as the gender of an associated verb.