From 422dacd29d805ec397c877933c3c34c65e99cb8e Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Fri, 14 Oct 2016 18:43:19 +0200 Subject: [PATCH] remove unused code --- bin/mpw-config | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bin/mpw-config b/bin/mpw-config index ebde9e2..41223c6 100644 --- a/bin/mpw-config +++ b/bin/mpw-config @@ -16,30 +16,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -$: << File.expand_path('../../lib', __FILE__) - require 'optparse' -require 'locale' -require 'set' -require 'i18n' require 'mpw/config' require 'mpw/cli' -# --------------------------------------------------------- # -# Set local -# --------------------------------------------------------- # - -lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1] - -if defined?(I18n.enforce_available_locales) - I18n.enforce_available_locales = true -end - -I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) -I18n.load_path = Dir["#{File.expand_path('../../i18n', __FILE__)}/*.yml"] -I18n.default_locale = :en -I18n.locale = lang.to_sym - # --------------------------------------------------------- # # Options # --------------------------------------------------------- #