lib/local_pac/main.rb in local_pac-0.6.3 vs lib/local_pac/main.rb in local_pac-0.7.0

- old
+ new

@@ -16,7 +16,18 @@ end def error_id SecureRandom.hex end + + def root_path + ::File.expand_path('../../..', __FILE__) + end end + + I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) + I18n.load_path = Dir[::File.join(LocalPac.root_path, 'app', 'locales', '*.yml')] + I18n.backend.load_translations + + I18n.enforce_available_locales = true end +