Methods

R18n::Helpers

Useful aliases. Set I18n object before use them:

R18n.set('en')

t.ok               #=> "OK"
l Time.now, :human #=> "now"
r18n.locale.code   #=> "en"

Public Instance Methods

i18n() click to toggle source
Alias for: r18n
l(*params) click to toggle source

Localize object. Alias for r18n.l.

# File lib/r18n-core/helpers.rb, line 41
def l(*params)
  R18n.get.l(*params)
end
r18n() click to toggle source

Get current I18n object.

# File lib/r18n-core/helpers.rb, line 30
def r18n
  R18n.get
end
Also aliased as: i18n
t(*params) click to toggle source

Translate message. Alias for r18n.t.

# File lib/r18n-core/helpers.rb, line 36
def t(*params)
  R18n.get.t(*params)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.