diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 8f3b759..33c4b9a 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -128,16 +128,6 @@ class ApplicationController < ActionController::Base end RAILS_DEFAULT_LOGGER.info('Locale reverted from %s to %s' % [old_locale, locale]) end - - # now set the system locale - system_locale = '%s.utf8' % locale - begin - Locale.setlocale(Locale::LC_TIME, system_locale) - rescue Exception => e - # fallback to C - RAILS_DEFAULT_LOGGER.info("Locale #{system_locale} not available, falling back to the portable \"C\" locale (consider installing the #{system_locale} locale in your system)") - Locale.setlocale(Locale::LC_TIME, 'C') - end end def load_category diff --git a/config/environment.rb b/config/environment.rb index 33cdfe2..91c4830 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -88,7 +88,6 @@ Noosfero.locales = { } # if you want to override this, do it in config/local.rb ! Noosfero.default_locale = 'en' -require 'locale.so' Tag.hierarchical = true -- libgit2 0.21.2