File: 01_use_different_locale_directory

package info (click to toggle)
vagrant-hostmanager 1.8.9-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 212 kB
  • sloc: ruby: 489; sh: 13; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Use different locales directory
 Locale files are installed into /usr/share/vagrant-plugins instead of
 being located relative to the source root.
--- vagrant-hostmanager-1.8.8.orig/lib/vagrant-hostmanager.rb
+++ vagrant-hostmanager-1.8.8/lib/vagrant-hostmanager.rb
@@ -8,7 +8,7 @@ module VagrantPlugins
       @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
     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!
   end
 end