Extract "skipping bucket" message out to a locale file
This commit is contained in:
parent
5f30e3c9da
commit
b109e3c4ad
8 changed files with 13 additions and 6 deletions
|
@ -24,7 +24,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping APT cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'APT')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,7 +24,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping Chef cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Chef')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,7 +29,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping RubyGems cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'RubyGems')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,7 +24,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping Pacman cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Pacman')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,7 +29,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping RVM cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'RVM')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@env[:ui].info "Skipping Yum cache bucket as the guest machine does not support it"
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Yum')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,6 +3,9 @@ Vagrant::Action::Builtin::Provision.class_eval do
|
||||||
include VagrantPlugins::Cachier::Action::ProvisionExt
|
include VagrantPlugins::Cachier::Action::ProvisionExt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Add our custom translations to the load path
|
||||||
|
I18n.load_path << File.expand_path("../../../locales/en.yml", __FILE__)
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Cachier
|
module Cachier
|
||||||
class Plugin < Vagrant.plugin('2')
|
class Plugin < Vagrant.plugin('2')
|
||||||
|
|
4
locales/en.yml
Normal file
4
locales/en.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
en:
|
||||||
|
vagrant_cachier:
|
||||||
|
skipping_bucket: |-
|
||||||
|
Skipping %{bucket} cache bucket as the guest machine does not support it
|
Loading…
Reference in a new issue