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 # --------------------------------------------------------- #