After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658807 - g_date_time_format() to return first word capitalized
g_date_time_format() to return first word capitalized
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: datetime
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks: 658686 775548
 
 
Reported: 2011-09-12 11:34 UTC by Luc Pi
Modified: 2018-05-24 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luc Pi 2011-09-12 11:34:13 UTC
When the string given by g_date_time_format() is meant to appear at the beginning of a "section" (with a large meaning), we want it capitalized.

English weekdays and month names are always capitalized, but for example French ones are not. As a specific example, GNOME 3 calendar popup shows a bold "%A %B %e, %Y". We would like it capitalized for all languages.

Currently,
==> (en) Monday September 12, 2011
==> (fr) lundi 12 septembre 2011

We would like
==> (fr) Lundi 12 septembre 2011


There could be a flag, or a specific specifier (maybe %*A ?) to request capitalized weekday or month name.
Comment 1 Matthias Clasen 2011-09-12 11:37:30 UTC
I don't think we want to go beyond C99 strftime formats
Comment 2 Luc Pi 2011-09-12 11:47:07 UTC
How do think this case should be addressed?

it appears at i18n stage
Comment 3 Dan Winship 2011-09-12 12:34:03 UTC
presumably other programs have this problem too, and glibc might want to implement some modifier for it.

in the meantime, we could add a second translatable string in gnome-shell, saying "translate this string to 'yes' if we should capitalize the first letter of the date string" or whatever
Comment 4 Luc Pi 2011-09-13 18:14:50 UTC
Dan, I forwarded your comment to bug 658686. Thanks!

Could someone advice if this should be pushed forward to glibc?
Or do we close the issue here?
Comment 5 Philip Withnall 2017-04-10 09:48:29 UTC
There’s some discussion of a similar glibc feature request (grammatical case support for month and week day names in strftime()) here: https://sourceware.org/bugzilla/show_bug.cgi?id=10871
Comment 6 Rafal Luzynski 2017-04-10 23:57:34 UTC
Having participated in https://sourceware.org/bugzilla/show_bug.cgi?id=10871 I assure you it has not much in common with this bug. There are two different meanings of the word "case": grammatical case of a word and lower/upper case of a letter. Since there had been no such bug report in glibc bugzilla before I have filed this: https://sourceware.org/bugzilla/show_bug.cgi?id=21370.
Comment 7 Philip Withnall 2017-04-11 08:02:31 UTC
(In reply to Rafal Luzynski from comment #6)
> Having participated in https://sourceware.org/bugzilla/show_bug.cgi?id=10871
> I assure you it has not much in common with this bug. There are two
> different meanings of the word "case": grammatical case of a word and
> lower/upper case of a letter. Since there had been no such bug report in
> glibc bugzilla before I have filed this:
> https://sourceware.org/bugzilla/show_bug.cgi?id=21370.

‘Similar’ in the sense that it’s also asking for new strftime() format modifiers, whose usage varies between countries, and which aren’t standardised in POSIX or C99. Thanks for filing the new bug.
Comment 8 GNOME Infrastructure Team 2018-05-24 13:21:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/448.