Not sure if this is a bug or even if there is a better way to do it. During the content creation form I wanted to translate the days of the weeks. I could managed it modifying the line 69 in the office_hours.elements file:

  if (!($element['#weight'] & 1)) { //first cell
    $element['#prefix'] = '<div class="office-hours-block"><div class="dayname">' . $days[$day] . '</div>';
  }

to:

if (!($element['#weight'] & 1)) { //first cell
    $element['#prefix'] = '<div class="office-hours-block"><div class="dayname">' . t($days[$day]) . '</div>';
  }

If you know a better solution please tell me. Thanks!

Comments

johnv’s picture

Status: Active » Reviewed & tested by the community

This is indeed the best way.

For other texts, like 'Add more hours', you can contribute your translations via http://drupal.org/project/l10n_client

Ozeuss’s picture

Status: Reviewed & tested by the community » Fixed

code committed to dev

tangamampilia’s picture

Thanks!

Status: Fixed » Closed (fixed)

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