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 22: def locale 23: locales.first 24: end
# 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
# File lib/ramaze/helper/localize.rb, line 17 17: def localize(string, substitute = nil) 18: localize_dictionary.translate(string, locales, substitute) 19: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.