X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f78c7037081135be16939368fce5f6e5f1342e93..ac1f2107366a9ca75900708795fda1d6dd1a4e4d:/app/models/notifier.rb 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