Included Modules

Class Index [+]

Quicksearch

Ramaze::Helper::Localize

The localization helper can be used to output translated strings. This enables your application to use multiple language files for English, Dutch and so on.

Public Instance Methods

l(string, substitute = nil) click to toggle source
Alias for: localize
locale() click to toggle source
    # File lib/ramaze/helper/localize.rb, line 22
22:       def locale
23:         locales.first
24:       end
locales() click to toggle source
    # File lib/ramaze/helper/localize.rb, line 26
26:       def locales
27:         locales = request.env['localize.locales']
28:         return locales if locales
29: 
30:         fallback = ancestral_trait[:localize_locale]
31:         locales = Parser.new(request).locales(fallback)
32:         request.env['localize.locales'] = locales
33:       end
localize(string, substitute = nil) click to toggle source
    # File lib/ramaze/helper/localize.rb, line 17
17:       def localize(string, substitute = nil)
18:         localize_dictionary.translate(string, locales, substitute)
19:       end
Also aliased as: l

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.