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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeremylichtman created an issue. See original summary.

fourmi4x’s picture

Hi, 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)

jeremylichtman’s picture

Attached patch passes the month names through to the mini-calendar month template.

jeremylichtman’s picture

jeremylichtman’s picture

Assigned: Unassigned » jeremylichtman
maaty388’s picture

That looks much better

maaty388’s picture

manuga’s picture

Hello, I've tried patch # 3 and it works, thanks

manuga’s picture

The 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.

jazzfiction’s picture

This 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.

nkoporec’s picture

Tried the latest patch and it works.

nkoporec’s picture

Status: Active » Reviewed & tested by the community

Anonymous’s picture

Status: Reviewed & tested by the community » Fixed

This seems to work nicely, so I went ahead and pushed it to 8.x-1.x. Thanks!

Anonymous’s picture

Issue tags: +DevDaysLisbon

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.