From ba4ea8e2fd075768bd84e3d05cf11925fe4489be Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 May 2008 10:15:23 +0000 Subject: [PATCH] Make gloc load plugins lang files. git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1394 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- gloc-1.2.0/vendor/plugins/gloc-1.2.0/lib/gloc-internal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gloc-1.2.0/vendor/plugins/gloc-1.2.0/lib/gloc-internal.rb b/gloc-1.2.0/vendor/plugins/gloc-1.2.0/lib/gloc-internal.rb index 0d917c80c..b5d3c63e3 100644 --- a/gloc-1.2.0/vendor/plugins/gloc-1.2.0/lib/gloc-internal.rb +++ b/gloc-1.2.0/vendor/plugins/gloc-1.2.0/lib/gloc-internal.rb @@ -78,7 +78,7 @@ module GLoc end def _get_lang_file_list(dir) #:nodoc: - dir= File.join(RAILS_ROOT,'lang') if dir.nil? + dir= File.join(RAILS_ROOT,'{.,vendor/plugins/*}','lang') if dir.nil? Dir[File.join(dir,'*.{yaml,yml}')] end