svenfuchs/rails-i18n — pull request #175 by tigrish (2011-12-31 12:06:58+00:00)
Title: I18n-spec integration

Through my work on Locale, I've been developing a test suite for locale files. This catches the main problems that people come across when they hand edit their yaml : parse errors, typos, scoping errors etc..

The project is being developed here https://github.com/tigrish/i18n-spec

I included the i18n-spec gem into the rails-i18n giving us 480 additional specs!

This immediately caught on to 4 failures :

- 1 was using the legacy interpolation style (FIXED)
- 2 were using the 'others' instead of 'other' as a pluralization key (FIXED)
- 1, pl.yml, has translations that don't exist in en-US (NOT FIXED). This can either be fixed by deleting the offending keys in pl.yml or by adding the keys to en-US (though this has the knock on effect of making most locales incomplete relative to en-US). I'll leave it up to you to decide what the best course of action is.

It seems the value of having such spec coverage is evident :)