Module: Wice::WiceGridNlMessageProvider
- Defined in:
- lib/wice_grid_misc.rb
Overview
The point of this module is to provide a thin layer between Rails Internationalization API and WiceGrid, enabling a fallback to the old hardcoded messages if no translations are available or I18n is not present (Rails 2.1.0 and older).
Class Method Summary collapse
Class Method Details
.get_from_hardcoded_constants(key) ⇒ Object
:nodoc:
60 61 62 63 64 65 66 |
# File 'lib/wice_grid_misc.rb', line 60 def get_from_hardcoded_constants(key) #:nodoc: if Wice::Defaults.const_defined?(key) Wice::Defaults.const_get(key) else return "message for key #{key} not found!" end end |