[Freeciv-Dev] Re: [PATCH] spelling fixes (PR#1526)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
scripsit Arnaldo Carvalho de Melo:
> Hi,
>
> Please consider applying, this is the one we're using in Conectiva
> Linux.
>
> - Arnaldo
If you're patching, I would recommend following the usage of the Chicago
Manual of Style, which is 1st, 2d, 3d, 4th, etc. This isn't the most
common in popular writing, but (for American English at least) is the
preferred style for formal writing.
(The Chicago Manual of Style is the `bible' for questions like this in
American English. I don't know if there's an equivalent reference book
for Commonwealth English.)
Therefore
if ((num % 10) == 1 && num != 11)
my_snprintf(buf, sizeof(buf), fmt, num, _("st"));
else if ((num % 10) == 2 && (num % 10) == 3 && num != 12 && num != 13)
my_snprintf(buf, sizeof(buf), fmt, num, _("d"));
else
my_snprintf(buf, sizeof(buf), fmt, num, _("th"));
--
Thanasis Kinias
Web Developer, Information Technology
Graduate Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.
Ash nazg durbatulûk, ash nazg gimbatul,
Ash nazg thrakatulûk agh burzum-ishi krimpatul
[Freeciv-Dev] Re: [PATCH] spelling fixes (PR#1526), Daniel L Speyer, 2002/06/03
[Freeciv-Dev] Re: [PATCH] spelling fixes (PR#1526), Miguel Farah, 2002/06/03
[Freeciv-Dev] OT: Hello World (was: Re: Re: [PATCH] spelling fixes (PR#1526)), Thanasis Kinias, 2002/06/03
|
|