First stage of i18n. Some migrations and extra plugins.
This commit is contained in:
parent
6ac7f91734
commit
53b4d645d8
82 changed files with 6876 additions and 18 deletions
7
vendor/plugins/http_accept_language/init.rb
vendored
Normal file
7
vendor/plugins/http_accept_language/init.rb
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
if defined?(ActionController::Request)
|
||||
ActionController::Request.send :include, HttpAcceptLanguage
|
||||
elsif defined?(ActionController::AbstractRequest)
|
||||
ActionController::AbstractRequest.send :include, HttpAcceptLanguage
|
||||
else
|
||||
ActionController::CgiRequest.send :include, HttpAcceptLanguage
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue