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 time/21370] RFE: strftime() needs a "convert to titlecase" flag


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

--- Comment #2 from Rafal Luzynski <digitalfreak at lingonborough dot com> ---
No, I can't see any conflict and I'm pretty sure there isn't any.  I didn't say
that all ALTMON locale data should be converted to the titlecase.  What I meant
is that a new flag should be introduced and it would be optionally used by the
applications only if developers (or translators) want it.

The problem is that in many languages there is no rule which says that the
month names must always start with uppercase so they start with lowercase in
the locale database.  But sometimes they must start with uppercase for other
reasons, for example because they are in the beginning of the sentence, appear
as a title, header, standalone, etc.  So, for example:

"%B" - would produce "april" (I know this is against English rules but let's
assume for this example that English does not want always uppercase)
"%*B" - would produce "April"
"%A, %B %d" - would produce "wednesday, april 12" (doesn't it look kinda
weird?)
"%*A, %B %d" - would produce "Wednesday, april 12" (doesn't it look better?)

This can be combined with "O" flag from bug 10871 to achieve multiple results
in multiple languages: "Abril", "abril", "d’abril", "D’abril", "Avril",
"avril", "De avril", "de avril", "April", "april", "Aprila", "aprila",
"Kwiecień", "kwiecień", "kwietnia".

Similarly, ALTMON proposal does not conflict with the existing flags: "^" and
"#".

-- 
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]