jgraichen/rails-timeago — pull request #3 by sickboy (2012-05-25 08:54:44+00:00)
Title: Fixes and improvements for i18n support

I've tried to tackle the following issues:
- has_locale_file checked statically for i18n.locale, instead of the locale parameter
- locale filenames used unprocessed i18n.locale name, which could be e.g "nl-NL", which failed because only "nl" locale exists

The latter issue is not entirely solved, because it now always cuts of the "-.." bit, while there are some jquery timeago locales that do have the country behind it.
For future improvements I would recommend first searching for the full name "nl-NL" and if not found, go for just "nl"