More advanced locale fallback and output handling for ruby/rails i18n translation helper module
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
translation_fallbacks.gemspec

README.rdoc

TranslationFallbacks

This project rocks and uses MIT-LICENSE.

Locale fallbacks work like so…

If locale is es-override and a translation is missing, it will check es first then :default_locale

Update - Dan Knox

I can't remember who I cloned this from. If you wrote the original code for this let me know and I will link you.

Changelog

I created a ruby gem out of the original project and added default HTML output for languages other than English.

Most other languages require special characters. It is a pain to add the .html tag to each translation key.