[openstreetmap/openstreetmap-website] Use lazy translation lookups for the user_blocks partials (#1827)

Andy Allan notifications at github.com
Wed Apr 18 06:30:03 UTC 2018


Lazy translations are easier to read, to write, and easier to deal with when refactoring things like partial names, controller methods and controller names. 

This is just a first gentle step in a wider project.

@Nikerabbit as per https://github.com/openstreetmap/openstreetmap-website/issues/1289 this PR will involve changing translation keys on Translatewiki, if it is merged.


You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use lazy translation lookups for the user_blocks partials.

-- File Changes --

    M app/views/user_blocks/_block.html.erb (8)
    M app/views/user_blocks/_blocks.html.erb (20)
    M config/locales/en.yml (29)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1827.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1827.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/1827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180417/0e043ea9/attachment.html>


More information about the rails-dev mailing list