Files

Padrino::Helpers::TranslationHelpers

Helpers related to locale1 i18n translation within templates.

Public Instance Methods

l(*args) click to toggle source
Alias for: localize
localize(*args) click to toggle source

Delegates to I18n.localize with no additional functionality.

@param [Symbol] *args

The keys to retrieve.

@return [String]

The translation for the specified keys.

@api public

# File lib/padrino-helpers/translation_helpers.rb, line 32
def localize(*args)
  I18n.localize(*args)
end
Also aliased as: l
t(*args) click to toggle source
Alias for: translate
translate(*args) click to toggle source

Delegates to I18n.translate with no additional functionality.

@param [Symbol] *args

The keys to retrieve.

@return [String]

The translation for the specified keys.

@api public

# File lib/padrino-helpers/translation_helpers.rb, line 17
def translate(*args)
  I18n.translate(*args)
end
Also aliased as: t

[Validate]

Generated with the Darkfish Rdoc Generator 2.