From 954641d80105fdfcbf4d8d00c8753444d3594653 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Tue, 3 Dec 2013 21:20:37 -0200 Subject: [PATCH] core: Set I18n.config.enforce_available_locales to true to avoid an annoying deprecation warning --- lib/vagrant.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 56c9b9fae..2a714d459 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -263,6 +263,10 @@ end # Default I18n to load the en locale I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root) +# Make sure only available locales are used. This will be the default in the +# future but we need this to silence a deprecation warning from 0.6.9 +I18n.config.enforce_available_locales = true + # A lambda that knows how to load plugins from a single directory. plugin_load_proc = lambda do |directory| # We only care about directories