Load locales from shared directory
This commit is contained in:
parent
43c2d0492b
commit
4dda89d1e8
|
@ -8,7 +8,7 @@ module VagrantPlugins
|
||||||
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
||||||
end
|
end
|
||||||
|
|
||||||
I18n.load_path << File.expand_path('locales/en.yml', source_root)
|
I18n.load_path << File.expand_path("/usr/share/vagrant-plugins/vagrant-hostmanager/locales/en.yml", __FILE__)
|
||||||
I18n.reload!
|
I18n.reload!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue