core: Set I18n.config.enforce_available_locales to true to avoid an annoying deprecation warning

This commit is contained in:
Fabio Rehm 2013-12-03 21:20:37 -02:00
parent 88bb0a3949
commit 954641d801
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