Add locale file to load path only when the provider is required

This commit is contained in:
Fabio Rehm 2013-04-01 20:56:06 -03:00
parent 1fcdc07a3a
commit 0ad76b753a
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,2 @@
require "vagrant-lxc/version"
require "vagrant-lxc/plugin"
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../locales/en.yml')

View file

@ -11,6 +11,10 @@ module Vagrant
provider(:lxc) do
require File.expand_path("../provider", __FILE__)
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../locales/en.yml')
I18n.reload!
Provider
end