Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_p…

…aram_key is undefined
  • Loading branch information...
commit 9f33253757519edee8fe67b32fd888eab42ff4bf 1 parent 1b62e9a
@raul authored
View
3  ChangeLog
@@ -1,3 +1,6 @@
+-- 0.96.1 (Aug 5th 2008)
+ * Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_param_key is undefined
+
-- 0.96 (Jun 10th 2008)
* Added update_yaml task, suggested by Francesc Esplugas
View
6 SampleApp/vendor/plugins/translate_routes/ChangeLog
@@ -1,3 +1,9 @@
+-- 0.96.1 (Aug 5th 2008)
+ * Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_param_key is undefined
+
+-- 0.96 (Jun 10th 2008)
+ * Added update_yaml task, suggested by Francesc Esplugas
+
-- 0.95 (Jan 21st 2008)
* Still beta version
* Added yaml files support for dictionaries
View
2  SampleApp/vendor/plugins/translate_routes/lib/translate_routes.rb
@@ -92,7 +92,7 @@ def #{new_helper_name}(*args)
if defined? @#{lang_param_key}
send("#{old_name}_\#{@#{lang_param_key}}_#{suffix}", *args)
else
- send("#{old_name}_\#{@#{default_lang}}_#{suffix}", *args)
+ send("#{old_name}_#{default_lang}_#{suffix}", *args)
end
end
DEF_NEW_HELPER
View
2  lib/translate_routes.rb
@@ -92,7 +92,7 @@ def #{new_helper_name}(*args)
if defined? @#{lang_param_key}
send("#{old_name}_\#{@#{lang_param_key}}_#{suffix}", *args)
else
- send("#{old_name}_\#{@#{default_lang}}_#{suffix}", *args)
+ send("#{old_name}_#{default_lang}_#{suffix}", *args)
end
end
DEF_NEW_HELPER
Please sign in to comment.
Something went wrong with that request. Please try again.