$OpenBSD: patch-lib_puppet_rb,v 1.1 2017/10/10 20:56:53 sebastia Exp $

Tell puppet where to look for the locales


Index: lib/puppet.rb
--- lib/puppet.rb.orig
+++ lib/puppet.rb
@@ -29,7 +29,7 @@ begin
   require 'locale'
 
   # e.g. ~/code/puppet/locales. Also when running as a gem.
-  local_locale_path = File.absolute_path('../locales', File.dirname(__FILE__))
+  local_locale_path = File.absolute_path('./puppet/locales', File.dirname(__FILE__))
   # e.g. /opt/puppetlabs/puppet/share/locale
   posix_system_locale_path = File.absolute_path('../../../share/locale', File.dirname(__FILE__))
   # e.g. C:\Program Files\Puppet Labs\Puppet\puppet\share\locale
