Complete.Org: Mailing Lists: Archives: freeciv-i18n: October 2003:
[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: Egor Vyscrebentov <evyscr@xxxxxxxxx>
Cc: freeciv-i18n@xxxxxxxxxxx
Subject: [freeciv-i18n] Re: 'st', 'nd', 'rd', 'th' in server/report.c
From: Mateusz Stefek <ms209290@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Oct 2003 10:09:17 +0200 (CEST)

On Fri, 10 Oct 2003, Egor Vyscrebentov wrote:

> In number_to_ordinal_string (at line 586):
> 
>  if ((num % 10) == 1 && num != 11) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("st"));
>   } else if ((num % 10) == 2 && num != 12) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("nd"));
>   } else if ((num % 10) == 3 && num != 13) {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("rd"));
>   } else {
>     my_snprintf(buf, sizeof(buf), fmt, num, _("th"));
>   }
> 
> Is it possible to use PL_ macro in this place? In several languages
> (for example, russian) another structure of numeral termination is
> used.
> 
> Thanks, evyscr.
> 
No it isn't the formula which is used to choose plural form is differnt in
polish (there's is used simple declination)
1wszy
2gi
3ci
4ty
5ty
6ty
7my
8my
9ty
10-19ty
...
100ny

--mateusz


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