lib/nitro/l10n.rb in nitro-0.5.0 vs lib/nitro/l10n.rb in nitro-0.6.0

- old
+ new

@@ -1,22 +1,30 @@ # = L10N, Localization support # -# code: tml +# code: gmosx # # (c) 2002-2003 Navel, all rights reserved. -# $Id: l10n.rb 152 2004-11-13 20:02:35Z gmosx $ +# $Id: l10n.rb 185 2004-12-10 13:29:09Z gmosx $ +require 'nitro/filters' + $lc_en = {} $lc_el = {} # = Configuration # # Override as needed in your application. # - $lc_map = { "en" => $lc_en, "el" => $lc_el } # The locales to use for this application. $lc_use = %w{lc-en lc-el} + +module LocalizationFilter + def localize + @lc = @session[:LC] || $lc_en + end +end +