]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Update to rails 2.3.8
[rails.git] / app / helpers / application_helper.rb
index 2ed50216ff257d22ed58ed50a0b7eb3cd1c3bac7..68da97dce58461b32f56aa8f942cf582b3ec94f2 100644 (file)
@@ -77,7 +77,7 @@ private
 
   def javascript_strings_for_key(key)
     js = ""
 
   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"
 
     if value.is_a?(String)
       js << "i18n_strings['#{key}'] = '" << escape_javascript(t(key)) << "';\n"