Backport i18n view helpers from 4-0

https://github.com/rails/rails/blob/433628a45c2f5dd04b115af1b5579dac75255c67/actionview/lib/action_view/helpers/translation_helper.rb