]> git.openstreetmap.org Git - rails.git/commit
Add _html suffixes to some resource strings which have changed
authorTom Hughes <tom@compton.nu>
Wed, 14 Mar 2012 17:51:42 +0000 (17:51 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 14 Mar 2012 18:29:04 +0000 (18:29 +0000)
commit0884e7b43192bf924f505d12e3d9810e61da7ac9
tree528806da2673b9fc3748e5a5884e7c7ef2b5a5c5
parentfe5cbadf3dd0a5cd397645e8476b54da8e57597e
Add _html suffixes to some resource strings which have changed

Where a translatable string contains (directly or indirectly via
interpolations) some HTML it is better to add an _html suffix to
the key rather than wrap the result in raw so that escaping is
handled automatically for interpolations.

It's not worth doing until a string is changed and needs to be
retranslated though, as it will just break translations.
app/views/layouts/site.html.erb
config/locales/en.yml