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.
# File lib/ramaze/helper/localize.rb, line 22 def locale locales.first end
# File lib/ramaze/helper/localize.rb, line 26 def locales locales = request.env['localize.locales'] return locales if locales fallback = ancestral_trait[:localize_locale] locales = Parser.new(request).locales(fallback) request.env['localize.locales'] = locales end
# File lib/ramaze/helper/localize.rb, line 17 def localize(string, substitute = nil) localize_dictionary.translate(string, locales, substitute) end
Generated with the Darkfish Rdoc Generator 2.