Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/merb_global/base.rb
Instance Method Summary collapse
Instance Method Details
#localize(args = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/merb_global/base.rb', line 9 def localize(args = {}) opts = {:locale => Merb::Global::Locale.current, :n => 1, :plural => nil} opts.merge!(args) Merb::Global::MessageProviders.provider.localize self, opts[:plural], opts[:n], opts[:locale] end |