diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-03 12:42:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-03 12:42:06 +0000 |
commit | 4a988b0f9223f76dee2252608986a6e3f1a634a6 (patch) | |
tree | 278dde8528c591fa8a428acc9c7a5732a046d109 /vendor | |
parent | b5e80bf90fb23f74981a81755ede15dbc892e642 (diff) | |
download | redmine-4a988b0f9223f76dee2252608986a6e3f1a634a6.tar.gz redmine-4a988b0f9223f76dee2252608986a6e3f1a634a6.zip |
removed translation of error messages inside ActiveRecord module
git-svn-id: http://redmine.rubyforge.org/svn/trunk@222 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb b/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb index 0a35b90ab..006d8976a 100644 --- a/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb +++ b/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb @@ -130,29 +130,29 @@ module ActiveRecord #:nodoc: include GLoc
end
- class Errors
- include GLoc
- alias :add_without_gloc :add
- # The GLoc version of this method provides two extra features
- # * If <tt>msg</tt> is a string, it will be considered a GLoc string key.
- # * If <tt>msg</tt> is an array, the first element will be considered
- # the string and the remaining elements will be considered arguments for the
- # string. Eg. <tt>['Hi %s.','John']</tt>
- def add(attribute, msg= @@default_error_messages[:invalid])
- if msg.is_a?(Array)
- args= msg.clone
- msg= args.shift
- args= nil if args.empty?
- end
- msg= ltry(msg)
- msg= msg % args unless args.nil?
- add_without_gloc(attribute, msg)
- end
- # Inherits the current language from the base record.
- def current_language
- @base.current_language
- end
- end
+# class Errors
+# include GLoc
+# alias :add_without_gloc :add
+# # The GLoc version of this method provides two extra features
+# # * If <tt>msg</tt> is a string, it will be considered a GLoc string key.
+# # * If <tt>msg</tt> is an array, the first element will be considered
+# # the string and the remaining elements will be considered arguments for the
+# # string. Eg. <tt>['Hi %s.','John']</tt>
+# def add(attribute, msg= @@default_error_messages[:invalid])
+# if msg.is_a?(Array)
+# args= msg.clone
+# msg= args.shift
+# args= nil if args.empty?
+# end
+# msg= ltry(msg)
+# msg= msg % args unless args.nil?
+# add_without_gloc(attribute, msg)
+# end
+# # Inherits the current language from the base record.
+# def current_language
+# @base.current_language
+# end
+# end
module Validations #:nodoc:
module ClassMethods
|