From: Tom Hughes Date: Mon, 27 May 2013 17:06:12 +0000 (+0100) Subject: Pass the correct locale to Nominatim.describe_location X-Git-Tag: live~4984 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bd3a7e5f576a192fdc776700805433a8b167b1aa?ds=sidebyside Pass the correct locale to Nominatim.describe_location --- diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 88b255cd4..a50922214 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -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