OSDN Git Service

Small fix to gloc error messages translation.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Jul 2008 07:19:55 +0000 (07:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Jul 2008 07:19:55 +0000 (07:19 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1676 e93f8b46-1217-0410-a6f0-8f06a7374b81

vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb

index aa65991..f05c4cd 100644 (file)
@@ -168,7 +168,7 @@ module ActiveRecord #:nodoc:
           if attr == "base"\r
             full_messages << (msg.is_a?(Symbol) ? l(msg) : msg)\r
           else\r
-            full_messages << @base.class.human_attribute_name(attr) + " " + (msg.is_a?(Symbol) ? l(msg) : msg)\r
+            full_messages << @base.class.human_attribute_name(attr) + " " + (msg.is_a?(Symbol) ? l(msg) : msg.to_s)\r
           end\r
         end\r
       end\r