WiceGrid and I18n

Since today WiceGrid supports localization, however, without breaking compatibility with pre-I18n versions of Rails (2.1.0 and older).

Command

1
   ./script/generate wice_grid_assets

will copy file wice_grid.yml to config/locales.

The current locale is taken from I18n.locale. The locale also propagates to the javascript calendar widget (see Calendar.messagebundle in calendarview.js to add languages).

If the messages are not found, or I18n is missing, WiceGrid will fall back to the hardcoded messages in config/initializers/wice_grid_config.rb.

Currently supported languages are English, Dutch, French (thanks xav), and Russian.

I also added a simple example to WiceGrid Examples.