Merge pull request #2575 from fgrehm/remove-18n-deprecation-warning

Set I18n.config.enforce_available_locales to true to avoid an annoying deprecation warning
This commit is contained in:
Mitchell Hashimoto 2013-12-03 17:54:08 -08:00
commit 42fd5f1db0
1 changed files with 4 additions and 0 deletions

View File

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