Module: Padrino::Helpers::TranslationHelpers

### Home Classes Methods

### In Files

- lib/padrino-helpers/translation_helpers.rb

### Methods

- #l
- #localize
- #t
- #translate

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Helpers
- Padrino::Helpers::AssetTagHelpers
- Padrino::Helpers::FormBuilder
- Padrino::Helpers::FormBuilder::AbstractFormBuilder
- Padrino::Helpers::FormBuilder::DeprecatedBuilderMethods
- Padrino::Helpers::FormBuilder::StandardFormBuilder
- Padrino::Helpers::FormHelpers
- Padrino::Helpers::FormHelpers::Errors
- Padrino::Helpers::FormHelpers::Options
- Padrino::Helpers::FormHelpers::Security
- Padrino::Helpers::NumberHelpers
- Padrino::Helpers::OutputHelpers
- Padrino::Helpers::OutputHelpers::AbstractHandler
- Padrino::Helpers::OutputHelpers::ErbHandler
- Padrino::Helpers::OutputHelpers::HamlHandler
- Padrino::Helpers::OutputHelpers::SinatraCurrentEngine
- Padrino::Helpers::OutputHelpers::SlimHandler
- Padrino::Helpers::RenderHelpers
- Padrino::Helpers::TagHelpers
- Padrino::Helpers::TranslationHelpers
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::ErubisTemplate
- Padrino::Rendering::HamlTemplate
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeBufferEnhancer
- Padrino::Rendering::SafeEruby
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::SlimTemplate
- Padrino::Rendering::TemplateNotFound
- Haml
- Haml::Helpers
- Haml::Util

No matching classes.

# Padrino::Helpers::TranslationHelpers

Helpers related to locale 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.

    # File lib/padrino-helpers/translation_helpers.rb, line 30
    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.

    # File lib/padrino-helpers/translation_helpers.rb, line 16
    def translate(*args)
      I18n.translate(*args)
    end

Also aliased as: t

[Validate]

Generated with the Darkfish Rdoc Generator 2.