in line 190 : date('l d F', strtotime("$year-$month-$day")) doesnt automatic translate to Danish. There is no problem with the front page of the kalender. But in backend weekday and month dont translate.

Comments

nicholas.alipaz’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

I think this is still present in latest dev, we definitely need to look into this.

fietserwin’s picture

Priority: Major » Normal
Status: Active » Needs review

We can change this into:

format_date(mktime(0, 0, 0, $month, $day, $year), 'custom', 'l d F')

Alternatively we can choose the long, medium or short date format (instead of 'custom') but that might include a time, so I guess the above will do as a fix. The same problem exists for the title of that edit page:

Change:

drupal_set_title(t('Availability for !name in !date', array('!name' => $node->title, '!date' => date('M Y', strtotime("$year-$month-01")))));

Into:

drupal_set_title(t('Availability for !name in !date', array('!name' => $node->title, '!date' => format_date(mktime(0, 0, 0, $month, 1, $year), 'custom', 'F Y'))));
fietserwin’s picture

Assigned: Unassigned » fietserwin
Status: Needs review » Fixed

Committed to the 6.x-1.x head. (Fix is to easy to spent time on reviewing.)

nicholas.alipaz’s picture

Status: Fixed » Needs review

I see your change for the drupal_set_title(... but not for the date('l d F', strtotime("$year-$month-$day")) (line 279).

Would you like me to make the fix, or do you want to grab it?

fietserwin’s picture

Should be there (though I made it an "l j F", There's no need for text alignment or something like that so "tuesday 08 march" looks a bit unnatural).

commit diff:
http://drupalcode.org/project/availability_calendars.git/blobdiff/e376df...

fietserwin’s picture

Status: Needs review » Fixed

RTBC and committed: see #1093408: Month labels are incorrect.

Status: Fixed » Closed (fixed)

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