From bd3a7e5f576a192fdc776700805433a8b167b1aa Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 May 2013 18:06:12 +0100 Subject: [PATCH] Pass the correct locale to Nominatim.describe_location --- app/models/notifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5