Fixed an issue that raised warnings in Drupal 7.
This should autodetect localizations.