Rename note to notes in i18n lookups

Enables lazy translation lookups for most cases. Additionally, rename
keys for notes.description.* to notes.comment.* to match partial
name.
This commit is contained in:
Andy Allan 2018-04-25 14:56:20 +08:00
parent 4a9846b078
commit dfa2fd7d3d
8 changed files with 24 additions and 24 deletions

View file

@ -2,11 +2,11 @@ xml.item do
location = describe_location(note.lat, note.lon, 14, locale)
if note.closed?
xml.title t("note.rss.closed", :place => location)
xml.title t("notes.rss.closed", :place => location)
elsif note.comments.length > 1
xml.title t("note.rss.commented", :place => location)
xml.title t("notes.rss.commented", :place => location)
else
xml.title t("note.rss.opened", :place => location)
xml.title t("notes.rss.opened", :place => location)
end
xml.link browse_note_url(note)