Pass the correct locale to Nominatim.describe_location

This commit is contained in:
Tom Hughes 2013-05-27 18:06:12 +01:00
parent f78c703708
commit bd3a7e5f57

View file

@ -133,7 +133,7 @@ class Notifier < ActionMailer::Base
def note_comment_notification(comment, recipient)
with_recipient_locale recipient do
@noteurl = browse_note_url(comment.note, :host => SERVER_URL)
@place = Nominatim.describe_location(comment.note.lat, comment.note.lon, 14, @locale)
@place = Nominatim.describe_location(comment.note.lat, comment.note.lon, 14, I18n.locale)
@comment = comment.body
@owner = recipient == comment.note.author
@event = comment.event