Skip to content

Instantly share code, notes, and snippets.

@leikind
Last active August 29, 2015 14:12
Show Gist options
  • Save leikind/fc7e9cc815cc09ef98f9 to your computer and use it in GitHub Desktop.
Save leikind/fc7e9cc815cc09ef98f9 to your computer and use it in GitHub Desktop.
WiceGrid and I18n

NOVEMBER 08, 2009

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

Command

./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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment