comparison config/initializers/.svn/text-base/10-patches.rb.svn-base @ 523:0b6c82dead28 luisf

Merge from branch "cannam"
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 14:23:37 +0100
parents 0c939c159af4
children
comparison
equal deleted inserted replaced
318:f7c525dc7585 523:0b6c82dead28
5 class Base 5 class Base
6 include Redmine::I18n 6 include Redmine::I18n
7 7
8 # Translate attribute names for validation errors display 8 # Translate attribute names for validation errors display
9 def self.human_attribute_name(attr) 9 def self.human_attribute_name(attr)
10 l("field_#{attr.to_s.gsub(/_id$/, '')}") 10 l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr)
11 end 11 end
12 end 12 end
13 end 13 end
14 14
15 module ActiveRecord 15 module ActiveRecord
77 end 77 end
78 end 78 end
79 79
80 ActionMailer::Base.send :include, AsynchronousMailer 80 ActionMailer::Base.send :include, AsynchronousMailer
81 81
82 # TODO: Hack to support i18n 4.x on Rails 2.3.5. Remove post 2.3.6. 82 # TMail::Unquoter.convert_to_with_fallback_on_iso_8859_1 introduced in TMail 1.2.7
83 # See http://www.redmine.org/issues/6428 and http://www.redmine.org/issues/5608 83 # triggers a test failure in test_add_issue_with_japanese_keywords(MailHandlerTest)
84 module I18n 84 module TMail
85 module Backend 85 class Unquoter
86 module Base 86 class << self
87 def warn_syntax_deprecation!(*args) 87 alias_method :convert_to, :convert_to_without_fallback_on_iso_8859_1
88 return if @skip_syntax_deprecation 88 end
89 warn "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.\nDowngrade your i18n gem to 0.3.7 (everything above must be deinstalled) to remove this warning, see http://www.redmine.org/issues/5608 for more information." 89 end
90 @skip_syntax_deprecation = true 90 end
91
92 module ActionController
93 module MimeResponds
94 class Responder
95 def api(&block)
96 any(:xml, :json, &block)
91 end 97 end
92 end 98 end
93 end 99 end
94 end 100 end