This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/10871] ru_RU: 'mon' array should contain both nominative and genitive cases


https://sourceware.org/bugzilla/show_bug.cgi?id=10871

--- Comment #33 from van.de.bugger at gmail dot com ---
(In reply to Piotr DrÄg from comment #32)
> Instead, there are two applications: to show time and date, and to show a
> calendar. Using just standalone and format versions of the month names (or
> nominative and genitive) covers both uses.

In such a case we would need just two functions: show_time_and_date() and
show_calendar(). Indeed we have strftime() with great flexibility: 40 format
specifiers, two modifiers O and E, 4 flags _, -, 0, and ^ (btw, all four flags
are GNU extensions).

> I don't think glibc is intended to be used to construct natural sentences,
> in which case we would need support for every single case in every single
> language. 

...just for 12 (names) + 7 (weekdays) = 19 words in a language. It's not a big
deal, is it?

Also, there is no need to prepare extended tables for all languages at once. If
table is not yet extended, strftime should fallback to existing (nominative
case) name.

> I don't think that's realistic or needed.

I always love people saying me "this is not needed" when I need it.

I already mentioned an example. Look at uk_UA locale definition:

>   % Initially alt_digits was supposed to hold alternative symbols for _digits_,
>   % corresponding to %O modified conversion specification.
>   % Although in Ukrainian language alternate _names_ are used instead of digits.
>   % We'll use this keyword to present a list of month names in proper form for
>   % date, see mon.  (%Om)
>   %
>   % This hack is dedicated for months it won't work for other %O* modifiers
>   % (weeks, days etc).

People need it, they have implemented a hack for it because there is no way to
implement it in current infrastructure. (I am a bit surprised that this obvious
hack was accepted by upstream.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]