Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-07-30 01:07:10 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-30 01:30:20 +0400
commitb56838e5b11455ca765b2be62265d6d4b5ab6d7c (patch)
tree29f50391ba6fc60b9767a83dc2af6eb60b913e68 /config
parente345f2dcbc86dfa6331d985027b2aeeb833a6af5 (diff)
Fall back to english on MissingInterpolationError
Diffstat (limited to 'config')
-rw-r--r--config/initializers/locale.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb
index 86ae3c07b..8ff5ec7f2 100644
--- a/config/initializers/locale.rb
+++ b/config/initializers/locale.rb
@@ -14,3 +14,5 @@ AVAILABLE_LANGUAGE_CODES.each do |c|
I18n.fallbacks[c.to_sym] = [c.to_sym, DEFAULT_LANGUAGE.to_sym, :en]
end
end
+require 'i18n_interpolation_fallbacks'
+I18n::Backend::Simple.send(:include, I18n::Backend::InterpolationFallbacks)