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"
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 565200_remove_i18n_dep.patch | 1.71 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedMay as well use Ubercart's price formatting preferences instead? I removed the html from the tooltip too as it's not valid there.
Comment #2
caktux commentedCommitted, thanks guys :)