From 09b9a114d29a9c48790bc2b70786c2cf13f61fb3 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 2 Jan 2009 18:12:00 -0300 Subject: [PATCH] ActionItem862: removing dependency on deprecated library --- app/controllers/application.rb | 10 ---------- config/environment.rb | 1 - 2 files changed, 0 insertions(+), 11 deletions(-) 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