Fallback to default language when a translation is missing for the current language

This commit is contained in:
livefromthemoon@gmail.com 2010-10-31 21:58:00 +01:00
parent cf82a0a9c8
commit 9e27797092

View file

@ -5,3 +5,4 @@
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
I18n.default_locale = DEFAULT_LANGUAGE
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)