diff --git a/plugins/pushes/harmony/plugin.rb b/plugins/pushes/harmony/plugin.rb index bcf662c01..51630cfbf 100644 --- a/plugins/pushes/harmony/plugin.rb +++ b/plugins/pushes/harmony/plugin.rb @@ -12,13 +12,25 @@ module VagrantPlugins config(:harmony, :push) do require File.expand_path("../config", __FILE__) + init! Config end push(:harmony) do require File.expand_path("../push", __FILE__) + init! Push end + + protected + + def self.init! + return if defined?(@_init) + I18n.load_path << File.expand_path( + "templates/locales/TODO.yml", Vagrant.source_root) + I18n.reload! + @_init = true + end end end end