X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/27c812505dee9cf5448f6b7ca6366c01782bbdef..d516198bbe799d21198a628aafecc29771d4bfa7:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2ed50216f..68da97dce 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -77,7 +77,7 @@ private def javascript_strings_for_key(key) js = "" - value = t(key, :locale => "en") + value = I18n.t(key, :locale => "en") if value.is_a?(String) js << "i18n_strings['#{key}'] = '" << escape_javascript(t(key)) << "';\n"