diff --git a/lib/vagrant-lxc/plugin.rb b/lib/vagrant-lxc/plugin.rb index bf8f4dd..b8ac0cf 100644 --- a/lib/vagrant-lxc/plugin.rb +++ b/lib/vagrant-lxc/plugin.rb @@ -8,12 +8,16 @@ module Vagrant The LXC provider allows Vagrant to manage and control LXC-based virtual machines. EOF + locale_loaded = false provider(:lxc, parallel: true, priority: 7) do require File.expand_path("../provider", __FILE__) - I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml') - I18n.reload! + if not locale_loaded + I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml') + I18n.reload! + locale_loaded = true + end Provider end