[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gcal] function day_suffix() is too English-centric
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-gcal] function day_suffix() is too English-centric |
Date: |
Wed, 20 May 2015 13:26:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi Benno,
Benno Schulenberg <address@hidden> writes:
> Hi Giuseppe,
>
> [Sorry for the late reply.]
>
> On Tue, Feb 3, 2015, at 15:34, Giuseppe Scrivano wrote:
>> Benno Schulenberg <address@hidden> writes:
>> > In src/utils the function day_suffix() is solely geared for English:
>> > it provides the token suffixes for first, second and third, and the
>> > "th" suffix for everything else. But in Dutch we would need also
>> > a "ste" suffix for 8 and for anything above 19, in order to be fully
>> > correct. For Dutch I can work around this in the translation file
>> > by reducing the suffix for all forms to a single "e" (which is the
>> > modern, lazy way of indicating ordinals anyway). However, I can
>> > imagine that there are languages where no such simplification is
>> > possible or acceptable. So... what to do?
>>
>> I didn't find any reasonable way to manage ordinals in gettext. My
>> suggestion is to use '°' where anything else is not correct. What do
>> you think?
>
> Hmm, what you suggest is the degree sign, which is different from the
> masculine and feminine ordinal signs (º and ª) used in some languages.
> I don't think it is an adequate enough solution.
>
> Where/when are these ordinal suffixex output anyway? Can you
> give me an example gcal command? Maybe it is possible to avoid
> them altogether?
This command should be enough to show suffices in the gcal output:
gcal --holiday-list -q GB_EN --date-format='%1%>2&*D %2 %<3#U %>04*Y'
Regards,
Giuseppe