Backport i18n stuff

Fixes regressions after 50e0b44dbff79aac354d10021541c8169b4d0a5c and adds `config.action_view.raise_on_missing_translations` setting.

Backported from `4-0-stable`.

/cc @tamird