BibApp/BibApp — Issue #52: Import reviewable notifier fails on i18n branch.
Author: hading
Created: 2011-11-09 18:13:53+00:00
State: open

Notifier can't generate the 'import is reviewable' email on the i18n branch.

This is because it can't generate the url for showing the import because no locale is passed.

Since this is run through delayed_job I also think that even providing a locale won't necessarily use the right template to generate the email.

The obvious solution attempt is to store the locale in play when a user creates an import (in the Import object) and use that to pick the right template and generate the url. The latter is no problem - for the former I don't know if mailers provide a way to do that by passing the locale as an argument (ideal), or if we need to temporarily reset I18n.locale (possibly problematic, if anything else happens before we restore it). I'll check that.