Complete.Org: Mailing Lists: Archives: freeciv-i18n: January 2004:
[freeciv-i18n] Re: 'st', 'nd', 'rd', 'th' in server/report.c
Home

[freeciv-i18n] Re: 'st', 'nd', 'rd', 'th' in server/report.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv i18n <freeciv-i18n@xxxxxxxxxxx>
Subject: [freeciv-i18n] Re: 'st', 'nd', 'rd', 'th' in server/report.c
From: "Pieter J. Kersten" <kersten@xxxxxxxxxx>
Date: Mon, 12 Jan 2004 12:54:46 +0100 (CET)

On 2003.10.10 08:10, Egor Vyscrebentov wrote:
> In number_to_ordinal_string (at line 586):
>
>  if ((num % 10) =3D=3D 1 && num !=3D 11) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("st"));
>   } else if ((num % 10) =3D=3D 2 && num !=3D 12) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("nd"));
>   } else if ((num % 10) =3D=3D 3 && num !=3D 13) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("rd"));
>   } else {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("th"));
>   }
>
> Hey guys!
> Please describe formulas for your languages. I will write a patch.
>
> English: 1st 2nd 3rd 4th .. 20th 21st 22nd 23rd 24th ...
> Polish: 1wszy 2gi 3ci 4ty 5ty 6ty 7my 8my 9ty .. 20ty 21wszy 22gi 23ci 24ty=
>  27my 28my, 100ny

Dutch: 1e 2e 3e 4e ...

In fact it is much more complicated, but most people use this schema.

HTH,
-- 
Pieter J. Kersten


[Prev in Thread] Current Thread [Next in Thread]