Dependency on i18n module

AlpesInfo - September 1, 2009 - 11:05
Project:Reservations
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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"

#1

simonc - September 6, 2009 - 00:24

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

AttachmentSize
565200_remove_i18n_dep.patch 1.71 KB
 
 

Drupal is a registered trademark of Dries Buytaert.