I have just set up a new drupal install to try this out on. I managed to create my first unit. And then i went to the update availability tab which worked fine, then on processing that page I got this error
Fatal error: Call to undefined function i18n_get_lang() in /var/www/drupal-dev/sites/all/modules/reservations/unit.module on line 622
I tried enabling the core ‘content translation’ module but this didn’t make any difference.
I then added the i18n module and enabled just the ‘internationalization’ component, this fixed the problem.
So I think in the unit.info file there needs to be a line
dependencies[] = "Internationalization"

CommentFileSizeAuthor
#1 565200_remove_i18n_dep.patch1.71 KBAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new1.71 KB

May as well use Ubercart's price formatting preferences instead? I removed the html from the tooltip too as it's not valid there.

caktux’s picture

Status: Active » Fixed

Committed, thanks guys :)

Status: Fixed » Closed (fixed)

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

  • Commit 647e739 on master, 7.x-2.x, 7.x-3.x by caktux:
    #565200 by simonc: fix dependency on i18n module and a clean link with l...