From f3f4f4aeb62c6893d3932b0c68f1e4cabe3461a5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 29 Oct 2014 09:41:47 -0700 Subject: [PATCH] pushes/harmony: stub I18n --- plugins/pushes/harmony/plugin.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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