X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/94f19ce3b32d70c499893f8ffb9592a9f0a54f7a..b43f9c47145a14b547a900d9559f9aa3fd0895d1:/app/helpers/application_helper.rb?ds=sidebyside 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"