Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a "year" view. It shows a large table with all of the days in the year, but month names are not rendered (see attached image).
Would it not make more sense for a "year" view to be a set of 12 month mini-calendars, each with its own heading?
Comment | File | Size | Author |
---|---|---|---|
#10 | 2756445-month-names-not-showing-10.patch | 3.9 KB | jazzfiction |
Screen Shot 2016-06-27 at 11.01.24 AM.png | 269.05 KB | jeremylichtman | |
#3 | month-names-not-showing-2756445.patch | 1.19 KB | jeremylichtman |
#6 | Screen Shot 2017-11-24 at 12.01.18.png | 56.58 KB | maaty388 |
Comments
Comment #2
fourmi4x CreditAttribution: fourmi4x commentedHi, I agree this is a must-have, the Year display is not really usable otherwise (we can't see to which month a day is corresponding)
Comment #3
jeremylichtman CreditAttribution: jeremylichtman for Cheeky Monkey Media commentedAttached patch passes the month names through to the mini-calendar month template.
Comment #4
jeremylichtman CreditAttribution: jeremylichtman for Cheeky Monkey Media commentedComment #5
jeremylichtman CreditAttribution: jeremylichtman for Cheeky Monkey Media commentedComment #6
maaty388 CreditAttribution: maaty388 commentedThat looks much better
Comment #7
maaty388 CreditAttribution: maaty388 commentedComment #8
manuga CreditAttribution: manuga at Diputació de Barcelona commentedHello, I've tried patch # 3 and it works, thanks
Comment #9
manuga CreditAttribution: manuga at Diputació de Barcelona commentedThe month names are not translatable
I think something like
$vars['options']['month_name'] = t(date($month_format, mktime(0, 0, 0, $month, 10)));
will resolve the problem.
Comment #10
jazzfiction CreditAttribution: jazzfiction as a volunteer commentedThis works for me also.
I created a new patch against the current version and included the translation suggestion in #9. I also separated the setting of the month name abbreviations from the day name abbreviation setting into it's own setting.
Comment #11
nkoporecTried the latest patch and it works.
Comment #12
nkoporecComment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedThis seems to work nicely, so I went ahead and pushed it to 8.x-1.x. Thanks!
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commented