aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-10-10 13:21:22 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-10-10 13:21:22 +0100
commit189c7c80c9e56d09d8dd441a924d687aa2b9ed5e (patch)
tree8aac4844a602458276b8d61f8482b31bae865d67 /app/controllers/application_controller.rb
parent247a24cde3954b7f7b3cbb2e3b624669b6e6e61d (diff)
parentf6b93d8cb5fbe4e4d2c96bf732f76102d54ce9cd (diff)
Merge branch 'release/0.4' into develop
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 239145944..b7457c48e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -488,20 +488,6 @@ class ApplicationController < ActionController::Base
# Site-wide access to configuration settings
include ConfigHelper
-
- # XXX: patch to improve usability of gettext's _(), which by default accepts only
- # one parameter. This is normally done in a monkey patch file named 'i18n_fixes.rb'.
- # For some reason - and only when running in production -, after adding a new controller
- # in a theme, the monkey patch in 'i18n_fixes.rb' doesn't seem to take effect.
- # But it works just fine in the views.
- # It's probably related to the loading order of classes, but including the
- # monkey patch before or after the theme makes no difference. Even more bizarrely,
- # require'ing or load'ing the patch file here doesn't work (!?), I need to redefine
- # the method explicitely. I'm going crazy...
- def _(key, options = {})
- translation = FastGettext._(key) || key
- gettext_interpolate(translation, options)
- end
end