Translatable Ordinal Numbers



Hi guys,

I'm currently working on a calendar-like application and want to display
a string for the day like "1st", "2nd", "3rd", "4th". The string has to
stand alone, so please don't try to convince me about using
strftime(3). 

Now my question: is there a properly usable way of doing this? (I think
of a solution like nettext(3).)

I think I'll go on like this (if no other appropriate solution pops up):
1. Use a list of strings for the beginning (this is really not much of
an issue as I only have to care about ordinal numbers from 1st to 31st).
2. (Once I have enough time:) Make up an internal function like
ngettext() and use that.
3. If everything works out: try to push it into gettext.

Regards,
  Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]