summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-07-14 13:59:27 -0700
committerelijah <elijah@riseup.net>2015-07-14 13:59:27 -0700
commitb4f35ce6103d222e96d9153d5801044016329953 (patch)
tree9202452a7fc9286a9e45c782dbb05a15c85b77ee /config/initializers
parentd2f1703e30319f7fc1f4c1a084d5b0363536d935 (diff)
a couple minor fixes for l10n
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/i18n.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb
index 645e370..ad8edd5 100644
--- a/config/initializers/i18n.rb
+++ b/config/initializers/i18n.rb
@@ -6,3 +6,9 @@ I18n.load_path += Dir[Rails.root.join('config', 'locales', 'en', '*.yml')]
# enable using the cascade option
# see svenfuchs.com/2011/2/11/organizing-translations-with-i18n-cascade-and-i18n-missingtranslations
I18n::Backend::Simple.send(:include, I18n::Backend::Cascade)
+
+# can't get this working
+# I18n.available_locales << :'pt-BR'
+#require "i18n/backend/fallbacks"
+#I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
+#I18n.fallbacks.map(:ca => :es, :pt => :'pt-BR') \ No newline at end of file