GNOME Bugzilla – Bug 658807
g_date_time_format() to return first word capitalized
Last modified: 2018-05-24 13:21:04 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.
I don't think we want to go beyond C99 strftime formats
How do think this case should be addressed? it appears at i18n stage
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
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?
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
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.
(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.
-- 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.