X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7de5220090d01722d8ea06679493355eefd4636c..d0c63b6d5dbf6580c333e1d638d19fc17fd2a351:/app/helpers/application_helper.rb?ds=inline diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7dcbe369b..bee4f9ce2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -26,10 +26,10 @@ private def javascript_strings_for_key(key) js = "" - value = t(key) + value = t(key, :locale => "en") if value.is_a?(String) - js << "i18n_strings['#{key}'] = '" << escape_javascript(value) << "';\n" + js << "i18n_strings['#{key}'] = '" << escape_javascript(t(key)) << "';\n" else value.each_key do |k| js << javascript_strings_for_key("#{key}.#{k}")