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

[freeciv-i18n] '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@xxxxxxxxxxx
Subject: [freeciv-i18n] 'st', 'nd', 'rd', 'th' in server/report.c
From: Egor Vyscrebentov <evyscr@xxxxxxxxx>
Date: Fri, 10 Oct 2003 10:10:17 +0400

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.


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