[openstreetmap/openstreetmap-website] Fix i18n lookup for browse errors (#1894)

Andy Allan notifications at github.com
Wed Jun 6 05:36:40 UTC 2018


This fixes #1877 which is a bug that I introduced when converting to lazy lookups. It also simplifies the lookup of the key, and refactors remaining uses of I18n.t to avoid any similar bugs in the future.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1894

-- Commit Summary --

  * Fix lazy i18n lookups for browse error pages
  * Prefer the  helper in controllers

-- File Changes --

    M app/controllers/diary_entry_controller.rb (12)
    M app/views/browse/not_found.html.erb (14)
    M app/views/browse/timeout.html.erb (10)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1894.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1894.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1894
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180605/857e8dec/attachment.html>


More information about the rails-dev mailing list