lib/spiderfw/config/options/spider.rb in spiderfw-0.6.26 vs lib/spiderfw/config/options/spider.rb in spiderfw-0.6.27
- old
+ new
@@ -83,12 +83,13 @@
RUBY_VERSION_PARTS[1] == '9'
}
config_option 'profiling.enable', _("Enable on-request profiling"), :type => Spider::DataTypes::Bool
config_option 'request.mutex', _("Respond to requests sequentially"), :default => false
- config_option 'locale', _("The locale to use") do |val|
- Spider.locale = Locale.new(val)
- end
+ config_option 'locale', _("The locale to use"), :process => lambda{ |val|
+ Spider.locale = val
+ val
+ }
config_option 'i18n.rails_path', _("Path where rails-style locales are found"), :default => lambda{ Spider.paths[:root]+'/locales' }
config_option 'i18n.default_locale', _("Fallback locale"), :default => 'en'
config_option 'runner.sleep', _("Sleep time for the periodic runner"), :default => 10